修改删除订单明细时的错误提示
This commit is contained in:
@@ -89,7 +89,7 @@ public class PrchOrdDtlServiceImpl implements PrchOrdDtlService {
|
|||||||
CommonResult<Boolean> booleanCommonResult = billMainApi.notOffsetIsExistOrderDetailId(id);
|
CommonResult<Boolean> booleanCommonResult = billMainApi.notOffsetIsExistOrderDetailId(id);
|
||||||
if (booleanCommonResult.isSuccess() && booleanCommonResult.getData()) {
|
if (booleanCommonResult.isSuccess() && booleanCommonResult.getData()) {
|
||||||
PrchOrdDtlDO prchOrdDtlDO = prchOrdDtlMapper.selectById(id);
|
PrchOrdDtlDO prchOrdDtlDO = prchOrdDtlMapper.selectById(id);
|
||||||
throw exception(new ErrorCode(1_008_00_600, "采购订单明细【" + prchOrdDtlDO.getLineNum() + "】已生成采购订单,不能删除"));
|
throw exception(new ErrorCode(1_008_00_600, "订单明细【" + prchOrdDtlDO.getLineNum() + "】已生成收发货单,不能删除"));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ public class SalesOrderDetailServiceImpl implements SalesOrderDetailService {
|
|||||||
CommonResult<Boolean> booleanCommonResult = billMainApi.notOffsetIsExistOrderDetailId(id);
|
CommonResult<Boolean> booleanCommonResult = billMainApi.notOffsetIsExistOrderDetailId(id);
|
||||||
if (booleanCommonResult.isSuccess() && booleanCommonResult.getData()) {
|
if (booleanCommonResult.isSuccess() && booleanCommonResult.getData()) {
|
||||||
SalesOrderDetailDO salesOrderDetailDO = salesOrderDetailMapper.selectById(id);
|
SalesOrderDetailDO salesOrderDetailDO = salesOrderDetailMapper.selectById(id);
|
||||||
throw exception(new ErrorCode(1_008_00_600, "销售订单明细【" + salesOrderDetailDO.getMaterialName() + "】已生成销售订单,不能删除"));
|
throw exception(new ErrorCode(1_008_00_600, "订单明细【" + salesOrderDetailDO.getMaterialName() + "】已生成收发货单,不能删除"));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user