Commit d68f9ddd23f5b50620c41d778377757724bb27b0
1 parent
910bdaee22
Exists in
master
and in
6 other branches
两癌
Showing 2 changed files with 6 additions and 4 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/CancerScreeningController.java
View file @
d68f9dd
... | ... | @@ -254,11 +254,11 @@ |
254 | 254 | |
255 | 255 | |
256 | 256 | @ResponseBody |
257 | - @RequestMapping(method = RequestMethod.GET,value = "/setCancerExamineStatus/{type}/{status}/{id}") | |
257 | + @RequestMapping(method = RequestMethod.GET,value = "/setCancerExamineStatus/{position}/{id}") | |
258 | 258 | @TokenRequired |
259 | - public BaseResponse setCancerExamineStatus(@PathVariable Integer type,@PathVariable Integer status,@PathVariable String id, HttpServletRequest request) { | |
259 | + public BaseResponse setCancerExamineStatus(@PathVariable Integer type,@PathVariable Integer position,@PathVariable String id, HttpServletRequest request) { | |
260 | 260 | LoginContext loginState = (LoginContext) request.getAttribute("loginContext"); |
261 | - return cancerScreenService.setCancerExamineStatus(type,status,id, loginState.getId()); | |
261 | + return cancerScreenService.setCancerExamineStatus(position,id, loginState.getId()); | |
262 | 262 | } |
263 | 263 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/CancerScreeningFacade.java
View file @
d68f9dd
... | ... | @@ -1185,9 +1185,11 @@ |
1185 | 1185 | return new BaseObjectResponse().setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功").setData(datas); |
1186 | 1186 | } |
1187 | 1187 | |
1188 | - public BaseResponse setCancerExamineStatus(Integer type,Integer status, String id, Integer userId) { | |
1188 | + public BaseResponse setCancerExamineStatus(Integer position, String id, Integer userId) { | |
1189 | 1189 | CancerExamineModel cancerExamineModel = mongoTemplate.findOne(Query.query(Criteria.where("id").is(id)), CancerExamineModel.class); |
1190 | 1190 | |
1191 | + cancerExamineModel.setPosition(position); | |
1192 | + cancerExamineModel.setStatus(1); | |
1191 | 1193 | Update update=MongoConvertHelper |
1192 | 1194 | .convertToNativeUpdate(ReflectionUtils.getUpdateField(cancerExamineModel)); |
1193 | 1195 | mongoTemplate.updateFirst(Query.query(Criteria.where("id").is(cancerExamineModel.getId())), update, CancerExamineModel.class); |