|
@ -62,6 +62,7 @@ public class SignWebService extends BaseService {
|
|
|
" ,a.reason " +
|
|
|
" ,b.street_name as streetName" +
|
|
|
" ,b.sex" +
|
|
|
" ,b.openid" +
|
|
|
" from " +
|
|
|
" ( select code,patient,doctor,status,id,apply_date,patient_apply_date,expenses_time,reason,begin from wlyy_sign_family where (doctor = ? or doctor_health = ?) and status = ? and type = 2" +
|
|
|
(status == 3 ? " and expenses_status = '1'" : "") + " order by begin desc ) a " +
|
|
@ -86,6 +87,7 @@ public class SignWebService extends BaseService {
|
|
|
" ,a.reason " +
|
|
|
" ,b.street_name as streetName" +
|
|
|
" ,b.sex" +
|
|
|
" ,b.openid" +
|
|
|
" from " +
|
|
|
" ( select 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 " +
|
|
@ -109,6 +111,7 @@ public class SignWebService extends BaseService {
|
|
|
" ,a.reason " +
|
|
|
" ,b.street_name as streetName" +
|
|
|
" ,b.sex" +
|
|
|
" ,b.openid" +
|
|
|
" from " +
|
|
|
" ( select code,patient,doctor,status,id,apply_date,apply_unsign_date,reason,begin from wlyy_sign_family where (doctor = ? or doctor_health = ?) and ( status = ? or status = ? ) and type = 2 order by begin desc ) a " +
|
|
|
" ,wlyy_patient b " +
|