|
@ -130,7 +130,7 @@ public class SignWebService extends BaseService {
|
|
|
" ( select renew_flag,code,patient,doctor,status,id,apply_date,patient_apply_date,expenses_time,reason,begin from wlyy_sign_family where doctor = ? and status = ? and type = 2" +
|
|
|
(status == 3 ? " and expenses_status = '1'" : "") + " order by begin desc ) a " +
|
|
|
" ,wlyy_patient b " +
|
|
|
" where a.patient = b.code order by a.patient_apply_date desc limit " + page * pageSize + "," + pageSize;
|
|
|
" where a.patient = b.code order by applyDate desc limit " + page * pageSize + "," + pageSize;
|
|
|
|
|
|
// 未缴费查询语句
|
|
|
String sqlExpenses = "select " +
|
|
@ -153,9 +153,9 @@ public class SignWebService extends BaseService {
|
|
|
" ,b.openid" +
|
|
|
" ,a.renew_flag as renewFlag" +
|
|
|
" from " +
|
|
|
" ( select 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 = ? and status > ? and type = 2 order by begin desc ) a " +
|
|
|
" ( 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 = ? 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) order by a.patient_apply_date desc limit " + page * pageSize + "," + pageSize;
|
|
|
" where a.patient = b.code and (a.expenses_status = '0' or a.len < 1) order by applyDate desc limit " + page * pageSize + "," + pageSize;
|
|
|
|
|
|
// 已解约查询语句
|
|
|
String surrSql = "select " +
|
|
@ -178,9 +178,9 @@ public class SignWebService extends BaseService {
|
|
|
" ,b.openid" +
|
|
|
" ,a.renew_flag as renewFlag" +
|
|
|
" from " +
|
|
|
" ( select renew_flag,code,patient,doctor,status,id,apply_date,apply_unsign_date,reason,begin from wlyy_sign_family where doctor = ? and ( status = ? or status = ? ) and type = 2 order by begin desc ) a " +
|
|
|
" ( select patient_apply_date,renew_flag,code,patient,doctor,status,id,apply_date,apply_unsign_date,reason,begin from wlyy_sign_family where doctor = ? and ( status = ? or status = ? ) and type = 2 order by begin desc ) a " +
|
|
|
" ,wlyy_patient b " +
|
|
|
" where a.patient = b.code order by a.patient_apply_date desc limit " + page * pageSize + "," + pageSize;
|
|
|
" where a.patient = b.code order by applyDate desc limit " + page * pageSize + "," + pageSize;
|
|
|
|
|
|
// 分页信息
|
|
|
//PageRequest pageRequest = new PageRequest(page - 1, pageSize);
|