|
@ -2860,7 +2860,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
public List<Map<String,Object>> findDoctorByHospitalAndDiseaseAndDept(String orgCode, String dept,
|
|
public List<Map<String,Object>> findDoctorByHospitalAndDiseaseAndDept(String orgCode, String dept,
|
|
String diseaseKey, String doctorNameKey,
|
|
String diseaseKey, String doctorNameKey,
|
|
String jobTitleNameKey, String outpatientType,
|
|
String jobTitleNameKey, String outpatientType,
|
|
String keyName, String workingTime, String consultStatus,String consutlSort,Integer page,Integer pagesize) {
|
|
|
|
|
|
String keyName, String workingTime, String consultStatus,String chargType,String consutlSort,Integer page,Integer pagesize) {
|
|
|
|
|
|
if(page >=1){
|
|
if(page >=1){
|
|
page --;
|
|
page --;
|
|
@ -2881,6 +2881,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
" d.charge_type AS chargeType," +
|
|
" d.charge_type AS chargeType," +
|
|
" h.dept_name AS deptName," +
|
|
" h.dept_name AS deptName," +
|
|
" d.consult_status AS consultStatus," +
|
|
" d.consult_status AS consultStatus," +
|
|
|
|
" d.outpatient_type AS outpatientType," +
|
|
" a.total as consultTotal" +
|
|
" a.total as consultTotal" +
|
|
" FROM " +
|
|
" FROM " +
|
|
" base_doctor d " +
|
|
" base_doctor d " +
|
|
@ -2940,6 +2941,11 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
sql+=" AND d.consult_status = '"+consultStatus+"' ";
|
|
sql+=" AND d.consult_status = '"+consultStatus+"' ";
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(StringUtils.isNotBlank(chargType)){
|
|
|
|
sql+=" AND d.charge_type = '"+chargType+"'";
|
|
|
|
}
|
|
|
|
|
|
sql += " and d.del='1' order by a.total "+ consutlSort +" limit "+page * pagesize +","+pagesize;
|
|
sql += " and d.del='1' order by a.total "+ consutlSort +" limit "+page * pagesize +","+pagesize;
|
|
|
|
|
|
List<Map<String,Object>> list = jdbcTemplate.queryForList(sql);
|
|
List<Map<String,Object>> list = jdbcTemplate.queryForList(sql);
|