Commit f77d44ca00de4c5541a7089da7f5eb0e6a0a3ff2
1 parent
c95e399747
Exists in
master
and in
6 other branches
update
Showing 1 changed file with 24 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BookbuildingFacade.java
View file @
f77d44c
| ... | ... | @@ -43,6 +43,7 @@ |
| 43 | 43 | import org.springframework.data.mongodb.core.MongoTemplate; |
| 44 | 44 | import org.springframework.data.mongodb.core.query.Criteria; |
| 45 | 45 | import org.springframework.data.mongodb.core.query.Query; |
| 46 | +import org.springframework.data.mongodb.core.query.Update; | |
| 46 | 47 | import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; |
| 47 | 48 | import org.springframework.stereotype.Component; |
| 48 | 49 | import org.springframework.web.client.RestTemplate; |
| 49 | 50 | |
| ... | ... | @@ -1644,8 +1645,17 @@ |
| 1644 | 1645 | List<BasicConfigResult> censusType = basicConfigFacade.getBaseicConfigByParentId(SystemConfig.CENSUS_TYPE_ID); |
| 1645 | 1646 | typeMap.put("censusType", censusType); |
| 1646 | 1647 | |
| 1647 | - // 户籍类别 | |
| 1648 | + // 居住类型 | |
| 1648 | 1649 | List<BasicConfigResult> liveType = basicConfigFacade.getBaseicConfigByParentId(SystemConfig.LIVE_TYPE_ID); |
| 1650 | + //秦皇岛需求-增加有居住证,客服配置(其他地区不需要这个选项,前端公共页面调用这个接口这里需处理) | |
| 1651 | + if(StringUtils.isNotEmpty(hospitalId) && !"216".equals(hospitalId)){ | |
| 1652 | + for (BasicConfigResult basicConfigResult : liveType) { | |
| 1653 | + if("有居住证".equals(basicConfigResult.getName())){ | |
| 1654 | + liveType.remove(basicConfigResult); | |
| 1655 | + break; | |
| 1656 | + } | |
| 1657 | + } | |
| 1658 | + } | |
| 1649 | 1659 | typeMap.put("liveType", liveType); |
| 1650 | 1660 | |
| 1651 | 1661 | |
| ... | ... | @@ -3166,5 +3176,18 @@ |
| 3166 | 3176 | return new BaseListResponse().setData(data).setErrorcode(0).setErrormsg("成功"); |
| 3167 | 3177 | } |
| 3168 | 3178 | |
| 3179 | + public BaseResponse updateTransientInfo(String id, String pliveTypeId, String liveCardNo) { | |
| 3180 | + BaseResponse br=new BaseResponse(); | |
| 3181 | + if (StringUtils.isEmpty(id)|| StringUtils.isEmpty(pliveTypeId)|| StringUtils.isEmpty(liveCardNo)) { | |
| 3182 | + br.setErrorcode(ErrorCodeConstants.PARAMETER_ERROR); | |
| 3183 | + br.setErrormsg("参数不能为空"); | |
| 3184 | + return br; | |
| 3185 | + } | |
| 3186 | + Query query = Query.query(Criteria.where("id").is(id)); | |
| 3187 | + mongoTemplate.updateFirst(query, Update.update("pliveTypeId", pliveTypeId).set("liveCardNo",liveCardNo), Patients.class); | |
| 3188 | + br.setErrorcode(ErrorCodeConstants.SUCCESS); | |
| 3189 | + br.setErrormsg("成功"); | |
| 3190 | + return br; | |
| 3191 | + } | |
| 3169 | 3192 | } |