|
@ -48,6 +48,7 @@ public class SignWebService extends BaseService {
|
|
|
" a.code " +
|
|
|
" ,a.doctor " +
|
|
|
" ,b.code as patient" +
|
|
|
" ,b.idcard " +
|
|
|
" ,b.name " +
|
|
|
" ,b.province_name as provinceName" +
|
|
|
" ,b.city_name as cityName" +
|
|
@ -56,12 +57,12 @@ public class SignWebService extends BaseService {
|
|
|
" ,b.photo " +
|
|
|
" ,a.status " +
|
|
|
" ,a.id " +
|
|
|
" ,a.apply_date as applyDate" +
|
|
|
(status == 1? " ,a.patient_apply_date as applyDate ":" ,a.apply_date as applyDate ") +
|
|
|
" ,a.reason " +
|
|
|
" ,b.street_name as streetName" +
|
|
|
" ,b.sex" +
|
|
|
" from " +
|
|
|
" ( select code,patient,doctor,status,id,apply_date,reason,begin from wlyy_sign_family where " + (doctorType == 2 ? "doctor" : "doctor_health") + " = ? and status = ? and type = 2 order by begin desc ) a " +
|
|
|
" ( select code,patient,doctor,status,id,apply_date,patient_apply_date,reason,begin from wlyy_sign_family where " + (doctorType == 2 ? "doctor" : "doctor_health") + " = ? and status = ? and type = 2 order by begin desc ) a " +
|
|
|
" ,wlyy_patient b " +
|
|
|
" where a.patient = b.code order by a.begin desc ";
|
|
|
|
|
@ -71,6 +72,7 @@ public class SignWebService extends BaseService {
|
|
|
" ,a.doctor " +
|
|
|
" ,b.code as patient" +
|
|
|
" ,b.name " +
|
|
|
" ,b.idcard " +
|
|
|
" ,b.province_name as provinceName" +
|
|
|
" ,b.city_name as cityName" +
|
|
|
" ,b.town_name as townName" +
|
|
@ -78,7 +80,7 @@ public class SignWebService extends BaseService {
|
|
|
" ,b.photo " +
|
|
|
" ,a.status " +
|
|
|
" ,a.id " +
|
|
|
" ,a.apply_date as applyDate" +
|
|
|
" ,a.apply_date as applyDate " +
|
|
|
" ,a.reason " +
|
|
|
" ,b.street_name as streetName" +
|
|
|
" ,b.sex" +
|
|
@ -93,6 +95,7 @@ public class SignWebService extends BaseService {
|
|
|
" ,a.doctor " +
|
|
|
" ,b.code as patient" +
|
|
|
" ,b.name " +
|
|
|
" ,b.idcard " +
|
|
|
" ,b.province_name as provinceName" +
|
|
|
" ,b.city_name as cityName" +
|
|
|
" ,b.town_name as townName" +
|
|
@ -100,12 +103,12 @@ public class SignWebService extends BaseService {
|
|
|
" ,b.photo " +
|
|
|
" ,a.status " +
|
|
|
" ,a.id " +
|
|
|
" ,a.apply_date as applyDate" +
|
|
|
" ,a.apply_unsign_date as applyDate" +
|
|
|
" ,a.reason " +
|
|
|
" ,b.street_name as streetName" +
|
|
|
" ,b.sex" +
|
|
|
" from " +
|
|
|
" ( select code,patient,doctor,status,id,apply_date,reason,begin from wlyy_sign_family where " + (doctorType == 2 ? "doctor" : "doctor_health") + " = ? and ( status = ? or status = ? ) and type = 2 order by begin desc ) a " +
|
|
|
" ( select code,patient,doctor,status,id,apply_date,apply_unsign_date,reason,begin from wlyy_sign_family where " + (doctorType == 2 ? "doctor" : "doctor_health") + " = ? and ( status = ? or status = ? ) and type = 2 order by begin desc ) a " +
|
|
|
" ,wlyy_patient b " +
|
|
|
" where a.patient = b.code order by a.begin desc ";
|
|
|
|