Commit f4a07017260cb2a73bce6d4df3cb2c9427e413c8

Authored by shiyang
1 parent 1d891e8e2c
Exists in master

update

Showing 2 changed files with 5 additions and 4 deletions

talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsHisInfo.java View file @ f4a0701
... ... @@ -86,7 +86,7 @@
86 86 @NotNull(message = "doctor不能为空")
87 87 private String doctor;
88 88 /**
89   - * 医生姓名
  89 + * 医院id
90 90 */
91 91 @TableField(value = "hospitalId")
92 92 @NotNull(message = "hospitalId不能为空")
talkonlineweb/src/main/java/com/lyms/talkonlineweb/task/GetPatientInfoTask.java View file @ f4a0701
... ... @@ -42,7 +42,7 @@
42 42 @Value("${patient.hospitalName}")//配置yml 医院名称
43 43 public String hospitalName;
44 44 @Value("${patient.hospital}")//配置yml 医院id
45   - public Integer hospital;
  45 + public String hospital;
46 46 @Autowired
47 47 private LymsPatientService lymsPatientService;//患者
48 48 @Autowired
... ... @@ -64,7 +64,7 @@
64 64 * 10分钟执行一次
65 65 */
66 66 @Scheduled(cron = "0 */10 * * * ?")
67   -// @Scheduled(cron = "0 */5 * * * ?")//测试用
  67 +// @Scheduled(cron = "0 */5 * * * ?"up)//测试用
68 68 public void getPatientInfo() throws Exception {
69 69 //每次执行时间范围是上一个小时
70 70 String param = collateTime();
... ... @@ -84,7 +84,7 @@
84 84 QueryWrapper qurey = new QueryWrapper();
85 85 qurey.eq("idCard", hisInfoMap.getIdcard());
86 86 qurey.eq("diagnose", hisInfoMap.getDiagnose());
87   - qurey.eq("hospitalId", hisInfoMap.getHospitalId());
  87 + qurey.eq("hospitalId", hospital);
88 88 Calendar calendar = Calendar.getInstance();
89 89 calendar.setTime(new Date());
90 90 calendar.set(Calendar.HOUR_OF_DAY, 00);//时
... ... @@ -95,6 +95,7 @@
95 95 if (CollectionUtils.isEmpty(list)) {
96 96 hisInfoMap.setBirthday(StringUtil.isNotEmpty(hisInfoMap.getBirthday()) ? StringUtil.leftTruncate(hisInfoMap.getBirthday(), ' ') : null);
97 97 hisInfoMap.setUpType(0);//默认未上传
  98 + hisInfoMap.setHospitalId(hospital);//医院id
98 99 lymsHisInfoService.save(hisInfoMap);
99 100 }
100 101 }