|
|
@@ -287,6 +287,11 @@ public class SaleServiceImpl implements SaleService{
|
|
|
if (null != code) {
|
|
|
throw new BizException(BizExceptionCode.SALE_ALREADY_UNAUDIT);
|
|
|
}
|
|
|
+ //单据状态为已关闭,无法审核
|
|
|
+ code = saleMapper.validateCloseStatus(id);
|
|
|
+ if (null != code) {
|
|
|
+ throw new BizException(BizExceptionCode.SALE_CLOSE.getCode(),String.format(BizExceptionCode.SALE_CLOSE.getMessage(),"反审核"));
|
|
|
+ }
|
|
|
//检测出货状态为未出货
|
|
|
Integer num = saleMapper.checkSendStatus(id);
|
|
|
if (num > 0) {
|