he2802 2 år sedan
förälder
incheckning
bb3d28ff88

+ 12 - 0
zhongzheng-system/src/main/resources/mapper/modules/course/CourseMapper.xml

@@ -655,6 +655,18 @@
         <if test="oldCustomerId != null and oldCustomerId != ''">
             AND o.old_customer_id = #{oldCustomerId}
         </if>
+        <if test="userId != null and userId != ''">
+            and o.user_id = #{userId}
+        </if>
+        <if test="realname != null and realname !='' ">
+            AND u.realname like concat('%', #{realname}, '%')
+        </if>
+        <if test="idCard != null and idCard !='' ">
+            AND u.id_card = #{idCard,typeHandler=com.zhongzheng.common.type.EncryptHandler}
+        </if>
+        <if test="telphone != null and telphone !='' ">
+            AND u.telphone = #{telphone,typeHandler=com.zhongzheng.common.type.EncryptHandler}
+        </if>
         order by og.create_time desc
     </select>
 

+ 2 - 2
zhongzheng-system/src/main/resources/mapper/modules/user/UserStudyRecordMapper.xml

@@ -1625,10 +1625,10 @@
             AND u.realname like concat('%', #{userName}, '%')
         </if>
         <if test="idCard != null and idCard !='' ">
-            AND u.id_card like concat('%', #{idCard,typeHandler=com.zhongzheng.common.type.EncryptHandler}, '%')
+            AND u.id_card = #{idCard,typeHandler=com.zhongzheng.common.type.EncryptHandler}
         </if>
         <if test="phone != null and phone !='' ">
-            AND u.telphone like concat('%', #{phone,typeHandler=com.zhongzheng.common.type.EncryptHandler}, '%')
+            AND u.telphone = #{phone,typeHandler=com.zhongzheng.common.type.EncryptHandler}
         </if>
         <if test="purchaseStatus != null and purchaseStatus !='' ">
             AND ur.buy_course = #{purchaseStatus}