Commit f802206033ab0235007808b2e675586a449a2c78
1 parent
d546fe230f
Exists in
master
and in
6 other branches
update
Showing 2 changed files with 12 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/request/MessagesResult.java
View file @
f802206
| ... | ... | @@ -8,6 +8,15 @@ |
| 8 | 8 | |
| 9 | 9 | private String id; |
| 10 | 10 | private String content; |
| 11 | + private String disSort; | |
| 12 | + | |
| 13 | + public String getDisSort() { | |
| 14 | + return disSort; | |
| 15 | + } | |
| 16 | + | |
| 17 | + public void setDisSort(String disSort) { | |
| 18 | + this.disSort = disSort; | |
| 19 | + } | |
| 11 | 20 | |
| 12 | 21 | public String getId() { |
| 13 | 22 | return id; |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/BabyEvaluationCriterionServiceImpl.java
View file @
f802206
| ... | ... | @@ -1029,6 +1029,7 @@ |
| 1029 | 1029 | model.setUpdateUser(userId.toString()); |
| 1030 | 1030 | Update update = MongoConvertHelper.convertToNativeUpdate(ReflectionUtils.getUpdateField(model)); |
| 1031 | 1031 | mongoTemplate.updateFirst(Query.query(Criteria.where("_id").is(id)), update, BabyNerveMovementModel.class); |
| 1032 | + updateBabyCheck(model.getBabyId()); | |
| 1032 | 1033 | return response; |
| 1033 | 1034 | |
| 1034 | 1035 | } |
| 1035 | 1036 | |
| ... | ... | @@ -1053,9 +1054,10 @@ |
| 1053 | 1054 | model.setMcertNo(babyModel.getMcertNo()); |
| 1054 | 1055 | model.setBirth(babyModel.getBirth()); |
| 1055 | 1056 | mongoTemplate.insert(model); |
| 1057 | + updateBabyCheck(model.getBabyId()); | |
| 1056 | 1058 | return response; |
| 1057 | 1059 | } |
| 1058 | - updateBabyCheck(model.getBabyId()); | |
| 1060 | + | |
| 1059 | 1061 | response.setErrorcode(ErrorCodeConstants.PARAMETER_ERROR); |
| 1060 | 1062 | response.setErrormsg("一天只能新增一条数据"); |
| 1061 | 1063 | return response; |