|
|
@ -256,7 +256,7 @@ public class IoOrderServiceImpl implements IoOrderService {
|
|
|
|
if (ioCodeEntity.getMyCount() > 1) {
|
|
|
|
if (ioCodeEntity.getMyCount() > 1) {
|
|
|
|
//更新码表
|
|
|
|
//更新码表
|
|
|
|
ioCodeEntity.setCount(ioCodeEntity.getMyCount() - 1);
|
|
|
|
ioCodeEntity.setCount(ioCodeEntity.getMyCount() - 1);
|
|
|
|
int reCount = udiCalCountUtil.getActCount(ioCodeEntity.getRelId());
|
|
|
|
int reCount = udiCalCountUtil.getActCount(ioCodeEntity.getNameCode());
|
|
|
|
ioCodeEntity.setReCount(ioCodeEntity.getMyReCount() - reCount);
|
|
|
|
ioCodeEntity.setReCount(ioCodeEntity.getMyReCount() - reCount);
|
|
|
|
codeService.updateById(ioCodeEntity); //更新码详情
|
|
|
|
codeService.updateById(ioCodeEntity); //更新码详情
|
|
|
|
|
|
|
|
|
|
|
@ -287,7 +287,7 @@ public class IoOrderServiceImpl implements IoOrderService {
|
|
|
|
preinDetailService.deleteById(invPreinDetailEntity.getId());
|
|
|
|
preinDetailService.deleteById(invPreinDetailEntity.getId());
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
invPreinDetailEntity.setCount(count);
|
|
|
|
invPreinDetailEntity.setCount(count);
|
|
|
|
int reCount = udiCalCountUtil.getActCount(invPreinDetailEntity.getRelId());
|
|
|
|
int reCount = udiCalCountUtil.getActCount(invPreinDetailEntity.getNameCode());
|
|
|
|
invPreinDetailEntity.setReCount(invPreinDetailEntity.getReCount() - reCount);
|
|
|
|
invPreinDetailEntity.setReCount(invPreinDetailEntity.getReCount() - reCount);
|
|
|
|
preinDetailService.update(invPreinDetailEntity);
|
|
|
|
preinDetailService.update(invPreinDetailEntity);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -300,7 +300,7 @@ public class IoOrderServiceImpl implements IoOrderService {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
//更新详情表
|
|
|
|
//更新详情表
|
|
|
|
invProductDetailEntity.setCount(count);
|
|
|
|
invProductDetailEntity.setCount(count);
|
|
|
|
int reCount = udiCalCountUtil.getActCount(invProductDetailEntity.getRelId());
|
|
|
|
int reCount = udiCalCountUtil.getActCount(invProductDetailEntity.getNameCode());
|
|
|
|
invProductDetailEntity.setReCount(invProductDetailEntity.getReCount() - reCount);
|
|
|
|
invProductDetailEntity.setReCount(invProductDetailEntity.getReCount() - reCount);
|
|
|
|
invPreProductDetailService.update(invProductDetailEntity);
|
|
|
|
invPreProductDetailService.update(invProductDetailEntity);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -325,7 +325,7 @@ public class IoOrderServiceImpl implements IoOrderService {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
//更新详情表
|
|
|
|
//更新详情表
|
|
|
|
invProductDetailEntity.setCount(count);
|
|
|
|
invProductDetailEntity.setCount(count);
|
|
|
|
int reCount = udiCalCountUtil.getActCount(invProductDetailEntity.getRelId());
|
|
|
|
int reCount = udiCalCountUtil.getActCount(invProductDetailEntity.getNameCode());
|
|
|
|
invProductDetailEntity.setReCount(invProductDetailEntity.getReCount() - reCount);
|
|
|
|
invProductDetailEntity.setReCount(invProductDetailEntity.getReCount() - reCount);
|
|
|
|
invProductDetailService.update(invProductDetailEntity);
|
|
|
|
invProductDetailService.update(invProductDetailEntity);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -353,7 +353,7 @@ public class IoOrderServiceImpl implements IoOrderService {
|
|
|
|
if (ioCodeEntity.getCount() > 1) {
|
|
|
|
if (ioCodeEntity.getCount() > 1) {
|
|
|
|
//删除一个条码
|
|
|
|
//删除一个条码
|
|
|
|
ioCodeEntity.setCount(ioCodeEntity.getCount() - 1);
|
|
|
|
ioCodeEntity.setCount(ioCodeEntity.getCount() - 1);
|
|
|
|
int reCount = udiCalCountUtil.getActCount(ioCodeEntity.getRelId());
|
|
|
|
int reCount = udiCalCountUtil.getActCount(ioCodeEntity.getNameCode());
|
|
|
|
ioCodeEntity.setReCount(ioCodeEntity.getMyReCount() - reCount);
|
|
|
|
ioCodeEntity.setReCount(ioCodeEntity.getMyReCount() - reCount);
|
|
|
|
codeTempService.updateById(ioCodeEntity); //更新码详情
|
|
|
|
codeTempService.updateById(ioCodeEntity); //更新码详情
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|