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