|
|
|
@ -159,8 +159,13 @@ public class DistributionStockArticleServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
result = distributionAddvalueService.save(addvalueEntity); |
|
|
|
|
} |
|
|
|
|
//TODO 这里就应该对累加的增值服务费用和配送单本身费用进行累加并完成数据修改
|
|
|
|
|
distributionStockArticleEntity.setFee(sum); |
|
|
|
|
result = SqlHelper.retBool(this.getBaseMapper().updateById(distributionStockArticleEntity)); |
|
|
|
|
if (relatedId==2){ |
|
|
|
|
distributionDeliveryListEntity.setFee(sum); |
|
|
|
|
distributionDeliveryListMapper.updateById(distributionDeliveryListEntity); |
|
|
|
|
}else { |
|
|
|
|
distributionStockArticleEntity.setFee(sum); |
|
|
|
|
result = SqlHelper.retBool(this.getBaseMapper().updateById(distributionStockArticleEntity)); |
|
|
|
|
} |
|
|
|
|
if (!result){ |
|
|
|
|
log.error("sql执行结果:+{"+result+"}"); |
|
|
|
|
return R.fail("服务器正忙,请稍后再试!!!"); |
|
|
|
|