Commit 8e334cd8961003ef29904e5868517cba2ae681bc

Authored by shiyang
1 parent 6a9ecf889c
Exists in master

update

Showing 1 changed file with 4 additions and 8 deletions

talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/LymsHisInfoServiceImpl.java View file @ 8e334cd
... ... @@ -29,10 +29,6 @@
29 29 public class LymsHisInfoServiceImpl extends ServiceImpl<LymsHisInfoMapper, LymsHisInfo>
30 30 implements LymsHisInfoService{
31 31  
32   - @Value("${patient.hospitalName}")//配置yml 医院名称
33   - public String hospitalName;
34   - @Value("${patient.hospital}")//配置yml 医院id
35   - public Integer hospital;
36 32 @Autowired
37 33 private LymsDictService lymsDictService;
38 34 @Autowired
... ... @@ -91,7 +87,7 @@
91 87 String deptName = lymsHisInfo.getDept();
92 88 LymsHdepart depart = new LymsHdepart();
93 89 depart.setDname(deptName);
94   - depart.setHid(hospital);
  90 + depart.setHid(Integer.valueOf(lymsHisInfo.getHospitalId()));
95 91 LymsHdepart lymsHdeparts = lymsHdepartService.getOne(Wrappers.query(depart));
96 92 if (null!=lymsHdeparts) {
97 93 deptId = lymsHdeparts.getDid();
... ... @@ -102,7 +98,7 @@
102 98 Integer doctorId = null;//医生id
103 99 String doctorName = lymsHisInfo.getDoctor();
104 100 LymsDoctor doctor = new LymsDoctor();
105   - doctor.setHid(hospital);
  101 + doctor.setHid(Integer.valueOf(lymsHisInfo.getHospitalId()));
106 102 doctor.setDpid(deptId);
107 103 doctor.setDname(doctorName);
108 104 List<LymsDoctor> lymsDoctors = lymsDoctorService.list(Wrappers.query(doctor));
... ... @@ -170,8 +166,8 @@
170 166 patient2.setCcnt(0);
171 167 patient2.setCreatedby(1);
172 168 pcase.setMobile(phone);
173   - pcase.setHid(hospital);
174   - pcase.setHname(hospitalName);
  169 + pcase.setHid(Integer.valueOf(lymsHisInfo.getHospitalId()));
  170 + pcase.setHname(lymsHdeparts.getHname());
175 171 pcase.setDid(deptId);
176 172 pcase.setDname(deptName);
177 173 pcase.setDtid(doctorId);