fix(wms): 修正转库订单审批状态判断逻辑
- 将审批通过状态从 1 修改为 2 - 确保只有在正确审批状态下才批量更新钢卷信息
This commit is contained in:
@@ -165,7 +165,7 @@ public class WmsTransferOrderServiceImpl implements IWmsTransferOrderService {
|
|||||||
boolean updateResult = baseMapper.updateById(order) > 0;
|
boolean updateResult = baseMapper.updateById(order) > 0;
|
||||||
|
|
||||||
// 3. 如果审批通过,批量更新钢卷信息
|
// 3. 如果审批通过,批量更新钢卷信息
|
||||||
if (updateResult && approveStatus != null && approveStatus == 1) {
|
if (updateResult && approveStatus != null && approveStatus == 2) {
|
||||||
batchUpdateCoilsOnApprove(orderId, order.getTransferType());
|
batchUpdateCoilsOnApprove(orderId, order.getTransferType());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user