| | |
| | | <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},'%') |