Commit f907ba719853a168d79ec9873ba125e6b51261d8
1 parent
5abbfaed21
Exists in
master
and in
6 other branches
update
Showing 2 changed files with 20 additions and 20 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/BabyBuildController.java
View file @
f907ba7
... | ... | @@ -981,22 +981,22 @@ |
981 | 981 | /** |
982 | 982 | * 孕期-baby小程序调用接口,补填户籍地 |
983 | 983 | * @param pid |
984 | - * @param provinceId | |
985 | - * @param cityId | |
986 | - * @param areaId | |
987 | - * @param streetId | |
988 | - * @param address | |
984 | + * @param babyProvinceId | |
985 | + * @param babyCityId | |
986 | + * @param babyAreaId | |
987 | + * @param babyStreetId | |
988 | + * @param babyAddress | |
989 | 989 | * @return |
990 | 990 | */ |
991 | 991 | @RequestMapping(method = RequestMethod.GET, value = "/updateKosekiInfo") |
992 | 992 | @ResponseBody |
993 | 993 | public BaseResponse updateKosekiInfo(@RequestParam(required = true) String pid, |
994 | - @RequestParam(required = true)String provinceId, | |
995 | - @RequestParam(required = true)String cityId, | |
996 | - @RequestParam(required = true)String areaId, | |
997 | - @RequestParam(required = true)String streetId, | |
998 | - @RequestParam(required = true)String address ) { | |
999 | - return babyBookbuildingFacade.updateKosekiInfo(pid, provinceId,cityId,areaId,streetId,address); | |
994 | + @RequestParam(required = true)String babyProvinceId, | |
995 | + @RequestParam(required = true)String babyCityId, | |
996 | + @RequestParam(required = true)String babyAreaId, | |
997 | + @RequestParam(required = true)String babyStreetId, | |
998 | + @RequestParam(required = true)String babyAddress ) { | |
999 | + return babyBookbuildingFacade.updateKosekiInfo(pid, babyProvinceId,babyCityId,babyAreaId,babyStreetId,babyAddress); | |
1000 | 1000 | } |
1001 | 1001 | |
1002 | 1002 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyBookbuildingFacade.java
View file @
f907ba7
... | ... | @@ -6044,11 +6044,11 @@ |
6044 | 6044 | return babyCheckService.queryBabyCheckListRecord(babyCheckModel); |
6045 | 6045 | } |
6046 | 6046 | |
6047 | - public BaseResponse updateKosekiInfo(String pid, String provinceId, String cityId, String areaId, String streetId, String address) { | |
6047 | + public BaseResponse updateKosekiInfo(String pid, String babyProvinceId, String babyCityId, String babyAreaId, String babyStreetId, String babyAddress) { | |
6048 | 6048 | BaseResponse br=new BaseResponse(); |
6049 | - if (StringUtils.isEmpty(pid)|| StringUtils.isEmpty(provinceId)|| | |
6050 | - StringUtils.isEmpty(cityId)|| StringUtils.isEmpty(areaId)|| | |
6051 | - StringUtils.isEmpty(streetId)|| StringUtils.isEmpty(address) | |
6049 | + if (StringUtils.isEmpty(pid)|| StringUtils.isEmpty(babyProvinceId)|| | |
6050 | + StringUtils.isEmpty(babyCityId)|| StringUtils.isEmpty(babyAreaId)|| | |
6051 | + StringUtils.isEmpty(babyStreetId)|| StringUtils.isEmpty(babyAddress) | |
6052 | 6052 | ) { |
6053 | 6053 | br.setErrorcode(ErrorCodeConstants.PARAMETER_ERROR); |
6054 | 6054 | br.setErrormsg("参数不能为空"); |
... | ... | @@ -6056,11 +6056,11 @@ |
6056 | 6056 | } |
6057 | 6057 | Query query = Query.query(Criteria.where("pid").is(pid)); |
6058 | 6058 | Update update = new Update(); |
6059 | - update.set("babyProvinceId", provinceId); | |
6060 | - update.set("babyCityId", cityId); | |
6061 | - update.set("babyAreaId", areaId); | |
6062 | - update.set("babyStreetId", streetId); | |
6063 | - update.set("babyAddress", address); | |
6059 | + update.set("babyProvinceId", babyProvinceId); | |
6060 | + update.set("babyCityId", babyCityId); | |
6061 | + update.set("babyAreaId", babyAreaId); | |
6062 | + update.set("babyStreetId", babyStreetId); | |
6063 | + update.set("babyAddress", babyAddress); | |
6064 | 6064 | mongoTemplate.updateMulti(query, update, BabyModel.class); |
6065 | 6065 | br.setErrorcode(ErrorCodeConstants.SUCCESS); |
6066 | 6066 | br.setErrormsg("成功"); |