Commit f1c3a22788e164f75ff2a6e624d455b45abb888f
1 parent
f0283956e2
Exists in
master
and in
6 other branches
update
Showing 2 changed files with 26 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/TestController.java
View file @
f1c3a22
... | ... | @@ -5217,5 +5217,16 @@ |
5217 | 5217 | return babySieveFacede.syncBabyEyeCheckMonthId(hospitalId,checkMonthId); |
5218 | 5218 | } |
5219 | 5219 | |
5220 | + /** | |
5221 | + * 隆化眼保健异常的增加global字段为2。新需求异常字段 | |
5222 | + * @return | |
5223 | + */ | |
5224 | + @RequestMapping(value = "/syncBabyEyeGlobal", method = RequestMethod.GET) | |
5225 | + @ResponseBody | |
5226 | + @TokenRequired | |
5227 | + public BaseObjectResponse syncBabyEyeGlobal() { | |
5228 | + return babySieveFacede.syncBabyEyeGlobal(); | |
5229 | + } | |
5230 | + | |
5220 | 5231 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabySieveFacede.java
View file @
f1c3a22
... | ... | @@ -1909,5 +1909,20 @@ |
1909 | 1909 | } |
1910 | 1910 | } |
1911 | 1911 | } |
1912 | + | |
1913 | + public BaseObjectResponse syncBabyEyeGlobal() { | |
1914 | + BaseObjectResponse objectResponse = new BaseObjectResponse(); | |
1915 | + LhBabyEyelCheckQuery checkQuery=new LhBabyEyelCheckQuery(); | |
1916 | + checkQuery.setPositiveType("2"); | |
1917 | + List<LhBabyEyeCheck> babyChecks=lhBabyEyeCheckService.queryList(checkQuery,null,null); | |
1918 | + for (LhBabyEyeCheck babyCheck : babyChecks) { | |
1919 | + babyCheck.setGlobal("2"); | |
1920 | + lhBabyEyeCheckService.update(babyCheck); | |
1921 | + } | |
1922 | + | |
1923 | + objectResponse.setErrorcode(ErrorCodeConstants.SUCCESS); | |
1924 | + objectResponse.setErrormsg("成功"); | |
1925 | + return objectResponse; | |
1926 | + } | |
1912 | 1927 | } |