|
@ -130,6 +130,7 @@ import java.text.DecimalFormat;
|
|
|
import java.text.ParseException;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.*;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
import static javafx.scene.input.KeyCode.L;
|
|
|
|
|
@ -4858,7 +4859,8 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
"room.consult_type AS \"consult_type\"," +
|
|
|
"outpatient.consumer as \"consumer\", " +
|
|
|
"outpatient.consumer_name as \"consumerName\"," +
|
|
|
"outpatient.consumer_mobile as \"consumerMobile\", ";
|
|
|
"outpatient.consumer_mobile as \"consumerMobile\", "+
|
|
|
"outpatient.create_time as \"create_date\", ";
|
|
|
if ("xm_ykyy_wx".equals(wechatId)) {
|
|
|
if(flag){
|
|
|
sql += "date_format(room.reservation_time ,'yyyy-MM-dd hh24:mi:ss' ) AS \"timedate_format\",";
|
|
@ -5685,6 +5687,36 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
//mysql 与 Oracle 聚合函数返回类型不一致,需要判断装换
|
|
|
count = hibenateUtils.objTransformLong(listCount.get(0).get("total"));
|
|
|
}
|
|
|
List<WlyyHospitalSysDictDO> doctorFrontList = wlyyHospitalSysDictDao.findByDictNameOrderBySort("doctorFrontList");
|
|
|
if (doctorFrontList!=null&&doctorFrontList.size()>0){
|
|
|
List<Map<String,Object>> frontDoctor = new ArrayList<>();
|
|
|
if (list!=null&&list.size()>0){
|
|
|
for (WlyyHospitalSysDictDO wlyyHospitalSysDictDO:doctorFrontList){
|
|
|
for(Map<String,Object> map: list){
|
|
|
if(map.get("id").toString().equalsIgnoreCase(wlyyHospitalSysDictDO.getDictCode())){
|
|
|
map.put("doctorFrontSort",wlyyHospitalSysDictDO.getSort());
|
|
|
logger.info("doctorFrontSort",wlyyHospitalSysDictDO.getSort());
|
|
|
logger.info("doctorId",wlyyHospitalSysDictDO.getDictCode());
|
|
|
frontDoctor.add(map);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
for (WlyyHospitalSysDictDO wlyyHospitalSysDictDO:doctorFrontList){
|
|
|
for(Map<String,Object> map1: list){
|
|
|
if (wlyyHospitalSysDictDO.getDictCode().equalsIgnoreCase(map1.get("id").toString())){
|
|
|
list.remove(map1);
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
for(Map<String,Object> map1: list){
|
|
|
frontDoctor.add(map1);
|
|
|
}
|
|
|
list = frontDoctor;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
logger.info("findDoctorByHospitalAndDiseaseAndDept end:" + DateUtil.dateToStr(new Date(), "yyyy-MM-dd HH:mm:ss:SSS"));
|
|
|
logger.info("sql:" + sql);
|
|
|
MixEnvelop envelop =new MixEnvelop();
|
|
@ -5694,7 +5726,6 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
envelop.setCurrPage(page);
|
|
|
return envelop;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取常见疾病、热门部门、医生拒绝接诊原因 字典
|
|
|
*
|
|
@ -8777,6 +8808,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
content.deleteCharAt(content.length()-1);
|
|
|
icd10Code.deleteCharAt(icd10Code.length()-1);
|
|
|
}
|
|
|
wlyyOutpatientDO.setStatus("2");
|
|
|
wlyyOutpatientDO.setIcd10Name(content.toString());
|
|
|
wlyyOutpatientDO.setIcd10(icd10Code.toString());
|
|
|
outpatientDao.save(wlyyOutpatientDO);
|