Browse Source

志愿者管理页面、活动管理【报名管理和打卡积分】 过滤空格

feature/syp_points
zhangyongzhangyong 6 years ago
parent
commit
1f9c14e981
  1. 16
      esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/resources/mapper/activity/ActUserRelationDao.xml
  2. 8
      esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/resources/mapper/VolunteerInfoDao.xml

16
esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/resources/mapper/activity/ActUserRelationDao.xml

@ -91,11 +91,11 @@
<if test="status != null and status != ''">
AND relation.STATUS = #{status}
</if>
<if test="mobile != null and mobile != ''">
AND relation.MOBILE = #{mobile}
<if test="mobile != null and mobile.trim() != ''">
AND relation.MOBILE = trim(#{mobile})
</if>
<if test="realName != null and realName != ''">
AND relation.REAL_NAME = #{realName}
<if test="realName != null and realName.trim() != ''">
AND relation.REAL_NAME = trim(#{realName})
</if>
<if test="actId != null and actId != ''">
AND relation.ACT_ID = #{actId}
@ -167,11 +167,11 @@
<if test="status != null and status != ''">
AND relation.STATUS = #{status}
</if>
<if test="mobile != null and mobile != ''">
AND relation.MOBILE = #{mobile}
<if test="mobile != null and mobile.trim() != ''">
AND relation.MOBILE = trim(#{mobile})
</if>
<if test="realName != null and realName != ''">
AND relation.REAL_NAME = #{realName}
<if test="realName != null and realName.trim() != ''">
AND relation.REAL_NAME = trim(#{realName})
</if>
<if test="actId != null and actId != ''">
AND relation.ACT_ID = #{actId}

8
esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/resources/mapper/VolunteerInfoDao.xml

@ -56,11 +56,11 @@
epdc_volunteer_info v
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
<if test="realName !='' and realName != null">
and v.REAL_NAME = #{realName}
<if test="realName !='' and realName.trim() != null">
and v.REAL_NAME = trim(#{realName})
</if>
<if test="mobile !='' and mobile != null">
and v.MOBILE = #{mobile}
<if test="mobile !='' and mobile.trim() != null">
and v.MOBILE = trim(#{mobile})
</if>
<if test="deptId !='' and deptId != null">
and v.ALL_DEPT_IDS like concat('%',#{deptId},'%')

Loading…
Cancel
Save