Commit cec5f5e9 authored by 罗林杰's avatar 罗林杰

修改退单

parent c1716341
...@@ -287,7 +287,7 @@ public class StoreGoodsApplyServiceImpl extends ServiceImpl<StoreGoodsApplyRepos ...@@ -287,7 +287,7 @@ public class StoreGoodsApplyServiceImpl extends ServiceImpl<StoreGoodsApplyRepos
storeGoodsLogServiceImpl.updateStatus(storeGoodsApply); storeGoodsLogServiceImpl.updateStatus(storeGoodsApply);
} else if("3".equals(storeGoodsApply.getIsReturn())){ } else if("3".equals(storeGoodsApply.getIsReturn())){
storeGoodsApply.setIsReturn("2"); storeGoodsApply.setIsReturn("2");
} else if ("1".equals(storeGoodsApply.getIsReturn())){ } else if ("1".equals(storeGoodsApply.getIsReturn()) && storeGoodsApply.getTotalOutPrice() != null){
StoreGoodsApply oldStoreGoodsApply = baseMapper.selectById(storeGoodsApply.getBusinessId()); StoreGoodsApply oldStoreGoodsApply = baseMapper.selectById(storeGoodsApply.getBusinessId());
storeGoodsApply.setTotalOutPrice( storeGoodsApply.setTotalOutPrice(
oldStoreGoodsApply.getTotalOutPrice().subtract(storeGoodsApply.getTotalOutPrice()) oldStoreGoodsApply.getTotalOutPrice().subtract(storeGoodsApply.getTotalOutPrice())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment