|
@ -14,6 +14,7 @@ import com.yihu.jw.entity.hospital.family.WlyyPatientFamilyMemberDO;
|
|
|
import com.yihu.jw.entity.hospital.message.SystemMessageDO;
|
|
|
import com.yihu.jw.entity.specialist.rehabilitation.RehabilitationPatientInfoDO;
|
|
|
import com.yihu.jw.hospital.dict.WlyyHospitalSysDictDao;
|
|
|
import com.yihu.jw.hospital.dict.service.WlyyHospitalSysDictService;
|
|
|
import com.yihu.jw.hospital.family.dao.WlyyPatientFamilyMemberDao;
|
|
|
import com.yihu.jw.hospital.message.dao.SystemMessageDao;
|
|
|
import com.yihu.jw.hospital.module.followup.dao.*;
|
|
@ -89,6 +90,8 @@ public class FollowUpService {
|
|
|
@Autowired
|
|
|
private WlyyHospitalSysDictDao hospitalSysDictDao;
|
|
|
@Autowired
|
|
|
private WlyyHospitalSysDictService sysDictService;
|
|
|
@Autowired
|
|
|
private SystemMessageDao messageDao;
|
|
|
@Autowired
|
|
|
private JdbcTemplate jdbcTemplate;
|
|
@ -107,7 +110,7 @@ public class FollowUpService {
|
|
|
@Autowired
|
|
|
private ExportUtl exportUtl;
|
|
|
|
|
|
public Map<String,Object> queryFollowupFormDetail(Integer followupId,String followupFormType) {
|
|
|
public Map<String,Object> queryFollowupFormDetail(Long followupId,String followupFormType) {
|
|
|
String sql = "";
|
|
|
if("1".equals(followupFormType)) { // 全院通用
|
|
|
sql = "select distinct " +
|
|
@ -128,7 +131,16 @@ public class FollowUpService {
|
|
|
sql = baseFollowupHandFootSql + " where f.followup_id ="+followupId + " limit 1";
|
|
|
}
|
|
|
if(StringUtils.isNotBlank(sql)) {
|
|
|
return jdbcTemplate.queryForMap(sql);
|
|
|
Map<String,Object> map = jdbcTemplate.queryForMap(sql);
|
|
|
if("1".equals(followupFormType)) { // 全院通用
|
|
|
Followup followup = followupDao.findById(followupId).orElse(null);
|
|
|
if(followup!=null){
|
|
|
map.put("doctorName",followup.getDoctorName());
|
|
|
map.put("name",followup.getPatientName());
|
|
|
map.put("followupManagerStatusValue",sysDictService.getDictValue("FOLLOWUP_MANAGER_STATUS",followup.getFollowupManagerStatus()));
|
|
|
}
|
|
|
}
|
|
|
return map;
|
|
|
}
|
|
|
return null;
|
|
|
}
|
|
@ -1629,8 +1641,10 @@ public class FollowUpService {
|
|
|
followupProject = "1";
|
|
|
//通用
|
|
|
List<FollowupContent> dataList = followupContentDao.findByFollowupIdAndFollowupProject(followupId, followupProject);
|
|
|
//删除原有记录
|
|
|
followupContentDao.deleteAll(dataList);
|
|
|
if(dataList.size()>0){
|
|
|
//删除原有记录
|
|
|
followupContentDao.deleteAll(dataList);
|
|
|
}
|
|
|
Map<String, String> data = objectMapper.readValue(followupProjectData, Map.class);
|
|
|
if (data != null && data.keySet().size() > 0) {
|
|
|
List<FollowupContent> newList = new ArrayList<>();
|