feat:分账处理
This commit is contained in:
@@ -788,7 +788,6 @@ public class PreAllocationRecordServiceImpl implements PreAllocationRecordServic
|
||||
if (AllocationPayStatusEnum.PAID.getStatus().equals(walletTradeDO.getPayStatus())) {
|
||||
ShopInfoDO shopInfo = shopInfoDAO.getShopInfo(preAllocationRecordDO.getShopId());
|
||||
//订单状态更新
|
||||
|
||||
StoreOrderDO storeOrder = storeOrderDAO.getById(preAllocationRecordDO.getOrderId());
|
||||
//部分支付
|
||||
StoreOrderDO updateOrder = StoreOrderDO.builder()
|
||||
@@ -811,6 +810,9 @@ public class PreAllocationRecordServiceImpl implements PreAllocationRecordServic
|
||||
shopStageInfoDAO.updateShopStageInfo(storeOrder.getShopId(), SHOP_SUB_STAGE_STATUS_285);
|
||||
}
|
||||
storeOrderDAO.updateSelective(updateOrder);
|
||||
//清除缓存
|
||||
String lockKey = MessageFormat.format(RedisConstant.PRE_ALLOCATION,preAllocationRecordDO.getId());
|
||||
redisUtil.unlock(lockKey);
|
||||
}
|
||||
return Boolean.TRUE;
|
||||
}
|
||||
@@ -828,6 +830,7 @@ public class PreAllocationRecordServiceImpl implements PreAllocationRecordServic
|
||||
.payeeName(request.getPayeeName())
|
||||
.payeeCode(request.getPayeeCode())
|
||||
.payAmount(request.getPayAmount())
|
||||
.payNo(GenerateNoUtil.generateMillsNoWithRandom())
|
||||
.remark(request.getRemark())
|
||||
.deleted(0)
|
||||
.allocationStatus(AllocationPayStatusEnum.UNPAID.getStatus())
|
||||
|
||||
Reference in New Issue
Block a user