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