Commit 7f002278 by 陶光胜

回写修改

parent 94e5ffdf
...@@ -149,7 +149,7 @@ public class UploadImgController { ...@@ -149,7 +149,7 @@ public class UploadImgController {
os.close(); os.close();
ins.close(); ins.close();
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); logger.warn("e", e);
} }
} }
......
...@@ -16,6 +16,8 @@ import com.gic.store.service.StoreFieldSelectApiService; ...@@ -16,6 +16,8 @@ import com.gic.store.service.StoreFieldSelectApiService;
import com.gic.store.utils.StoreRedisKeyUtils; import com.gic.store.utils.StoreRedisKeyUtils;
import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
...@@ -31,6 +33,7 @@ import java.util.Map; ...@@ -31,6 +33,7 @@ import java.util.Map;
@Component @Component
public class StoreCustomBackImpl implements ScreenBackStrategy { public class StoreCustomBackImpl implements ScreenBackStrategy {
private static Logger log = LogManager.getLogger(StoreCustomBackImpl.class);
@Autowired @Autowired
private StoreFieldApiService storeFieldApiService; private StoreFieldApiService storeFieldApiService;
@Autowired @Autowired
...@@ -85,15 +88,15 @@ public class StoreCustomBackImpl implements ScreenBackStrategy { ...@@ -85,15 +88,15 @@ public class StoreCustomBackImpl implements ScreenBackStrategy {
view.add(message); view.add(message);
return screenBack; return screenBack;
} catch (IllegalAccessException e) { } catch (IllegalAccessException e) {
e.printStackTrace(); log.warn("e", e);
} catch (InvocationTargetException e) { } catch (InvocationTargetException e) {
e.printStackTrace(); log.warn("e", e);
} }
} catch (ClassNotFoundException e) { } catch (ClassNotFoundException e) {
e.printStackTrace(); log.warn("e", e);
} }
} catch (NoSuchMethodException e) { } catch (NoSuchMethodException e) {
e.printStackTrace(); log.warn("e", e);
} }
} }
return null; return null;
......
...@@ -11,6 +11,8 @@ import com.gic.store.constant.StoreStatusEnum; ...@@ -11,6 +11,8 @@ import com.gic.store.constant.StoreStatusEnum;
import com.gic.store.dto.StoreDictDTO; import com.gic.store.dto.StoreDictDTO;
import com.gic.store.service.StoreDictApiService; import com.gic.store.service.StoreDictApiService;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
...@@ -24,6 +26,7 @@ import java.util.Map; ...@@ -24,6 +26,7 @@ import java.util.Map;
@Component @Component
public class StoreSelectBackImpl implements ScreenBackStrategy { public class StoreSelectBackImpl implements ScreenBackStrategy {
private static Logger log = LogManager.getLogger(StoreSelectBackImpl.class);
@Autowired @Autowired
private StoreDictApiService storeDictApiService; private StoreDictApiService storeDictApiService;
private Map<String, String> methodMap = new HashMap<>(); private Map<String, String> methodMap = new HashMap<>();
...@@ -48,15 +51,15 @@ public class StoreSelectBackImpl implements ScreenBackStrategy { ...@@ -48,15 +51,15 @@ public class StoreSelectBackImpl implements ScreenBackStrategy {
Object invoke = method.invoke(this, compute, value, enterpriseId); Object invoke = method.invoke(this, compute, value, enterpriseId);
return (ScreenBack) invoke; return (ScreenBack) invoke;
} catch (IllegalAccessException e) { } catch (IllegalAccessException e) {
e.printStackTrace(); log.warn("e", e);
} catch (InvocationTargetException e) { } catch (InvocationTargetException e) {
e.printStackTrace(); log.warn("e", e);
} }
} catch (ClassNotFoundException e) { } catch (ClassNotFoundException e) {
e.printStackTrace(); log.warn("e", e);
} }
} catch (NoSuchMethodException e) { } catch (NoSuchMethodException e) {
e.printStackTrace(); log.warn("e", e);
} }
} }
return null; return null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment