Commit 2fe9db3fd2182e9daafe325c1b09fff0ed1e70c4
1 parent
a32a48189f
Exists in
master
and in
2 other branches
分娩作废产检劵
Showing 1 changed file with 0 additions and 82 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntExRecordFacade.java
View file @
2fe9db3
| ... | ... | @@ -212,30 +212,6 @@ |
| 212 | 212 | return antExRecordQuery; |
| 213 | 213 | } |
| 214 | 214 | |
| 215 | - | |
| 216 | - private List convertToHighRisk(List<Patients> patientses, Integer userId, String hospital) { | |
| 217 | - List data = new ArrayList<>(); | |
| 218 | - int batchSize = 4; | |
| 219 | - int end = 0; | |
| 220 | - List<Future> listFuture = new ArrayList<>(); | |
| 221 | - for (int i = 0; i < patientses.size(); i += batchSize) { | |
| 222 | - end = (end + batchSize); | |
| 223 | - if (end > patientses.size()) { | |
| 224 | - end = patientses.size(); | |
| 225 | - } | |
| 226 | - listFuture.add(commonThreadPool.submit(new WorkHR(patientses.subList(i, end), usersService, hospital, basicConfigService, antExService, patientsService, organizationService))); | |
| 227 | - } | |
| 228 | - for (Future f : listFuture) { | |
| 229 | - try { | |
| 230 | - data.addAll((List) f.get(30, TimeUnit.SECONDS)); | |
| 231 | - } catch (Exception e) { | |
| 232 | - ExceptionUtils.catchException(e, "convertToHighRisk get result Future error."); | |
| 233 | - } | |
| 234 | - } | |
| 235 | - return data; | |
| 236 | - } | |
| 237 | - | |
| 238 | - | |
| 239 | 215 | /** |
| 240 | 216 | * 产检管理 |
| 241 | 217 | * |
| ... | ... | @@ -247,64 +223,6 @@ |
| 247 | 223 | List<AntExManagerResult> data = new ArrayList<>(); |
| 248 | 224 | List<AntExRecordModel> antExRecordModelList = recordService.queryAntExRecords(antExRecordQuery); |
| 249 | 225 | if (CollectionUtils.isNotEmpty(antExRecordModelList)) { |
| 250 | - /*AntExManagerResult antExManagerResult = new AntExManagerResult(); | |
| 251 | - antExManagerResult.convertToResult(e); | |
| 252 | - if (isRegion) { | |
| 253 | - //产检医院 | |
| 254 | - if (StringUtils.isNotEmpty(e.getHospitalId())) { | |
| 255 | - Organization org = organizationService.getOrganization(Integer.valueOf(e.getHospitalId())); | |
| 256 | - if (null != org) { | |
| 257 | - antExManagerResult.setCheckHospital(org.getName()); | |
| 258 | - } else { | |
| 259 | - antExManagerResult.setCheckHospital(e.getHospitalId()); | |
| 260 | - } | |
| 261 | - } | |
| 262 | - antExManagerResult.setAddr(CommonsHelper.getResidence(e.getProvinceRegisterId(), e.getCityRegisterId(), e.getAreaRegisterId(), e.getStreetRegisterId(), e.getAddressRegister(), basicConfigService)); | |
| 263 | - } | |
| 264 | - | |
| 265 | - //登记人 | |
| 266 | - if (org.apache.commons.lang.StringUtils.isNotEmpty(e.getBuildDoctor())) { | |
| 267 | - if (NumberUtils.isNumber(e.getBuildDoctor())) { | |
| 268 | - Users users = usersService.getUsers(NumberUtils.toInt(e.getBuildDoctor())); | |
| 269 | - if (null != users) { | |
| 270 | - antExManagerResult.setlName(users.getName()); | |
| 271 | - } else { | |
| 272 | - antExManagerResult.setlName(e.getBuildDoctor()); | |
| 273 | - } | |
| 274 | - } else { | |
| 275 | - antExManagerResult.setlName(e.getBuildDoctor()); | |
| 276 | - } | |
| 277 | - } | |
| 278 | - //产检医生 | |
| 279 | - if (org.apache.commons.lang.StringUtils.isNotEmpty(e.getCheckDoctor())) { | |
| 280 | - if (NumberUtils.isNumber(e.getCheckDoctor())) { | |
| 281 | - Users users = usersService.getUsers(NumberUtils.toInt(e.getCheckDoctor())); | |
| 282 | - if (null != users) { | |
| 283 | - antExManagerResult.setCheckDoctor(users.getName()); | |
| 284 | - } else { | |
| 285 | - antExManagerResult.setCheckDoctor(e.getCheckDoctor()); | |
| 286 | - } | |
| 287 | - } else { | |
| 288 | - antExManagerResult.setCheckDoctor(e.getCheckDoctor()); | |
| 289 | - } | |
| 290 | - } | |
| 291 | - | |
| 292 | - AntExRecordQuery antExRecordQuery1 = new AntExRecordQuery(); | |
| 293 | - antExRecordQuery1.setCheckTimeEnd(e.getCheckTime()); | |
| 294 | - antExRecordQuery1.setPid(e.getPid()); | |
| 295 | - antExRecordQuery1.setHospitalId(hospital); | |
| 296 | - | |
| 297 | - //本院低次 | |
| 298 | - int dichi = recordService.count(antExRecordQuery1); | |
| 299 | - antExRecordQuery1.setHospitalId(null); | |
| 300 | - | |
| 301 | - antExManagerResult.settTimes(recordService.count(antExRecordQuery1)); | |
| 302 | - antExManagerResult.setChTimes(dichi); | |
| 303 | - //高危因素 | |
| 304 | - antExManagerResult.setrLevel(commonService.findRiskLevel(e.gethLevel())); | |
| 305 | - antExManagerResult.setRiskFactor(commonService.resloveFactor(e.gethRisk()));*/ | |
| 306 | - | |
| 307 | - | |
| 308 | 226 | int batchSize = 4; |
| 309 | 227 | int end = 0; |
| 310 | 228 | List<Future> listFuture = new ArrayList<>(); |