Commit c3e47e4ded255a329cfe08ab21065b1afad8c86f
1 parent
2d764fb512
Exists in
master
and in
6 other branches
孕期-mommybaby小程序调用接口,居住证设置-update
Showing 1 changed file with 4 additions and 4 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BookbuildingFacade.java
View file @
c3e47e4
... | ... | @@ -3176,15 +3176,15 @@ |
3176 | 3176 | return new BaseListResponse().setData(data).setErrorcode(0).setErrormsg("成功"); |
3177 | 3177 | } |
3178 | 3178 | |
3179 | - public BaseResponse updateTransientInfo(String id, String pliveTypeId, String liveCardNo) { | |
3179 | + public BaseResponse updateTransientInfo(String pid, String pliveTypeId, String liveCardNo) { | |
3180 | 3180 | BaseResponse br=new BaseResponse(); |
3181 | - if (StringUtils.isEmpty(id)|| StringUtils.isEmpty(pliveTypeId)) { | |
3181 | + if (StringUtils.isEmpty(pid)|| StringUtils.isEmpty(pliveTypeId)) { | |
3182 | 3182 | br.setErrorcode(ErrorCodeConstants.PARAMETER_ERROR); |
3183 | 3183 | br.setErrormsg("参数不能为空"); |
3184 | 3184 | return br; |
3185 | 3185 | } |
3186 | - Query query = Query.query(Criteria.where("id").is(id)); | |
3187 | - mongoTemplate.updateFirst(query, Update.update("pliveTypeId", pliveTypeId).set("liveCardNo",liveCardNo), Patients.class); | |
3186 | + Query query = Query.query(Criteria.where("pid").is(pid)); | |
3187 | + mongoTemplate.updateMulti(query, Update.update("pliveTypeId", pliveTypeId).set("liveCardNo",liveCardNo), Patients.class); | |
3188 | 3188 | br.setErrorcode(ErrorCodeConstants.SUCCESS); |
3189 | 3189 | br.setErrormsg("成功"); |
3190 | 3190 | return br; |