Commit 655027f9 by zhanglt

入库单删除bug修复

parent 03cc9f0e
...@@ -136,6 +136,15 @@ public class StorageService extends CrudService<StorageMapper, Storage> { ...@@ -136,6 +136,15 @@ public class StorageService extends CrudService<StorageMapper, Storage> {
if ("2".equals(qrCode.getState())) { if ("2".equals(qrCode.getState())) {
b = true; b = true;
} }
if("1".equals(qrCode.getState())){
GoodsInfo goodsInfo1 = goodsInfoMapper.get(si.getGoodsInfo());
Goods goods = goodsMapper.get(goodsInfo1.getGoods());
goods.setSum(goodsInfo1.getInfoSum());
goodsMapper.update(goods);
QrCode qr = qrCodeMapper.get(qrCode.getId());
qr.setState("0");
qrCodeMapper.update(qr);
}
} }
if (!b) { if (!b) {
for (StorageInfo si : list) { for (StorageInfo si : list) {
......
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