Commit 0a2ea338246d4891b88c663303aae675bb2fad85
1 parent
be01f32659
Exists in
master
and in
6 other branches
update code
Showing 1 changed file with 3 additions and 9 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/LisController.java
View file @
0a2ea33
... | ... | @@ -33,9 +33,6 @@ |
33 | 33 | @Controller |
34 | 34 | public class LisController extends BaseController { |
35 | 35 | |
36 | - //日志调测器 | |
37 | - private static final Logger logger = LoggerFactory.getLogger("lis-sync-log"); | |
38 | - | |
39 | 36 | @Autowired |
40 | 37 | private LisService lisService; |
41 | 38 | @Autowired |
... | ... | @@ -53,8 +50,6 @@ |
53 | 50 | @ResponseBody |
54 | 51 | public BaseResponse saveLisData(@RequestBody List<LisReportModelRequest> models, |
55 | 52 | HttpServletRequest httpServletRequest) { |
56 | - | |
57 | - | |
58 | 53 | List<LisReportModel> list = new ArrayList<>(); |
59 | 54 | System.out.println("resivce size = " + models.size()); |
60 | 55 | if (models != null && models.size() > 0) |
61 | 56 | |
62 | 57 | |
... | ... | @@ -91,13 +86,12 @@ |
91 | 86 | model.setCheckTime(DateUtil.parseYMDHMS(lisRequest.getCheckTime())); |
92 | 87 | |
93 | 88 | list.add(model); |
94 | - }catch (Exception e) | |
89 | + } | |
90 | + catch (Exception e) | |
95 | 91 | { |
96 | - logger.error("lis id == "+lisRequest.getLisId()); | |
92 | + ExceptionUtils.catchException(e,"lis id == "+lisRequest.getLisId()); | |
97 | 93 | continue; |
98 | 94 | } |
99 | - | |
100 | - | |
101 | 95 | } |
102 | 96 | } |
103 | 97 | return lisService.saveLisData(list); |