Browse Source

修改积分核销功能bug

feature/screenDataPush
liuchuang 4 years ago
parent
commit
b9852f7a1e
  1. 7
      esua-epdc/epdc-module/epdc-points/epdc-points-server/src/main/java/com/elink/esua/epdc/service/impl/PointsLogsServiceImpl.java
  2. 1
      esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/java/com/elink/esua/epdc/service/impl/UserServiceImpl.java

7
esua-epdc/epdc-module/epdc-points/epdc-points-server/src/main/java/com/elink/esua/epdc/service/impl/PointsLogsServiceImpl.java

@ -460,16 +460,15 @@ public class PointsLogsServiceImpl extends BaseServiceImpl<PointsLogsDao, Points
if (!userById.success()) {
return new Result().error("获取用户信息失败");
}
// 保存积分日志
PointsLogsEntity pointsLogsEntity = packagePointsLogs(userById.getData(), formDto);
this.insert(pointsLogsEntity);
Result<UserDTO> result = usersFeignClient.handleUserPoints(userPointsFormDTO);
if (!result.success()) {
return new Result().error(result.getMsg());
}
// 保存积分日志
PointsLogsEntity pointsLogsEntity = packagePointsLogs(userById.getData(), formDto);
this.insert(pointsLogsEntity);
return new Result();
}

1
esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/java/com/elink/esua/epdc/service/impl/UserServiceImpl.java

@ -975,6 +975,7 @@ public class UserServiceImpl extends BaseServiceImpl<UserDao, UserEntity> implem
* @Date 2019/12/13 15:02
**/
@Override
@Transactional(rollbackFor = Exception.class)
public Result<UserDTO> handleUserPoints(EpdcUserPointsFormDTO formDTO) {
UserEntity userEntity = baseDao.selectById(formDTO.getUserId());
if (null == userEntity) {

Loading…
Cancel
Save