Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄成意
/
php_frq_api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d286dcb7
authored
Mar 27, 2021
by
hcy001
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1
parent
aa0c4b6e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
app/Model/InquiryItemsReportModel.php
app/Model/InquiryItemsReportModel.php
View file @
d286dcb7
...
...
@@ -194,7 +194,7 @@ class InquiryItemsReportModel extends Model
#更新当前报价单状态
$QuoteModel
->
where
(
"id"
,
$data
[
"quote_id"
])
->
update
([
"status"
=>
$status
]);
#更新报价选中
#更新关联除了当前询价单 此询价明细的报价单状态
$QuoteModel
->
where
(
"inquiry_items_id"
,
$inquiry_items_id
)
->
whereNotIn
(
"id"
,[
$quote_id
])
->
update
([
"status"
=>
1
]);
#重启其他所有状态为 已报价
$QuoteModel
->
where
(
"inquiry_items_id"
,
$inquiry_items_id
)
->
whereNotIn
(
"id"
,[
$quote_id
])
->
whereNotIn
(
"status"
,[
-
1
,
0
])
->
update
([
"status"
=>
1
]);
#重启其他所有状态为 已报价
#更新询价明细表状态
(
new
InquiryItemsModel
())
->
where
(
"id"
,
$inquiry_items_id
)
->
update
([
"status"
=>
$status
==
2
?
3
:
5
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment