Browse Source

爱心互助改动-user模块

master v1.1.0.200520.Release
zhangyuan 5 years ago
parent
commit
90b692a46e
  1. 8
      epdc-cloud-user/src/main/resources/mapper/VolunteerInfoDao.xml

8
epdc-cloud-user/src/main/resources/mapper/VolunteerInfoDao.xml

@ -56,11 +56,11 @@
epdc_volunteer_info v epdc_volunteer_info v
left join epdc_user u on v.USER_ID = u.ID and u.del_flag = '0' left join epdc_user u on v.USER_ID = u.ID and u.del_flag = '0'
where v.del_flag = '0' and u.id is not null where v.del_flag = '0' and u.id is not null
<if test="realName !='' and realName != null"> <if test="realName !='' and realName.trim() != null">
and v.REAL_NAME = #{realName} and v.REAL_NAME = trim(#{realName})
</if> </if>
<if test="mobile !='' and mobile != null"> <if test="mobile !='' and mobile.trim() != null">
and v.MOBILE = #{mobile} and v.MOBILE = trim(#{mobile})
</if> </if>
<if test="deptId !='' and deptId != null"> <if test="deptId !='' and deptId != null">
and v.ALL_DEPT_IDS like concat('%',#{deptId},'%') and v.ALL_DEPT_IDS like concat('%',#{deptId},'%')

Loading…
Cancel
Save