|
@@ -278,7 +278,7 @@ public class SaleServiceImpl implements SaleService{
|
|
|
}
|
|
}
|
|
|
//检测出货状态为未出货
|
|
//检测出货状态为未出货
|
|
|
Integer num = saleMapper.checkSendStatus(id);
|
|
Integer num = saleMapper.checkSendStatus(id);
|
|
|
- if (num == 0) {
|
|
|
|
|
|
|
+ if (num > 0) {
|
|
|
throw new BizException(BizExceptionCode.SALEOUT_UNAUDIT_ERROR);
|
|
throw new BizException(BizExceptionCode.SALEOUT_UNAUDIT_ERROR);
|
|
|
}
|
|
}
|
|
|
singleUnAudit(id);
|
|
singleUnAudit(id);
|
|
@@ -478,7 +478,6 @@ public class SaleServiceImpl implements SaleService{
|
|
|
//更新已转数
|
|
//更新已转数
|
|
|
saleDetail.setSd_yqty(saleDetail.getSd_qty());
|
|
saleDetail.setSd_yqty(saleDetail.getSd_qty());
|
|
|
saledetailMapper.updateByPrimaryKeySelective(saleDetail);
|
|
saledetailMapper.updateByPrimaryKeySelective(saleDetail);
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
//更新存在字段
|
|
//更新存在字段
|
|
|
saleMapper.updateByPrimaryKeySelective(sale);
|
|
saleMapper.updateByPrimaryKeySelective(sale);
|