|
@ -1086,8 +1086,8 @@ public class DoctorSchemeService extends BaseService{
|
|
|
" t.del='1' " +
|
|
|
" AND t.doctor_code = '"+doctor+"' " +
|
|
|
" AND t.team_code = "+teamCode +
|
|
|
" AND t.create_time >= '"+startDate+"' " +
|
|
|
" AND t.create_time <= '"+endDate+"'";
|
|
|
" AND t.create_time >= '"+startDate+" 00:00:00' " +
|
|
|
" AND t.create_time <= '"+endDate+" 23:59:59'";
|
|
|
List<Map<String,Object>> list = jdbcTemplate.queryForList(sql);
|
|
|
if(list!=null&&list.size()>0){
|
|
|
Long total = (Long)list.get(0).get("total");
|
|
@ -1503,7 +1503,8 @@ public class DoctorSchemeService extends BaseService{
|
|
|
|
|
|
}
|
|
|
|
|
|
public List<Map<String,Object>> getPatientScheme(String patient,String type){
|
|
|
public Map<String,Object> getPatientScheme(String patient,String type){
|
|
|
Map<String,Object> rs = new HashedMap();
|
|
|
String sql =null;
|
|
|
if("1".equals(type)){
|
|
|
sql = "SELECT " +
|
|
@ -1528,7 +1529,14 @@ public class DoctorSchemeService extends BaseService{
|
|
|
}
|
|
|
|
|
|
List<Map<String,Object>> list = jdbcTemplate.queryForList(sql);
|
|
|
return list;
|
|
|
|
|
|
if(list!=null&&list.size()>0){
|
|
|
rs.put("code",list.get(0).get("code"));
|
|
|
rs.put("name",list.get(0).get("name"));
|
|
|
rs.put("content",list.get(0).get("content"));
|
|
|
rs.put("list",list);
|
|
|
}
|
|
|
return rs;
|
|
|
}
|
|
|
|
|
|
public List<Map<String,Object>> getTrackPatientIndexCountList(String doctor,Integer teamCode,String type,String startDate,String endDate,String keyword,Integer page,Integer size){
|
|
@ -1554,7 +1562,8 @@ public class DoctorSchemeService extends BaseService{
|
|
|
" p.`name`, " +
|
|
|
" IFNULL(year( from_days( datediff( now(), p.birthday))),'未知') age, " +
|
|
|
" p.photo, " +
|
|
|
" p.idcard " +
|
|
|
" p.idcard," +
|
|
|
" p.sex " +
|
|
|
" FROM " +
|
|
|
" " +
|
|
|
"( " +
|
|
@ -1589,8 +1598,8 @@ public class DoctorSchemeService extends BaseService{
|
|
|
" AND i.type = 1 " +
|
|
|
" AND i.value2 IN (2, 4, 6) " +
|
|
|
" AND i.value1 > 7.8 " +
|
|
|
" AND i.i.record_date >='"+startDate+"'" +
|
|
|
" AND i.i.record_date <='"+endDate+"'" +
|
|
|
" AND i.record_date >='"+startDate+"'" +
|
|
|
" AND i.record_date <='"+endDate+"'" +
|
|
|
" GROUP BY " +
|
|
|
" i. USER " +
|
|
|
" ) pid ON pid. USER = t.patient_code " +
|
|
@ -1624,8 +1633,8 @@ public class DoctorSchemeService extends BaseService{
|
|
|
" AND i.type = 1 " +
|
|
|
" AND i.value2 IN (1, 3, 5, 7) " +
|
|
|
" AND i.value1 > 6.1 " +
|
|
|
" AND i.i.record_date >='"+startDate+"'" +
|
|
|
" AND i.i.record_date <='"+endDate+"'" +
|
|
|
" AND i.record_date >='"+startDate+"'" +
|
|
|
" AND i.record_date <='"+endDate+"'" +
|
|
|
" GROUP BY " +
|
|
|
" i. USER " +
|
|
|
" ) pid ON pid. USER = t.patient_code " +
|
|
@ -1666,8 +1675,8 @@ public class DoctorSchemeService extends BaseService{
|
|
|
" AND i.type = 1 " +
|
|
|
" AND i.value2 IN (2, 4, 6) " +
|
|
|
" AND i.value1 < 4.4 " +
|
|
|
" AND i.i.record_date >='"+startDate+"'" +
|
|
|
" AND i.i.record_date <='"+endDate+"'" +
|
|
|
" AND i.record_date >='"+startDate+"'" +
|
|
|
" AND i.record_date <='"+endDate+"'" +
|
|
|
" GROUP BY " +
|
|
|
" i. USER " +
|
|
|
" ) pid ON pid. USER = t.patient_code " +
|
|
@ -1701,8 +1710,8 @@ public class DoctorSchemeService extends BaseService{
|
|
|
" AND i.type = 1 " +
|
|
|
" AND i.value2 IN (1, 3, 5, 7) " +
|
|
|
" AND i.value1 < 3.9 " +
|
|
|
" AND i.i.record_date >='"+startDate+"'" +
|
|
|
" AND i.i.record_date <='"+endDate+"'" +
|
|
|
" AND i.record_date >='"+startDate+"'" +
|
|
|
" AND i.record_date <='"+endDate+"'" +
|
|
|
" GROUP BY " +
|
|
|
" i. USER " +
|
|
|
" ) pid ON pid. USER = t.patient_code " +
|
|
@ -1745,8 +1754,8 @@ public class DoctorSchemeService extends BaseService{
|
|
|
" AND i.value2 IN (2, 4, 6) " +
|
|
|
" AND i.value1 >= 4.4 " +
|
|
|
" AND i.value1 <= 7.8 " +
|
|
|
" AND i.i.record_date >='"+startDate+"'" +
|
|
|
" AND i.i.record_date <='"+endDate+"'" +
|
|
|
" AND i.record_date >='"+startDate+"'" +
|
|
|
" AND i.record_date <='"+endDate+"'" +
|
|
|
" GROUP BY " +
|
|
|
" i. USER " +
|
|
|
" ) pid ON pid. USER = t.patient_code " +
|
|
@ -1781,8 +1790,8 @@ public class DoctorSchemeService extends BaseService{
|
|
|
" AND i.value2 IN (1, 3, 5, 7) " +
|
|
|
" AND i.value1 >= 3.9 " +
|
|
|
" AND i.value1 <= 6.1 " +
|
|
|
" AND i.i.record_date >='"+startDate+"'" +
|
|
|
" AND i.i.record_date <='"+endDate+"'" +
|
|
|
" AND i.record_date >='"+startDate+"'" +
|
|
|
" AND i.record_date <='"+endDate+"'" +
|
|
|
" GROUP BY " +
|
|
|
" i. USER " +
|
|
|
" ) pid ON pid. USER = t.patient_code " +
|
|
@ -1811,7 +1820,8 @@ public class DoctorSchemeService extends BaseService{
|
|
|
" t3.total AS highCount, " +
|
|
|
" p.`name`, " +
|
|
|
" IFNULL(year( from_days( datediff( now(), p.birthday))),'未知') age, " +
|
|
|
" p.photo " +
|
|
|
" p.photo, " +
|
|
|
" p.sex" +
|
|
|
" FROM " +
|
|
|
" " +
|
|
|
" ( " +
|
|
@ -1839,8 +1849,8 @@ public class DoctorSchemeService extends BaseService{
|
|
|
" i.del = '1' " +
|
|
|
" AND i.type = 2 " +
|
|
|
" AND i.value1 < 90 " +
|
|
|
" AND i.i.record_date >='"+startDate+"'" +
|
|
|
" AND i.i.record_date <='"+endDate+"'" +
|
|
|
" AND i.record_date >='"+startDate+"'" +
|
|
|
" AND i.record_date <='"+endDate+"'" +
|
|
|
" GROUP BY " +
|
|
|
" i. USER " +
|
|
|
" ) pid ON pid. USER = t.patient_code " +
|
|
@ -1872,8 +1882,8 @@ public class DoctorSchemeService extends BaseService{
|
|
|
" AND i.type = 2 " +
|
|
|
" AND i.value1 >= 90 " +
|
|
|
" AND i.value1 <=139 " +
|
|
|
" AND i.i.record_date >='"+startDate+"'" +
|
|
|
" AND i.i.record_date <='"+endDate+"'" +
|
|
|
" AND i.record_date >='"+startDate+"'" +
|
|
|
" AND i.record_date <='"+endDate+"'" +
|
|
|
" GROUP BY " +
|
|
|
" i. USER " +
|
|
|
" ) pid ON pid. USER = t.patient_code " +
|
|
@ -1905,8 +1915,8 @@ public class DoctorSchemeService extends BaseService{
|
|
|
" i.del = '1' " +
|
|
|
" AND i.type = 2 " +
|
|
|
" AND i.value1 >139 " +
|
|
|
" AND i.i.record_date >='"+startDate+"'" +
|
|
|
" AND i.i.record_date <='"+endDate+"'" +
|
|
|
" AND i.record_date >='"+startDate+"'" +
|
|
|
" AND i.record_date <='"+endDate+"'" +
|
|
|
" GROUP BY " +
|
|
|
" i. USER " +
|
|
|
" ) pid ON pid. USER = t.patient_code " +
|