排序 赠送 优惠券使用记录
This commit is contained in:
parent
339ac96d08
commit
bcebe8e312
|
|
@ -70,6 +70,7 @@ public class ShopUserController {
|
|||
queryWrapper.eq(ShopUserFlow::getBizCode, bizCode);
|
||||
}
|
||||
queryWrapper.orderBy(ShopUserFlow::getCreateTime, false);
|
||||
queryWrapper.orderBy(ShopUserFlow::getId, true);
|
||||
return CzgResult.success(shopUserFlowService.page(PageUtil.buildPage(), queryWrapper));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -524,7 +524,7 @@ public class PayServiceImpl implements PayService {
|
|||
//更新会员余额 并生成流水
|
||||
shopUserService.updateMoney(shopUser.getShopId(), shopUserMoneyEditDTO);
|
||||
userFlowService.updateRefund(inFlow.getId(), refPayParam.getRefAmount());
|
||||
if (giftFlow != null && (giftFlow.getAmount().subtract(refPayParam.getRefAmount())).compareTo(BigDecimal.ZERO) > 0) {
|
||||
if (giftFlow != null && (giftFlow.getAmount().subtract(giftFlow.getRefundAmount())).compareTo(BigDecimal.ZERO) > 0) {
|
||||
ShopUserMoneyEditDTO giftFlowEdit = new ShopUserMoneyEditDTO()
|
||||
.setId(shopUser.getId())
|
||||
.setMoney(giftFlow.getAmount())
|
||||
|
|
|
|||
Loading…
Reference in New Issue