Commit b0801a32db91bdc85b83cc977b96b71fb62e9764
1 parent
0f3f9f89c1
Exists in
master
and in
6 other branches
update code
Showing 2 changed files with 21 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/QhdfyHisService.java
View file @
b0801a3
| ... | ... | @@ -10,6 +10,7 @@ |
| 10 | 10 | import com.lyms.platform.common.dao.operator.MongoOper; |
| 11 | 11 | import com.lyms.platform.common.enums.YnEnums; |
| 12 | 12 | import com.lyms.platform.common.utils.DateUtil; |
| 13 | +import com.lyms.platform.common.utils.ExceptionUtils; | |
| 13 | 14 | import com.lyms.platform.common.utils.JsonUtil; |
| 14 | 15 | import com.lyms.platform.pojo.*; |
| 15 | 16 | import com.lyms.platform.query.LisReportQuery; |
| 16 | 17 | |
| 17 | 18 | |
| ... | ... | @@ -339,9 +340,18 @@ |
| 339 | 340 | |
| 340 | 341 | public List<Map<String,Object>> getPatientInfoList(String cardNo){ |
| 341 | 342 | List<Map<String,Object>> result = new ArrayList<>(); |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 342 | 346 | if (StringUtils.isNotBlank(cardNo)) { |
| 347 | + long start = System.currentTimeMillis(); | |
| 348 | + | |
| 343 | 349 | Connection conn = com.lyms.hospitalapi.qhdfy.ConnTools.makeHisConnection(); |
| 344 | 350 | QueryRunner queryRunner = new QueryRunner(); |
| 351 | + | |
| 352 | + long end = System.currentTimeMillis(); | |
| 353 | + | |
| 354 | + System.out.println("times3 = " + (end - start)); | |
| 345 | 355 | try { |
| 346 | 356 | List<PregPatientinfo> list = queryRunner.query(conn, "select top 1 patid as P_ID,hzxm as P_NAME, sex as P_SEX, birth as BIRTH, sfzh as P_CARDNO, lxdh as P_MOBILEPHONE from SF_BRXXK where cardno= '"+cardNo+"'", new BeanListHandler<PregPatientinfo>(PregPatientinfo.class)); |
| 347 | 357 | if (list.size() > 0) { |
| 348 | 358 | |
| ... | ... | @@ -361,9 +371,12 @@ |
| 361 | 371 | result.add(map); |
| 362 | 372 | } |
| 363 | 373 | } |
| 374 | + long end1 = System.currentTimeMillis(); | |
| 375 | + System.out.println("times4 = " + (end1 - end)); | |
| 364 | 376 | DbUtils.closeQuietly(conn); |
| 365 | 377 | } catch (SQLException e) { |
| 366 | 378 | DbUtils.closeQuietly(conn); |
| 379 | + ExceptionUtils.catchException(e,"qhd his exception "); | |
| 367 | 380 | e.printStackTrace(); |
| 368 | 381 | } |
| 369 | 382 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyBookbuildingFacade.java
View file @
b0801a3
| ... | ... | @@ -1300,6 +1300,7 @@ |
| 1300 | 1300 | puerperaQuery.setCardNo(param.getCardNo()); |
| 1301 | 1301 | } else if (param.getHospitalId() != null & !StringUtils.isEmpty(param.getVcCardNo())) { |
| 1302 | 1302 | |
| 1303 | + long start = System.currentTimeMillis(); | |
| 1303 | 1304 | BabyModelQuery babyQuery = new BabyModelQuery(); |
| 1304 | 1305 | babyQuery.setYn(YnEnums.YES.getId()); |
| 1305 | 1306 | babyQuery.setVcCardNo(param.getVcCardNo()); |
| 1306 | 1307 | |
| 1307 | 1308 | |
| ... | ... | @@ -1311,8 +1312,15 @@ |
| 1311 | 1312 | } |
| 1312 | 1313 | |
| 1313 | 1314 | babyQuery.setHospitalIdList(groupsFacade.findGroupHospital(userId,false)); |
| 1315 | + long end = System.currentTimeMillis(); | |
| 1314 | 1316 | |
| 1317 | + System.out.println("times1 === " + (end - start)); | |
| 1318 | + | |
| 1315 | 1319 | List<BabyModel> babyModels = babyBookbuildingService.queryBabyBuildByCond(babyQuery); |
| 1320 | + | |
| 1321 | + long end1 = System.currentTimeMillis(); | |
| 1322 | + | |
| 1323 | + System.out.println("times2 === "+( end1 -end)); | |
| 1316 | 1324 | if (CollectionUtils.isNotEmpty(babyModels)) { |
| 1317 | 1325 | BabyModel model = babyModels.get(0); |
| 1318 | 1326 | if (model != null) { |