Browse Source

1.修改费用状态

dev-warehouse
0.0 2 years ago
parent
commit
3c8ab61d0f
  1. 9
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockArticleServiceImpl.java

9
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockArticleServiceImpl.java

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

Loading…
Cancel
Save