|
@ -535,21 +535,21 @@ public class DetectionPlatformService {
|
|
|
|
|
|
public List<Map<String,Object >> findSignOlder(String doctorId){
|
|
public List<Map<String,Object >> findSignOlder(String doctorId){
|
|
|
|
|
|
String sql= "SELECT p.id,p.name,p.photo,p.idcard,CAST(IFNULL(p.birthday,'') AS char ) birthday,p.residential_area residentialArea,p.sex, " +
|
|
|
|
|
|
/* String sql= "SELECT p.id,p.name,p.photo,p.idcard,CAST(IFNULL(p.birthday,'') AS char ) birthday,p.residential_area residentialArea,p.sex, " +
|
|
" p.ykt_id yktId, case 1 WHEN p.openid is not null then 1 WHEN p.on_line = '1' then 1 ELSE 0 end as online,IFNULL(p.sign_status,0) signStatus "+
|
|
" p.ykt_id yktId, case 1 WHEN p.openid is not null then 1 WHEN p.on_line = '1' then 1 ELSE 0 end as online,IFNULL(p.sign_status,0) signStatus "+
|
|
" from base_service_package_sign_record sr,base_patient p,base_service_package_record r,base_team_member m " +
|
|
" from base_service_package_sign_record sr,base_patient p,base_service_package_record r,base_team_member m " +
|
|
"WHERE sr.status=1 and sr.patient = p.id and m.team_code = r.team_code and sr.id=r.sign_id " +
|
|
"WHERE sr.status=1 and sr.patient = p.id and m.team_code = r.team_code and sr.id=r.sign_id " +
|
|
" and m.del = '1' and p.del = '1' " +
|
|
" and m.del = '1' and p.del = '1' " +
|
|
" GROUP BY p.id,p.name,p.photo,p.idcard,p.birthday,p.residential_area,p.sex,p.ykt_id,online,signStatus" +
|
|
" GROUP BY p.id,p.name,p.photo,p.idcard,p.birthday,p.residential_area,p.sex,p.ykt_id,online,signStatus" +
|
|
" ORDER BY online desc,p.ykt_id desc,signStatus desc ";
|
|
|
|
|
|
" ORDER BY online desc,p.ykt_id desc,signStatus desc ";*/
|
|
|
|
|
|
/*String sql= "SELECT p.id,p.name,p.photo,p.idcard,CAST(IFNULL(p.birthday,'') AS char ) birthday,p.residential_area residentialArea,p.sex, " +
|
|
|
|
|
|
String sql= "SELECT p.id,p.name,p.photo,p.idcard,CAST(IFNULL(p.birthday,'') AS char ) birthday,p.residential_area residentialArea,p.sex, " +
|
|
" p.ykt_id yktId, case 1 WHEN p.openid is not null then 1 WHEN p.on_line = '1' then 1 ELSE 0 end as online,IFNULL(p.sign_status,0) signStatus "+
|
|
" p.ykt_id yktId, case 1 WHEN p.openid is not null then 1 WHEN p.on_line = '1' then 1 ELSE 0 end as online,IFNULL(p.sign_status,0) signStatus "+
|
|
" from base_service_package_sign_record sr,base_patient p,base_service_package_record r,base_team_member m " +
|
|
" from base_service_package_sign_record sr,base_patient p,base_service_package_record r,base_team_member m " +
|
|
"WHERE sr.status=1 and sr.patient = p.id and m.team_code = r.team_code and sr.id=r.sign_id " +
|
|
"WHERE sr.status=1 and sr.patient = p.id and m.team_code = r.team_code and sr.id=r.sign_id " +
|
|
"and m.doctor_code = '"+doctorId+"' and m.del = '1' and p.del = '1' " +
|
|
"and m.doctor_code = '"+doctorId+"' and m.del = '1' and p.del = '1' " +
|
|
" GROUP BY p.id,p.name,p.photo,p.idcard,p.birthday,p.residential_area,p.sex,p.ykt_id,online,signStatus" +
|
|
" GROUP BY p.id,p.name,p.photo,p.idcard,p.birthday,p.residential_area,p.sex,p.ykt_id,online,signStatus" +
|
|
" ORDER BY online desc,p.ykt_id desc,signStatus desc ";*/
|
|
|
|
|
|
" ORDER BY online desc,p.ykt_id desc,signStatus desc ";
|
|
|
|
|
|
// String sql = "SELECT DISTINCT p.id,p.name,p.photo,p.idcard,p.mobile,p.openid,p.sex,p.pad_imei padImei,p.residential_area residentialArea " +
|
|
// String sql = "SELECT DISTINCT p.id,p.name,p.photo,p.idcard,p.mobile,p.openid,p.sex,p.pad_imei padImei,p.residential_area residentialArea " +
|
|
// " from base_service_package_sign_record sr,base_patient p,base_service_package_record r,base_team_member m " +
|
|
// " from base_service_package_sign_record sr,base_patient p,base_service_package_record r,base_team_member m " +
|