Commit aaf84d89757dde396bef21f1ce4b2bfc0d8c159f
Exists in
master
Merge remote-tracking branch 'origin/master'
Showing 13 changed files
- platform-common/src/main/java/com/lyms/platform/common/utils/DateUtil.java
- platform-dal/src/main/java/com/lyms/platform/pojo/BabyCheckModel.java
- platform-dal/src/main/java/com/lyms/platform/query/BabyCheckModelQuery.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/Test.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/PremaritalCheckupController.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/TestController.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyBookbuildingFacade.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyCheckFacade.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/MatDeliverFacade.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PremaritalCheckupFacade.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ResidentsArchiveFacade.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ResidentsFacade.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/PatientManagerQueryModel.java
platform-common/src/main/java/com/lyms/platform/common/utils/DateUtil.java
View file @
aaf84d8
... | ... | @@ -836,7 +836,9 @@ |
836 | 836 | // Date startDate = getRangeDate(parseYMD("2016-09-07"),2,"周",-1); |
837 | 837 | // System.out.println(getyyyy_MM_dd(startDate)); |
838 | 838 | |
839 | - int a = daysBetween(parseYMD("2016-10-01"),new Date())/7; | |
839 | + | |
840 | + int a = getBabyAgeMonth(parseYMD("2012-10-01"),parseYMD("2016-10-01")); | |
841 | +// int a = daysBetween(parseYMD("2016-10-01"),new Date())/7; | |
840 | 842 | System.out.println(a); |
841 | 843 | |
842 | 844 | // Date dueDate = DateUtil.addDay(DateUtil.addMonth(parseYMD("2016-02-08"), 9), 7); |
platform-dal/src/main/java/com/lyms/platform/pojo/BabyCheckModel.java
View file @
aaf84d8
... | ... | @@ -234,6 +234,17 @@ |
234 | 234 | |
235 | 235 | private Date birth; |
236 | 236 | |
237 | + //检查月龄 | |
238 | + private Integer checkMonth; | |
239 | + | |
240 | + public Integer getCheckMonth() { | |
241 | + return checkMonth; | |
242 | + } | |
243 | + | |
244 | + public void setCheckMonth(Integer checkMonth) { | |
245 | + this.checkMonth = checkMonth; | |
246 | + } | |
247 | + | |
237 | 248 | public Date getBirth() { |
238 | 249 | return birth; |
239 | 250 | } |
platform-dal/src/main/java/com/lyms/platform/query/BabyCheckModelQuery.java
View file @
aaf84d8
... | ... | @@ -54,8 +54,11 @@ |
54 | 54 | private Date checkDateStart; |
55 | 55 | private Date checkDateEnd; |
56 | 56 | |
57 | + private Integer checkMonthStart; | |
58 | + private Integer checkMonthEnd; | |
57 | 59 | |
58 | 60 | |
61 | + | |
59 | 62 | @Override |
60 | 63 | public MongoQuery convertToQuery() { |
61 | 64 | MongoCondition condition = MongoCondition.newInstance(); |
62 | 65 | |
... | ... | @@ -121,11 +124,44 @@ |
121 | 124 | } |
122 | 125 | } |
123 | 126 | |
127 | + if (null != checkMonthStart) { | |
128 | + if (null != c) { | |
129 | + c = c.and("checkMonth").gte(checkMonthStart); | |
130 | + } else { | |
131 | + c = Criteria.where("checkMonth").gte(checkMonthStart); | |
132 | + } | |
133 | + } | |
134 | + | |
135 | + if (null != checkMonthEnd) { | |
136 | + if (null != c) { | |
137 | + c = c.lte(checkMonthEnd); | |
138 | + } else { | |
139 | + c = Criteria.where("checkMonth").lte(checkMonthEnd); | |
140 | + } | |
141 | + } | |
142 | + | |
143 | + | |
124 | 144 | if (c != null) { |
125 | 145 | return new MongoCondition(c.andOperator(condition.getCriteria())).toMongoQuery(); |
126 | 146 | } |
127 | 147 | |
128 | 148 | return condition.toMongoQuery(); |
149 | + } | |
150 | + | |
151 | + public Integer getCheckMonthStart() { | |
152 | + return checkMonthStart; | |
153 | + } | |
154 | + | |
155 | + public void setCheckMonthStart(Integer checkMonthStart) { | |
156 | + this.checkMonthStart = checkMonthStart; | |
157 | + } | |
158 | + | |
159 | + public Integer getCheckMonthEnd() { | |
160 | + return checkMonthEnd; | |
161 | + } | |
162 | + | |
163 | + public void setCheckMonthEnd(Integer checkMonthEnd) { | |
164 | + this.checkMonthEnd = checkMonthEnd; | |
129 | 165 | } |
130 | 166 | |
131 | 167 | public String getHospitalId() { |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/Test.java
View file @
aaf84d8
1 | 1 | package com.lyms.platform.operate.web; |
2 | 2 | |
3 | 3 | import com.lyms.platform.common.enums.YnEnums; |
4 | -import com.lyms.platform.common.utils.DateUtil; | |
5 | -import com.lyms.platform.common.utils.JsonUtil; | |
6 | -import com.lyms.platform.common.utils.MongoConvertHelper; | |
7 | -import com.lyms.platform.common.utils.ReflectionUtils; | |
4 | +import com.lyms.platform.common.utils.*; | |
8 | 5 | import com.lyms.platform.operate.web.result.HighScoreResult; |
9 | 6 | import com.lyms.platform.permission.model.Users; |
10 | 7 | import com.lyms.platform.permission.service.UsersService; |
11 | 8 | import com.lyms.platform.pojo.Patients; |
12 | 9 | import com.lyms.platform.query.AntExChuQuery; |
10 | +import com.lyms.platform.query.BabyCheckModelQuery; | |
13 | 11 | import com.lyms.platform.query.PatientsQuery; |
14 | 12 | import org.springframework.context.ApplicationContext; |
15 | 13 | import org.springframework.context.support.ClassPathXmlApplicationContext; |
... | ... | @@ -26,7 +24,7 @@ |
26 | 24 | public class Test { |
27 | 25 | |
28 | 26 | public static void main(String[] args) { |
29 | - PatientsQuery patientsQuery1 = new PatientsQuery(); | |
27 | +// PatientsQuery patientsQuery1 = new PatientsQuery(); | |
30 | 28 | // patientsQuery1.setHospitalId("221"); |
31 | 29 | // patientsQuery1.setYn(YnEnums.YES.getId()); |
32 | 30 | // patientsQuery1.setType(1); |
33 | 31 | |
34 | 32 | |
... | ... | @@ -62,33 +60,33 @@ |
62 | 60 | // patientsQuery1.setType(1); |
63 | 61 | // |
64 | 62 | |
65 | - patientsQuery1.setYn(YnEnums.YES.getId()); | |
66 | - patientsQuery1.setType(1); | |
63 | +// patientsQuery1.setYn(YnEnums.YES.getId()); | |
64 | +// patientsQuery1.setType(1); | |
65 | +// | |
66 | +//// Date end = DateUtil.addDay(new Date(), 0); | |
67 | +// | |
68 | +// Date start = DateUtil.addDay(new Date(), -100); | |
69 | +// | |
70 | +// | |
71 | +// patientsQuery1.setLastMensesStart(start); | |
72 | +//// patientsQuery1.setLastMensesEnd(end); | |
73 | +// | |
74 | +// | |
75 | +// Date date1 = DateUtil.addYear(new Date(), -18); | |
76 | +//// patientsQuery1.setBirthEnd(date1); | |
77 | +// Date date2 = DateUtil.addYear(new Date(), -30); | |
78 | +// date2 = DateUtil.addYear(date2, -1); | |
79 | +// | |
80 | +// patientsQuery1.setBirthStart(DateUtil.addDay(date2, 1)); | |
81 | +// List buildType = new ArrayList(); | |
82 | +// buildType.add(0); | |
83 | +// buildType.add(2); | |
84 | +// patientsQuery1.setBuildTypeList(buildType); | |
85 | +// | |
86 | +// | |
87 | +// System.out.println(patientsQuery1.convertToQuery().convertToMongoQuery()); | |
67 | 88 | |
68 | -// Date end = DateUtil.addDay(new Date(), 0); | |
69 | 89 | |
70 | - Date start = DateUtil.addDay(new Date(), -100); | |
71 | - | |
72 | - | |
73 | - patientsQuery1.setLastMensesStart(start); | |
74 | -// patientsQuery1.setLastMensesEnd(end); | |
75 | - | |
76 | - | |
77 | - Date date1 = DateUtil.addYear(new Date(), -18); | |
78 | -// patientsQuery1.setBirthEnd(date1); | |
79 | - Date date2 = DateUtil.addYear(new Date(), -30); | |
80 | - date2 = DateUtil.addYear(date2, -1); | |
81 | - | |
82 | - patientsQuery1.setBirthStart(DateUtil.addDay(date2, 1)); | |
83 | - List buildType = new ArrayList(); | |
84 | - buildType.add(0); | |
85 | - buildType.add(2); | |
86 | - patientsQuery1.setBuildTypeList(buildType); | |
87 | - | |
88 | - | |
89 | - System.out.println(patientsQuery1.convertToQuery().convertToMongoQuery()); | |
90 | - | |
91 | - | |
92 | 90 | /* |
93 | 91 | |
94 | 92 | { |
... | ... | @@ -213,6 +211,38 @@ |
213 | 211 | } |
214 | 212 | |
215 | 213 | */ |
214 | + | |
215 | + | |
216 | + BabyCheckModelQuery babyQuery = new BabyCheckModelQuery(); | |
217 | + babyQuery.setHospitalId("216"); | |
218 | + | |
219 | + babyQuery.setYn(YnEnums.YES.getId()); | |
220 | + Date currentDate = DateUtil.formatDate(new Date()); | |
221 | + | |
222 | +// String birth="2016-02-01 - 2016-05-01"; | |
223 | + Integer monthAgeStart = 1; | |
224 | + Integer monthAgeEnd = 1; | |
225 | + | |
226 | +// if (StringUtils.isNotEmpty(birth)) | |
227 | +// { | |
228 | +// String birthStr = birth; | |
229 | +// String[] dates = birthStr.split(" - "); | |
230 | +// babyQuery.setBirthStart(DateUtil.parseYMD(dates[0])); | |
231 | +// babyQuery.setBirthEnd(DateUtil.parseYMD(dates[1])); | |
232 | +// } | |
233 | + if (monthAgeStart != null) | |
234 | + { | |
235 | + Date start = DateUtil.addMonth(currentDate, -monthAgeStart); | |
236 | + babyQuery.setCheckDateEnd(start); | |
237 | + } | |
238 | + if (monthAgeEnd != null) | |
239 | + { | |
240 | + Date end = DateUtil.addDay(DateUtil.addMonth(currentDate, -monthAgeEnd - 1), 1); | |
241 | + babyQuery.setCheckDateStart(end); | |
242 | + } | |
243 | + | |
244 | + | |
245 | + System.out.println(babyQuery.convertToQuery().convertToMongoQuery()); | |
216 | 246 | |
217 | 247 | |
218 | 248 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/PremaritalCheckupController.java
View file @
aaf84d8
... | ... | @@ -66,6 +66,7 @@ |
66 | 66 | @RequestParam(value = "id",required = false)String id, |
67 | 67 | HttpServletRequest request) { |
68 | 68 | //获取当前登录用户ID |
69 | + LoginContext loginState = (LoginContext) request.getAttribute("loginContext"); | |
69 | 70 | PremaritalCheckupQueryRequest param = new PremaritalCheckupQueryRequest(); |
70 | 71 | param.setHospitalId(hospitalId); |
71 | 72 | if (StringUtils.isNotEmpty(id)){ |
... | ... | @@ -74,7 +75,7 @@ |
74 | 75 | param.setVcCardNo(vcCardNo); |
75 | 76 | param.setCardNo(certificateNum); |
76 | 77 | } |
77 | - return premaritalCheckupFacade.getPremaritalCheckup(param); | |
78 | + return premaritalCheckupFacade.getPremaritalCheckup(param,loginState.getId()); | |
78 | 79 | } |
79 | 80 | |
80 | 81 | /** |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/TestController.java
View file @
aaf84d8
... | ... | @@ -796,6 +796,8 @@ |
796 | 796 | } |
797 | 797 | checkModel.setHospitalId(checkModel.getHospitalId()); |
798 | 798 | checkModel.setBirth(babyModel.getBirth()); |
799 | + | |
800 | + checkModel.setCheckMonth(DateUtil.getBabyAgeMonth(babyModel.getBirth(), checkModel.getCheckDate())); | |
799 | 801 | babyCheckService.updateBabyCheck(checkModel,checkModel.getId()); |
800 | 802 | } |
801 | 803 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyBookbuildingFacade.java
View file @
aaf84d8
... | ... | @@ -2215,7 +2215,6 @@ |
2215 | 2215 | babyQuery.setHospitalId(hospitalId); |
2216 | 2216 | |
2217 | 2217 | babyQuery.setYn(YnEnums.YES.getId()); |
2218 | - Date currentDate = DateUtil.formatDate(new Date()); | |
2219 | 2218 | |
2220 | 2219 | if (StringUtils.isNotEmpty(request.getBirth())) |
2221 | 2220 | { |
2222 | 2221 | |
... | ... | @@ -2226,13 +2225,11 @@ |
2226 | 2225 | } |
2227 | 2226 | if (request.getMonthAgeStart() != null) |
2228 | 2227 | { |
2229 | - Date start = DateUtil.addMonth(currentDate, -request.getMonthAgeStart()); | |
2230 | - babyQuery.setCheckDateEnd(start); | |
2228 | + babyQuery.setCheckMonthStart(request.getMonthAgeStart()); | |
2231 | 2229 | } |
2232 | 2230 | if (request.getMonthAgeEnd() != null) |
2233 | 2231 | { |
2234 | - Date end = DateUtil.addDay(DateUtil.addMonth(currentDate, -request.getMonthAgeEnd() - 1), 1); | |
2235 | - babyQuery.setCheckDateStart(end); | |
2232 | + babyQuery.setCheckMonthEnd(request.getMonthAgeEnd()); | |
2236 | 2233 | } |
2237 | 2234 | |
2238 | 2235 | babyQuery.setPage(page); |
... | ... | @@ -2283,7 +2280,7 @@ |
2283 | 2280 | map.put("height",checkModel.getHeight()); //身长 |
2284 | 2281 | map.put("weight", checkModel.getWeight()); //体重 |
2285 | 2282 | StringBuffer sb = new StringBuffer(); |
2286 | - if (StringUtils.isNotEmpty(checkModel.getGrowthEvaluate()) && "[null]".equals(checkModel.getGrowthEvaluate())) | |
2283 | + if (StringUtils.isNotEmpty(checkModel.getGrowthEvaluate()) && "[\"null\"]".equals(checkModel.getGrowthEvaluate())) | |
2287 | 2284 | { |
2288 | 2285 | List<String> items = JsonUtil.toList(checkModel.getGrowthEvaluate(),String.class); |
2289 | 2286 | if (CollectionUtils.isNotEmpty(items)) |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyCheckFacade.java
View file @
aaf84d8
... | ... | @@ -189,6 +189,17 @@ |
189 | 189 | model.setHeadEvaluate(request.getHeadEvaluate()); |
190 | 190 | model.setHeightEvaluate(request.getHeightEvaluate()); |
191 | 191 | |
192 | + if (StringUtils.isNotEmpty(request.getBuildId())) | |
193 | + { | |
194 | + BabyModelQuery babyModelQuery=new BabyModelQuery(); | |
195 | + babyModelQuery.setId(request.getBuildId()); | |
196 | + babyModelQuery.setYn(YnEnums.YES.getId()); | |
197 | + List<BabyModel> babyModelList= babyBookbuildingService.queryBabyBuildByCond(babyModelQuery); | |
198 | + if(CollectionUtils.isNotEmpty(babyModelList)){ | |
199 | + model.setCheckMonth(DateUtil.getBabyAgeMonth(babyModelList.get(0).getBirth(),DateUtil.parseYMD(request.getCheckDate()))); | |
200 | + } | |
201 | + } | |
202 | + | |
192 | 203 | return model; |
193 | 204 | } |
194 | 205 |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/MatDeliverFacade.java
View file @
aaf84d8
... | ... | @@ -1063,7 +1063,7 @@ |
1063 | 1063 | childbirthManagerQueryModel.setPatientId(patients.getId()); |
1064 | 1064 | childbirthManagerQueryModel.setMaternalDeliverId(maternalDeliverModel.getId()); |
1065 | 1065 | // 居住地 |
1066 | - if (childbirthManagerRequest.getInitQuery().contains("address")) { | |
1066 | + if (StringUtils.isNotEmpty(childbirthManagerRequest.getInitQuery())&&childbirthManagerRequest.getInitQuery().contains("address")) { | |
1067 | 1067 | childbirthManagerQueryModel.setAddress(CommonsHelper.getResidence(patients.getProvinceRegisterId(), patients.getCityRegisterId(), patients.getAreaRegisterId(), patients.getStreetRegisterId(), patients.getAddressRegister(), basicConfigService)); |
1068 | 1068 | } |
1069 | 1069 | // 电话转换 |
... | ... | @@ -1072,7 +1072,7 @@ |
1072 | 1072 | // 加密身份证号 |
1073 | 1073 | childbirthManagerQueryModel.setCardNo(DefenceUtils.getId(patients.getCardNo())); |
1074 | 1074 | // 查询分娩方式 |
1075 | - if (childbirthManagerRequest.getInitQuery().contains("deliveryMode")) { | |
1075 | + if (StringUtils.isNotEmpty(childbirthManagerRequest.getInitQuery())&&childbirthManagerRequest.getInitQuery().contains("deliveryMode")) { | |
1076 | 1076 | String deliveryModeJson = maternalDeliverModel.getDeliveryMode(); |
1077 | 1077 | Map<String, String> deliveryModeMap = JsonUtil.getMap(deliveryModeJson); |
1078 | 1078 | if (MapUtils.isNotEmpty(deliveryModeMap) && StringUtils.isNotEmpty(deliveryModeMap.get("fmfs"))) { |
... | ... | @@ -1087,7 +1087,7 @@ |
1087 | 1087 | } |
1088 | 1088 | } |
1089 | 1089 | // 产妇情况 |
1090 | - if (childbirthManagerRequest.getInitQuery().contains("maternalInfo")) { | |
1090 | + if (StringUtils.isNotEmpty(childbirthManagerRequest.getInitQuery())&&childbirthManagerRequest.getInitQuery().contains("maternalInfo")) { | |
1091 | 1091 | if (StringUtils.isNotBlank(maternalDeliverModel.getMaternalInfo())) { |
1092 | 1092 | for (CfEnums cfEnums : CfEnums.values()) { |
1093 | 1093 | if (cfEnums.getId().equals(maternalDeliverModel.getMaternalInfo())) { |
... | ... | @@ -1099,7 +1099,7 @@ |
1099 | 1099 | } |
1100 | 1100 | // 查询接生医生 |
1101 | 1101 | try { |
1102 | - if (childbirthManagerRequest.getInitQuery().contains("deliverDoctor")) { | |
1102 | + if (StringUtils.isNotEmpty(childbirthManagerRequest.getInitQuery())&&childbirthManagerRequest.getInitQuery().contains("deliverDoctor")) { | |
1103 | 1103 | childbirthManagerQueryModel.setDeliverDoctor(usersService.getUsers(Integer.valueOf(maternalDeliverModel.getDeliverDoctor())).getName()); |
1104 | 1104 | } |
1105 | 1105 | } catch (Exception e) { |
... | ... | @@ -1107,7 +1107,7 @@ |
1107 | 1107 | } |
1108 | 1108 | childbirthManagerQueryModel.setAge(DateUtil.getAge(patients.getBirth())); |
1109 | 1109 | // 查询活产数 |
1110 | - if (childbirthManagerRequest.getInitQuery().contains("livingNumber")) { | |
1110 | + if (StringUtils.isNotEmpty(childbirthManagerRequest.getInitQuery())&&childbirthManagerRequest.getInitQuery().contains("livingNumber")) { | |
1111 | 1111 | BabyModelQuery babyModelQuery = new BabyModelQuery(); |
1112 | 1112 | babyModelQuery.setYn(YnEnums.YES.getId()); |
1113 | 1113 | babyModelQuery.setParentId(patients.getId()); |
... | ... | @@ -1189,7 +1189,7 @@ |
1189 | 1189 | |
1190 | 1190 | // 开始拼装自定义查询结果 |
1191 | 1191 | // 胎方位,胎心率,胎先露 |
1192 | - if (childbirthManagerRequest.getInitQuery().contains("fetalPosition") || childbirthManagerRequest.getInitQuery().contains("heartRate") || childbirthManagerRequest.getInitQuery().contains("fetalPresentation")) { | |
1192 | + if (StringUtils.isNotEmpty(childbirthManagerRequest.getInitQuery())&&(childbirthManagerRequest.getInitQuery().contains("fetalPosition") || childbirthManagerRequest.getInitQuery().contains("heartRate") || childbirthManagerRequest.getInitQuery().contains("fetalPresentation"))) { | |
1193 | 1193 | // 这个泛型不会出错,传入的就是这个 |
1194 | 1194 | @SuppressWarnings("unchecked") |
1195 | 1195 | List<MatDeliverAddRequest.Placenta> placentaList = maternalDeliverModel.getPlacentas(); |
... | ... | @@ -1260,7 +1260,7 @@ |
1260 | 1260 | childbirthManagerQueryModel.setChBpSzy1(chBpMap.get("szy")); |
1261 | 1261 | } |
1262 | 1262 | // 胎盘娩出方式,胎盘大小,胎盘重量,脐带长度,脐带是否异常,脐带异常类型 |
1263 | - if (childbirthManagerRequest.getInitQuery().contains("tpmcType") || childbirthManagerRequest.getInitQuery().contains("tpSize") || childbirthManagerRequest.getInitQuery().contains("tpWeight") || childbirthManagerRequest.getInitQuery().contains("umbilicalCordLength") || childbirthManagerRequest.getInitQuery().contains("umbilicalCordEx") || childbirthManagerRequest.getInitQuery().contains("umbilicalCordExType")) { | |
1263 | + if (StringUtils.isNotEmpty(childbirthManagerRequest.getInitQuery())&&(childbirthManagerRequest.getInitQuery().contains("tpmcType") || childbirthManagerRequest.getInitQuery().contains("tpSize") || childbirthManagerRequest.getInitQuery().contains("tpWeight") || childbirthManagerRequest.getInitQuery().contains("umbilicalCordLength") || childbirthManagerRequest.getInitQuery().contains("umbilicalCordEx") || childbirthManagerRequest.getInitQuery().contains("umbilicalCordExType"))) { | |
1264 | 1264 | List<MaternalDeliverModel.ExtPlacenta> extPlacentaList = maternalDeliverModel.getExtPlacentas(); |
1265 | 1265 | if (CollectionUtils.isNotEmpty(extPlacentaList)) { |
1266 | 1266 | String tpmcType = ""; |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PremaritalCheckupFacade.java
View file @
aaf84d8
... | ... | @@ -59,7 +59,11 @@ |
59 | 59 | * @param requestParam |
60 | 60 | * @return |
61 | 61 | */ |
62 | - public BaseObjectResponse getPremaritalCheckup(PremaritalCheckupQueryRequest requestParam) { | |
62 | + public BaseObjectResponse getPremaritalCheckup(PremaritalCheckupQueryRequest requestParam,Integer userId) { | |
63 | + | |
64 | + String hospitalId = autoMatchFacade.getHospitalId(userId); | |
65 | + | |
66 | + requestParam.setHospitalId(hospitalId); | |
63 | 67 | |
64 | 68 | PremaritalCheckup result = null; |
65 | 69 | ResidentsArchiveModel archiveModel = null; |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ResidentsArchiveFacade.java
View file @
aaf84d8
... | ... | @@ -9,10 +9,7 @@ |
9 | 9 | import com.lyms.platform.common.result.BaseListResponse; |
10 | 10 | import com.lyms.platform.common.result.BaseObjectResponse; |
11 | 11 | import com.lyms.platform.common.result.BaseResponse; |
12 | -import com.lyms.platform.common.utils.DateUtil; | |
13 | -import com.lyms.platform.common.utils.ExcelUtil; | |
14 | -import com.lyms.platform.common.utils.JsonUtil; | |
15 | -import com.lyms.platform.common.utils.SystemConfig; | |
12 | +import com.lyms.platform.common.utils.*; | |
16 | 13 | import com.lyms.platform.operate.web.request.*; |
17 | 14 | import com.lyms.platform.operate.web.result.BasicConfigResult; |
18 | 15 | import com.lyms.platform.operate.web.result.ResidentsArchiveHistoryResult; |
... | ... | @@ -545,7 +542,7 @@ |
545 | 542 | Map<String,Object> map = new HashMap<>(); |
546 | 543 | map.put("id",model.getId()); |
547 | 544 | map.put("username",model.getUsername()); |
548 | - map.put("certificateNum",model.getCertificateNum()); | |
545 | + map.put("certificateNum", DefenceUtils.getId(model.getCertificateNum())); | |
549 | 546 | map.put("age",DateUtil.getAge(model.getBirthday())); |
550 | 547 | map.put("residence", CommonsHelper.getResidence(model.getProvinceId(), model.getCityId(), model.getAreaId(), model.getStreetId(), model.getAddress(), basicConfigService)); |
551 | 548 | map.put("isCheckup",queryPremaritalCheckup(model.getId(), model.getHospitalId())); |
... | ... | @@ -623,7 +620,7 @@ |
623 | 620 | map.put("nationId",FunvCommonUtil.getBaseicConfigByid(data.getNationId(), basicConfigService)); |
624 | 621 | map.put("marriageId",FunvCommonUtil.getBaseicConfigByid(data.getMarriageId(), basicConfigService)); |
625 | 622 | map.put("certificateTypeId",FunvCommonUtil.getBaseicConfigByid(data.getCertificateTypeId(), basicConfigService)); |
626 | - map.put("certificateNum",data.getCertificateNum()); | |
623 | + map.put("certificateNum",DefenceUtils.getId(data.getCertificateNum())); | |
627 | 624 | map.put("censusTypeId",FunvCommonUtil.getBaseicConfigByid(data.getCensusTypeId(), basicConfigService)); |
628 | 625 | map.put("liveTypeId",FunvCommonUtil.getBaseicConfigByid(data.getLiveTypeId(), basicConfigService)); |
629 | 626 | map.put("levelTypeId",FunvCommonUtil.getBaseicConfigByid(data.getLevelTypeId(), basicConfigService)); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ResidentsFacade.java
View file @
aaf84d8
... | ... | @@ -6,10 +6,7 @@ |
6 | 6 | import com.lyms.platform.common.result.BaseListResponse; |
7 | 7 | import com.lyms.platform.common.result.BaseObjectResponse; |
8 | 8 | import com.lyms.platform.common.result.BaseResponse; |
9 | -import com.lyms.platform.common.utils.DateUtil; | |
10 | -import com.lyms.platform.common.utils.ExcelUtil; | |
11 | -import com.lyms.platform.common.utils.JsonUtil; | |
12 | -import com.lyms.platform.common.utils.SystemConfig; | |
9 | +import com.lyms.platform.common.utils.*; | |
13 | 10 | import com.lyms.platform.operate.web.request.ResidentsArchiveQueryRequest; |
14 | 11 | import com.lyms.platform.operate.web.utils.CommonsHelper; |
15 | 12 | import com.lyms.platform.operate.web.utils.FunvCommonUtil; |
... | ... | @@ -177,7 +174,7 @@ |
177 | 174 | for (ResidentsArchiveModel model : modelList){ |
178 | 175 | Map<String,Object> map = new HashMap<>(); |
179 | 176 | map.put("username",model.getUsername()); |
180 | - map.put("certificateNum",model.getCertificateNum()); | |
177 | + map.put("certificateNum", DefenceUtils.getId(model.getCertificateNum())); | |
181 | 178 | map.put("age",DateUtil.getAge(model.getBirthday())); |
182 | 179 | map.put("householdRegister", CommonsHelper.getResidence(model.getProvinceRegisterId(), model.getCityId(), |
183 | 180 | model.getAreaRegisterId(), model.getStreetRegisterId(), model.getAddressRegister(), basicConfigService)); |
... | ... | @@ -363,7 +360,7 @@ |
363 | 360 | map.put("nationId",FunvCommonUtil.getBaseicConfigByid(data.getNationId(),basicConfigService)); |
364 | 361 | map.put("marriageId",FunvCommonUtil.getBaseicConfigByid(data.getMarriageId(),basicConfigService)); |
365 | 362 | map.put("certificateTypeId",FunvCommonUtil.getBaseicConfigByid(data.getCertificateTypeId(),basicConfigService)); |
366 | - map.put("certificateNum",data.getCertificateNum()); | |
363 | + map.put("certificateNum",DefenceUtils.getId(data.getCertificateNum())); | |
367 | 364 | map.put("censusTypeId",FunvCommonUtil.getBaseicConfigByid(data.getCensusTypeId(),basicConfigService)); |
368 | 365 | map.put("liveTypeId",FunvCommonUtil.getBaseicConfigByid(data.getLiveTypeId(),basicConfigService)); |
369 | 366 | map.put("levelTypeId",FunvCommonUtil.getBaseicConfigByid(data.getLevelTypeId(),basicConfigService)); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/PatientManagerQueryModel.java
View file @
aaf84d8