From ef31d1678d820175f47c3645704ddecf171265ae Mon Sep 17 00:00:00 2001
From: dougang <78125310@kidgrow.com>
Date: Sat, 14 Nov 2020 15:16:08 +0800
Subject: [PATCH] 增加C端筛查医院和机构功能

---
 kidgrow-business/kidgrow-opration-center/kidgrow-opration-center-biz/src/main/resources/mapper/SaasClientPayMapper.xml |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/kidgrow-business/kidgrow-opration-center/kidgrow-opration-center-biz/src/main/resources/mapper/SaasClientPayMapper.xml b/kidgrow-business/kidgrow-opration-center/kidgrow-opration-center-biz/src/main/resources/mapper/SaasClientPayMapper.xml
index ec198ce..bc6c813 100644
--- a/kidgrow-business/kidgrow-opration-center/kidgrow-opration-center-biz/src/main/resources/mapper/SaasClientPayMapper.xml
+++ b/kidgrow-business/kidgrow-opration-center/kidgrow-opration-center-biz/src/main/resources/mapper/SaasClientPayMapper.xml
@@ -51,8 +51,8 @@
             <if test="p.prepayId != null and p.prepayId !=''">
                 and prepay_id = #{p.prepayId}
             </if>
-            <if test="p.type != null ">
-                and  type =  #{p.type}
+            <if test="p.type != null and p.type !=''">
+                and type = #{p.type}
             </if>
             <if test="p.createUserId != null and p.createUserId !=''">
                 and create_user_id = #{p.createUserId}
@@ -92,6 +92,12 @@
             <if test="p.createHospitalName != null and p.createHospitalName !=''">
                 and create_hospital_name = #{p.createHospitalName}
             </if>
+            <if test="p.createDoctorId != null and p.createDoctorId !=''">
+                and create_doctor_id = #{p.createDoctorId}
+            </if>
+            <if test="p.createDoctorIdName != null and p.createDoctorIdName !=''">
+                and create_doctor_name like '%${p.createDoctorIdName}%'
+            </if>
             <if test="p.payPrice != null and p.payPrice !=''">
                 and pay_price = #{p.payPrice}
             </if>
@@ -122,8 +128,8 @@
             <if test="p.prepayId != null and p.prepayId !=''">
                 and prepay_id = #{p.prepayId}
             </if>
-            <if test="p.type != null ">
-                and  type =  #{p.type}
+            <if test="p.type != null and p.type !='' ">
+                and type = #{p.type}
             </if>
             <if test="p.createUserId != null and p.createUserId !=''">
                 and create_user_id = #{p.createUserId}

--
Gitblit v1.8.0