nickchange
2023-11-15 951f90b82993acc835cdf58a9f1f39aeecd86674
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},'%')