Commit 789f821e by hcy001

1

parent 3e1d7165
Showing with 2 additions and 2 deletions
...@@ -208,9 +208,9 @@ class InquiryItemsReportModel extends Model ...@@ -208,9 +208,9 @@ class InquiryItemsReportModel extends Model
$itemsIdArr = explode(",",$input["inquiry_items_ids"]); $itemsIdArr = explode(",",$input["inquiry_items_ids"]);
$InquiryItemsModel = new InquiryItemsModel(); $InquiryItemsModel = new InquiryItemsModel();
if ($types == 1){ if ($types == 1){
$check = $InquiryItemsModel->whereIn("status",[3,4,5])->whereIn("inquiry_items_id",$itemsIdArr)->count(); $check = $InquiryItemsModel->whereIn("status",[3,4,5])->whereIn("id",$itemsIdArr)->count();
}else{ }else{
$check = $InquiryItemsModel->where("status",5)->whereIn("inquiry_items_id",$itemsIdArr)->count(); $check = $InquiryItemsModel->where("status",5)->whereIn("id",$itemsIdArr)->count();
} }
return $check != count($itemsIdArr) ? [1001,$types == 1 ? "存在没选中的询价单!":"存在没确定的询价单!"] : [0,"通过"]; return $check != count($itemsIdArr) ? [1001,$types == 1 ? "存在没选中的询价单!":"存在没确定的询价单!"] : [0,"通过"];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment