From 951f90b82993acc835cdf58a9f1f39aeecd86674 Mon Sep 17 00:00:00 2001
From: nickchange <126672920+nickchange@users.noreply.github.com>
Date: 星期三, 15 十一月 2023 16:10:02 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 cloud-server-account/src/main/resources/mapper/TStudentMapper.xml |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/cloud-server-account/src/main/resources/mapper/TStudentMapper.xml b/cloud-server-account/src/main/resources/mapper/TStudentMapper.xml
index 145ba1c..f8b53aa 100644
--- a/cloud-server-account/src/main/resources/mapper/TStudentMapper.xml
+++ b/cloud-server-account/src/main/resources/mapper/TStudentMapper.xml
@@ -30,17 +30,17 @@
     <select id="selectAll" resultType="com.dsh.account.dto.TStudentDto">
         SELECT * FROM (
         SELECT
-        st.* ,us.`name` AS userName,us.province,us.city
+        st.* ,us.`name` AS userName,us.provinceCode as province,us.cityCode as city
         FROM
         t_student st
         LEFT JOIN t_app_user us on st.appUserId = us.id) o
         <where>
 
             <if test="item.province != null and item.province != ''">
-                and o.province  LIKE CONCAT('%',#{item.province},'%')
+                and o.province = #{item.province}
             </if>
             <if test="item.city != null and item.city != ''">
-                and o.city  LIKE CONCAT('%',#{item.city},'%')
+                and o.city = #{item.city}
             </if>
             <if test="item.name != null and item.name != ''">
                 and o.name  LIKE CONCAT('%',#{item.name},'%')

--
Gitblit v1.7.1