|
@ -272,7 +272,7 @@ public class SignWebService extends BaseService {
|
|
|
" from " +
|
|
|
" ( select patient_apply_date,renew_flag,code,patient,doctor,status,id,apply_date,reason,begin,expenses_status,LENGTH(trim(ifnull(expenses_status,''))) len from wlyy_sign_family where (doctor = ? or doctor_health = ?) and status > ? and type = 2 order by begin desc ) a " +
|
|
|
" ,wlyy_patient b " +
|
|
|
" where a.patient = b.code and (a.expenses_status = '0' or a.len < 1) and (b.`name` like ? or b.mobile like ? ) "+
|
|
|
" where a.patient = b.code and (a.expenses_status = '0' or a.len < 1 or a.expenses_status = '3') and (b.`name` like ? or b.mobile like ? ) "+
|
|
|
"order by applyDate desc limit " + page * pageSize + "," + pageSize;
|
|
|
|
|
|
// 已解约查询语句
|
|
@ -349,7 +349,7 @@ public class SignWebService extends BaseService {
|
|
|
" AND doctor IS NULL " +
|
|
|
" AND STATUS = 0 " +
|
|
|
" AND type = 2 " +
|
|
|
" AND expenses_status = '0' " +
|
|
|
" AND (expenses_status = '0' or expenses_status = '3')" +
|
|
|
" ) AS waitSignCount, " +
|
|
|
"( " +
|
|
|
" SELECT " +
|
|
@ -384,7 +384,7 @@ public class SignWebService extends BaseService {
|
|
|
" doctor = '"+doctor+"' " +
|
|
|
" AND STATUS = 0 " +
|
|
|
" AND type = 2 " +
|
|
|
" AND expenses_status = '0' " +
|
|
|
" AND (expenses_status = '0' or expenses_status = '3') " +
|
|
|
" ) AS waitSignCount, " +
|
|
|
"( " +
|
|
|
" SELECT " +
|