...
|
...
|
@@ -23,7 +23,7 @@ public class SellerIncrPriceTaskHandler extends AbstractSellerAdjustPriceTaskHan |
|
|
protected boolean preHandle(SellerTaskResult result, SellerTaskDTO<ChangePricePrepareDTO> taskDto) {
|
|
|
ChangePricePrepareDTO cppDto = taskDto.getProcessData();
|
|
|
int uid = taskDto.getUid();
|
|
|
long oprId = taskDto.getTaskId();
|
|
|
long taskId = taskDto.getTaskId();
|
|
|
BigDecimal preSalePrice = cppDto.getPreSalePrice(),
|
|
|
salePrice = cppDto.getSalePrice();
|
|
|
Map<Integer, SkupDto> skupMap = cppDto.getSkupMap();
|
...
|
...
|
@@ -38,10 +38,10 @@ public class SellerIncrPriceTaskHandler extends AbstractSellerAdjustPriceTaskHan |
|
|
.beforeProductPrice(preSalePrice)
|
|
|
.afterEarnestMoney(computeResult.getEarnestMoney().getEarnestMoney().toPlainString())
|
|
|
.earnestMoney(totalDiffMoney).productCount(skupMap.size())
|
|
|
.seriNo(String.valueOf(oprId))
|
|
|
.seriNo(String.valueOf(taskId))
|
|
|
.type(swdType.getValue()).build();
|
|
|
|
|
|
log.info("[{}-{}] pre use total earnest:{},diff earnest:{},num:{}", uid, oprId, totalDiffMoney, diffEarnestMoney, skupMap.size());
|
|
|
log.info("[{}-{}] pre use total earnest:{},diff earnest:{},num:{}", uid, taskId, totalDiffMoney, diffEarnestMoney, skupMap.size());
|
|
|
SellerWallet sellerWallet = cppDto.isSuper() ? new SellerWallet() : merchantOrderPaymentService.changePriceUseEarnest(uid, totalDiffMoney, moai);
|
|
|
result.sellerWallet = sellerWallet;
|
|
|
return Objects.nonNull(sellerWallet);
|
...
|
...
|
|