Commit 7f002278 by 陶光胜

回写修改

parent 94e5ffdf
......@@ -149,7 +149,7 @@ public class UploadImgController {
os.close();
ins.close();
} catch (Exception e) {
e.printStackTrace();
logger.warn("e", e);
}
}
......
......@@ -16,6 +16,8 @@ import com.gic.store.service.StoreFieldSelectApiService;
import com.gic.store.utils.StoreRedisKeyUtils;
import org.apache.commons.collections.CollectionUtils;
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.stereotype.Component;
......@@ -31,6 +33,7 @@ import java.util.Map;
@Component
public class StoreCustomBackImpl implements ScreenBackStrategy {
private static Logger log = LogManager.getLogger(StoreCustomBackImpl.class);
@Autowired
private StoreFieldApiService storeFieldApiService;
@Autowired
......@@ -85,15 +88,15 @@ public class StoreCustomBackImpl implements ScreenBackStrategy {
view.add(message);
return screenBack;
} catch (IllegalAccessException e) {
e.printStackTrace();
log.warn("e", e);
} catch (InvocationTargetException e) {
e.printStackTrace();
log.warn("e", e);
}
} catch (ClassNotFoundException e) {
e.printStackTrace();
log.warn("e", e);
}
} catch (NoSuchMethodException e) {
e.printStackTrace();
log.warn("e", e);
}
}
return null;
......
......@@ -11,6 +11,8 @@ import com.gic.store.constant.StoreStatusEnum;
import com.gic.store.dto.StoreDictDTO;
import com.gic.store.service.StoreDictApiService;
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.stereotype.Component;
......@@ -24,6 +26,7 @@ import java.util.Map;
@Component
public class StoreSelectBackImpl implements ScreenBackStrategy {
private static Logger log = LogManager.getLogger(StoreSelectBackImpl.class);
@Autowired
private StoreDictApiService storeDictApiService;
private Map<String, String> methodMap = new HashMap<>();
......@@ -48,15 +51,15 @@ public class StoreSelectBackImpl implements ScreenBackStrategy {
Object invoke = method.invoke(this, compute, value, enterpriseId);
return (ScreenBack) invoke;
} catch (IllegalAccessException e) {
e.printStackTrace();
log.warn("e", e);
} catch (InvocationTargetException e) {
e.printStackTrace();
log.warn("e", e);
}
} catch (ClassNotFoundException e) {
e.printStackTrace();
log.warn("e", e);
}
} catch (NoSuchMethodException e) {
e.printStackTrace();
log.warn("e", e);
}
}
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