|
|
|
@ -492,7 +492,7 @@ public class BusinStockInvServiceImpl extends ServiceImpl<BusinStockInvMapper, B |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public Result<Boolean> exec(String invOrderNo) { |
|
|
|
public Result<Boolean> exec(String invOrderNo,Integer layer) { |
|
|
|
LambdaQueryWrapper<BusinStockInv> wrapper = new LambdaQueryWrapper<BusinStockInv>() |
|
|
|
LambdaQueryWrapper<BusinStockInv> wrapper = new LambdaQueryWrapper<BusinStockInv>() |
|
|
|
.eq(BusinStockInv::getInvOrderNo, invOrderNo) |
|
|
|
.eq(BusinStockInv::getInvOrderNo, invOrderNo) |
|
|
|
.eq(BusinStockInv::getInvStatus, InvStatusEnum.init.getValue()); |
|
|
|
.eq(BusinStockInv::getInvStatus, InvStatusEnum.init.getValue()); |
|
|
|
@ -503,6 +503,7 @@ public class BusinStockInvServiceImpl extends ServiceImpl<BusinStockInvMapper, B |
|
|
|
for (BusinStockInv businStockInv : list) { |
|
|
|
for (BusinStockInv businStockInv : list) { |
|
|
|
businStockInv.setInvStatus(InvStatusEnum.exec.getValue()); |
|
|
|
businStockInv.setInvStatus(InvStatusEnum.exec.getValue()); |
|
|
|
businStockInv.setExecTime(DateUtils.getNowDate()); |
|
|
|
businStockInv.setExecTime(DateUtils.getNowDate()); |
|
|
|
|
|
|
|
businStockInv.setLayer(layer); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//更新盘点的状态为确认执行
|
|
|
|
//更新盘点的状态为确认执行
|
|
|
|
|