|
|
@@ -264,8 +264,12 @@ public class BidingServiceImpl extends ServiceImpl<BidingMapper, Biding> impleme
|
|
|
if (salesBiding == null){
|
|
|
throw new SecurityException("发布失败,未找到单据");
|
|
|
}
|
|
|
- if (salesBiding.getStatus() == 0){
|
|
|
- throw new SecurityException("订单未请核");
|
|
|
+ //获得是否开启审批
|
|
|
+ R<String> paramValue = sysClient.getParamValue("release.approval");
|
|
|
+ if (paramValue.isSuccess() && paramValue.getData() != null) {
|
|
|
+ if (salesBiding.getStatus() == 0 && "0".equals(paramValue.getData())){
|
|
|
+ throw new SecurityException("订单未请核");
|
|
|
+ }
|
|
|
}
|
|
|
if (salesBiding.getStatus() == 7){
|
|
|
throw new SecurityException("订单已作废");
|