|
|
@ -147,7 +147,7 @@ public class PointVerificationLogServiceImpl extends BaseServiceImpl<PointVerifi |
|
|
|
@Override |
|
|
|
public List<ResiPointLogListResultDTO> getMyExchangeRecord(CommonPageUserFormDTO pageUser) { |
|
|
|
PageHelper.startPage(pageUser.getPageNo(),pageUser.getPageSize()); |
|
|
|
List<ResiPointLogPeriodResultDTO> logList = baseDao.selectVerificationLog(pageUser.getUserId()); |
|
|
|
List<ResiPointLogPeriodResultDTO> logList = baseDao.selectVerificationLog(pageUser.getUserId(),pageUser.getCustomerId()); |
|
|
|
List<ResiPointLogListResultDTO> result = new LinkedList<>(); |
|
|
|
if(null != logList && !logList.isEmpty()){ |
|
|
|
Map<String,List<ResiPointLogPeriodResultDTO>> map = |
|
|
@ -256,9 +256,10 @@ public class PointVerificationLogServiceImpl extends BaseServiceImpl<PointVerifi |
|
|
|
|
|
|
|
DimIdGenerator.DimIdBean dim = DimIdGenerator.getDimIdBean(new Date()); |
|
|
|
|
|
|
|
ResiCommonUserIdFormDTO userId = new ResiCommonUserIdFormDTO(); |
|
|
|
userId.setUserId(verificationParam.getUserId()); |
|
|
|
ResiPointDetailResultDTO currentPoint = userPointTotalService.getMyPoint(userId); |
|
|
|
CommonUserFormDTO customerUserParam = new CommonUserFormDTO(); |
|
|
|
customerUserParam.setUserId(verificationParam.getUserId()); |
|
|
|
customerUserParam.setCustomerId(verificationParam.getCustomerId()); |
|
|
|
ResiPointDetailResultDTO currentPoint = userPointTotalService.getMyPointGroupByCustomer(customerUserParam); |
|
|
|
if(null == currentPoint || null == currentPoint.getUsablePoint() || currentPoint.getUsablePoint() < verificationParam.getPoint()){ |
|
|
|
result.setSuccessFlag(false); |
|
|
|
result.setFailureReason(ModuleConstant.POINT_NOT_ENOUGH); |
|
|
@ -280,14 +281,14 @@ public class PointVerificationLogServiceImpl extends BaseServiceImpl<PointVerifi |
|
|
|
point *= NumConstant.ONE_NEG; |
|
|
|
} |
|
|
|
|
|
|
|
String customerId = ModuleConstant.EMPTY_STR; |
|
|
|
String customerId = verificationParam.getCustomerId(); |
|
|
|
|
|
|
|
String agencyId = ModuleConstant.EMPTY_STR; |
|
|
|
String operatorName = ModuleConstant.EMPTY_STR; |
|
|
|
PointVerificationStatisticalDailyEntity statistical = new PointVerificationStatisticalDailyEntity(); |
|
|
|
if(staffResult.success() && null != staffResult.getData()){ |
|
|
|
statistical = ConvertUtils.sourceToTarget(staffResult.getData(),PointVerificationStatisticalDailyEntity.class); |
|
|
|
customerId = staffResult.getData().getCustomerId(); |
|
|
|
customerId = StringUtils.isBlank(customerId) ? staffResult.getData().getCustomerId() : customerId; |
|
|
|
operatorName = staffResult.getData().getNickname(); |
|
|
|
agencyId = staffResult.getData().getAgencyId(); |
|
|
|
} |
|
|
|