修复用户城市bug

master
zhiyong.ning 4 years ago
parent 53b880448a
commit 7a19fdb90a
  1. 2
      src/main/java/com/yipin/liuwanr/mapper/UserMapper.java

@ -114,7 +114,7 @@ public interface UserMapper {
// @Select("SELECT * from user where isdel = 1 and countries = #{countries} and provinces = #{provinces} and city = #{city}")
@Select({"<script>",
"SELECT u.*,s.schoolName,p.provinceName,c.cityName from user u,school s,province p,city c where u.isdel = 0 and u.schoolId = s.schoolId and u.cityId = c.cityId and p.provinceId = u.provinceId",
"SELECT u.*,s.schoolName,p.provinceName,c.cityName from user u,school s,province p,city c where u.isdel = 0 and p.provinceId = u.provinceId and p.provinceId = c.provinceId and u.cityId = c.cityId and u.schoolId = s.schoolId",
" <if test='countries!=null and countries !=\"\" '>and u.countries = #{countries} </if>",
" <if test='provinceId!=null and provinceId !=\"\" '>and u.provinceId = #{provinceId} </if>",
" <if test='schoolId!=null'>and u.schoolId = #{schoolId} </if>",

Loading…
Cancel
Save