|
@@ -2,6 +2,7 @@ package com.diagbot.facade.data;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
import com.diagbot.dto.RespDTO;
|
|
import com.diagbot.dto.RespDTO;
|
|
import com.diagbot.dto.data.ABasDoctorInfoDTO;
|
|
import com.diagbot.dto.data.ABasDoctorInfoDTO;
|
|
import com.diagbot.entity.BasDoctorInfo;
|
|
import com.diagbot.entity.BasDoctorInfo;
|
|
@@ -37,9 +38,9 @@ public class ABasDoctorInfoFacade extends BasDoctorInfoServiceImpl {
|
|
String sql="select * from v_gy_zgxx_ys";
|
|
String sql="select * from v_gy_zgxx_ys";
|
|
List<BasDoctorInfo> basDeptInfoList = tzDBConn.getBasDoctorInfo(sql);
|
|
List<BasDoctorInfo> basDeptInfoList = tzDBConn.getBasDoctorInfo(sql);
|
|
execute(basDeptInfoList);
|
|
execute(basDeptInfoList);
|
|
- aMedAbnormalInfoFacade.saveAbnormalInfo("医生信息更新","",JSON.toJSONString(basDeptInfoList), "", "");
|
|
|
|
|
|
+ aMedAbnormalInfoFacade.saveAbnormalInfo("医生信息更新成功","",JSON.toJSONString(basDeptInfoList), "", "");
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
-
|
|
|
|
|
|
+ aMedAbnormalInfoFacade.saveAbnormalInfo("医生信息更新失败","","", "", e.getMessage());
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -97,10 +98,14 @@ public class ABasDoctorInfoFacade extends BasDoctorInfoServiceImpl {
|
|
.eq("hospital_id", s.getHospitalId()));
|
|
.eq("hospital_id", s.getHospitalId()));
|
|
if (basDoctorInfo != null) {
|
|
if (basDoctorInfo != null) {
|
|
s.setGmtModified(new Date());
|
|
s.setGmtModified(new Date());
|
|
- updateE.add(s);
|
|
|
|
|
|
+// updateE.add(s);
|
|
|
|
+ QueryWrapper<BasDoctorInfo> updateWrapper = Wrappers.query();
|
|
|
|
+ updateWrapper.eq("doctor_id",s.getDoctorId());
|
|
|
|
+ this.update(s,updateWrapper);
|
|
} else {
|
|
} else {
|
|
s.setGmtCreate(new Date());
|
|
s.setGmtCreate(new Date());
|
|
- addE.add(s);
|
|
|
|
|
|
+ this.save(s);
|
|
|
|
+// addE.add(s);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
if(updateE.size()>0){
|
|
if(updateE.size()>0){
|