Browse Source

【pc端 - 初心互助-志愿者管理 】-【查询条件sql修改】-(魏凯)-2020/06/01

feature/dangjian
weikai 5 years ago
parent
commit
139e16bcd8
  1. 2
      esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/impl/ActUserClockLogServiceImpl.java
  2. 4
      esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/resources/mapper/VolunteerInfoDao.xml

2
esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/impl/ActUserClockLogServiceImpl.java

@ -168,7 +168,7 @@ public class ActUserClockLogServiceImpl extends BaseServiceImpl<ActUserClockLogD
//更新用户积分余额、插入积分日志表
Result updateUserPointsResult = this.updateUserPoints(dto, actInfoDTO, actUserRelationDTO, actUserPointsLogEntity);
if (!updateUserPointsResult.success()) {
return updateUserPointsResult;
return updateUserPointsResult.error("服务器异常,更新积分失败");
}
//拒绝加积分
} else if (ActStateConstant.ACT_USER_RELATION_STATUS_POINTREJECT.equals(dto.getStatus())) {

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

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

Loading…
Cancel
Save