Browse Source

拦不住了吗

feature/evaluate
yinzuomei 4 years ago
parent
commit
6bee625a4e
  1. 4
      epmet-module/epmet-point/epmet-point-server/src/main/java/com/epmet/service/impl/UserPointActionLogServiceImpl.java

4
epmet-module/epmet-point/epmet-point-server/src/main/java/com/epmet/service/impl/UserPointActionLogServiceImpl.java

@ -589,6 +589,7 @@ public class UserPointActionLogServiceImpl extends BaseServiceImpl<UserPointActi
return; return;
} }
list.forEach(grantPoint->{ list.forEach(grantPoint->{
if (null != grantPoint.getPoint()) {
//1.新增用户积分行为记录 //1.新增用户积分行为记录
UserPointActionLogEntity action = new UserPointActionLogEntity(); UserPointActionLogEntity action = new UserPointActionLogEntity();
action.setCustomerId(grantPoint.getCustomerId()); action.setCustomerId(grantPoint.getCustomerId());
@ -610,7 +611,7 @@ public class UserPointActionLogServiceImpl extends BaseServiceImpl<UserPointActi
baseDao.insert(action); baseDao.insert(action);
//2.新增/修改用户积分日统计 //2.新增/修改用户积分日统计
DimIdGenerator.DimIdBean dimVal = DimIdGenerator.getDimIdBean(new Date()); DimIdGenerator.DimIdBean dimVal = DimIdGenerator.getDimIdBean(new Date());
UserPointStatisticalDailyEntity statistical = ConvertUtils.sourceToTarget(dimVal,UserPointStatisticalDailyEntity.class); UserPointStatisticalDailyEntity statistical = ConvertUtils.sourceToTarget(dimVal, UserPointStatisticalDailyEntity.class);
statistical.setPointChange(grantPoint.getPoint()); statistical.setPointChange(grantPoint.getPoint());
statistical.setActionFlag(grantPoint.getActionFlag()); statistical.setActionFlag(grantPoint.getActionFlag());
statistical.setCustomerId(grantPoint.getCustomerId()); statistical.setCustomerId(grantPoint.getCustomerId());
@ -628,6 +629,7 @@ public class UserPointActionLogServiceImpl extends BaseServiceImpl<UserPointActi
point.setCreatedBy(grantPoint.getOperatorId()); point.setCreatedBy(grantPoint.getOperatorId());
point.setUpdatedBy(grantPoint.getOperatorId()); point.setUpdatedBy(grantPoint.getOperatorId());
userPointTotalService.insertOrUpdate(point); userPointTotalService.insertOrUpdate(point);
}
}); });
} }
} }
Loading…
Cancel
Save