|
@ -11221,7 +11221,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
* @param size
|
|
|
* @return
|
|
|
*/
|
|
|
public Envelop getNatAppointmentList(String realOrder, String name, String hospitalFlag, String mobile, String idcard, String payStatus, String medicare, String createTimeStart, String createTimeEnd, String appointmentTimeStart, String appointmentTimeEnd, Integer isSuccess, Integer page, Integer pageSize) {
|
|
|
public Envelop getNatAppointmentList(String realOrder, String name, String hospitalFlag, String mobile, String idcard, String payStatus, String medicare, String createTimeStart, String createTimeEnd, String appointmentTimeStart, String appointmentTimeEnd, Integer isSuccess, Integer page, Integer pageSize,String orderNo) {
|
|
|
String sql = "select t.name as \"name\"," +
|
|
|
"t.card_no as \"cardNo\"," +
|
|
|
"t.card_type as \"cardType\"," +
|
|
@ -11238,8 +11238,16 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
"t.id as \"id\"," +
|
|
|
"t.card_no_type as \"cardNoType\"," +
|
|
|
"t.HOSPITAL_FLAG as \"hospitalFlag\"," +
|
|
|
"m.order_no as \"orderNo\"," +
|
|
|
"t.appointment_time as \"appointmentTime\" " +
|
|
|
" from base_nat_appointment t where 1=1 ";
|
|
|
" from base_nat_appointment t left join base_business_order_pay m ";
|
|
|
if ("xm_ykyy_wx".equalsIgnoreCase(wechatId)){
|
|
|
sql+=" on to_char(t.id) = m.relation_code " +
|
|
|
" where 1=1 ";
|
|
|
}else{
|
|
|
sql+=" on cast(t.id as char) = m.relation_code " +
|
|
|
" where 1=1 ";
|
|
|
}
|
|
|
if (StringUtils.isNotBlank(realOrder)) {
|
|
|
sql += " and t.real_order like '%" + realOrder + "%' ";
|
|
|
}
|
|
@ -11252,6 +11260,9 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
if (StringUtils.isNotBlank(idcard)) {
|
|
|
sql += " and t.card_no like '%" + idcard + "%' ";
|
|
|
}
|
|
|
if (StringUtils.isNoneBlank(orderNo)){
|
|
|
sql+=" and m.order_no = '"+orderNo+"' ";
|
|
|
}
|
|
|
//支付状态
|
|
|
if (StringUtils.isNotBlank(payStatus)) {
|
|
|
sql += " and t.pay_status ='" + payStatus + "' ";
|