|
|
|
|
@ -157,6 +157,8 @@ public class StBuyOrderServiceImpl extends BaseServiceImpl<StBuyOrderMapper, StB |
|
|
|
|
buyOrder.setNeedDate(sb.getNeedDate()); |
|
|
|
|
buyOrder.setSurDrawQty(buyOrder.getBuyQty()); |
|
|
|
|
buyOrder.setGrade(buyOrder.getGrade()); |
|
|
|
|
buyOrder.setBatchStatus("新建"); |
|
|
|
|
buyOrder.setPickStatus("新建"); |
|
|
|
|
|
|
|
|
|
if (buyOrder.getId() != null) { |
|
|
|
|
// 修改
|
|
|
|
|
@ -293,7 +295,7 @@ public class StBuyOrderServiceImpl extends BaseServiceImpl<StBuyOrderMapper, StB |
|
|
|
|
for (StBuyOrder bo : list) { |
|
|
|
|
StBuyOrder old = baseMapper.selectById(bo.getId()); |
|
|
|
|
old.setBoStatus(StBuyOrder.BOSTATUS_SUBMIT); |
|
|
|
|
baseMapper.updateById(old); // 标准化 MyBatis-Plus 方法
|
|
|
|
|
baseMapper.updateById(old); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -303,6 +305,7 @@ public class StBuyOrderServiceImpl extends BaseServiceImpl<StBuyOrderMapper, StB |
|
|
|
|
StBuyOrder oldBuyOrder = baseMapper.selectById(id); |
|
|
|
|
oldBuyOrder.setExtraBill(extraBill); |
|
|
|
|
oldBuyOrder.setBoStatus(StBuyOrder.BOSTATUS_SUBMIT); |
|
|
|
|
baseMapper.updateById(oldBuyOrder); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public StBuyOrder getByExtraBill(String extraBill) { |
|
|
|
|
|