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
bc48929d
authored
Mar 27, 2021
by
hcy001
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' of
ssh://119.23.72.7:22611/q578953158/php_frq_api
parents
42bff2b8
53c3ce7c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
app/Model/QuoteModel.php
app/Model/QuoteModel.php
View file @
bc48929d
...
...
@@ -622,6 +622,11 @@ class QuoteModel extends Model
if
(
!
$input
[
'quote_id'
])
return
[
-
1
,
'参数缺失'
];
try
{
$info
=
$this
->
find
(
$input
[
'quote_id'
]);
if
(
$info
[
'status'
]
==
-
1
)
return
[
1
,
'修改失败,报价已撤销,请刷新查看'
];
if
(
$info
[
'status'
]
==
3
)
return
[
1
,
'修改失败,报价已确认,请刷新查看'
];
$quote_info
=
$input
[
'quote_info'
];
$brand
=
json_decode
(
$quote_info
[
'brand_s'
],
true
);
...
...
@@ -728,7 +733,7 @@ class QuoteModel extends Model
#更新询价明细表状态
$InquiryItemsModel
->
where
(
"id"
,
$inquiry_items_id
)
->
update
([
"status"
=>
2
,
'update_time'
=>
time
()]);
#更新报价待报价
#更新
$QuoteModel
->
where
(
"inquiry_items_id"
,
$inquiry_items_id
)
->
whereNotIn
(
"status"
,[
-
1
,
0
])
->
update
([
"status"
=>
1
,
'update_time'
=>
time
()]);
#重启其他所有状态为 已报价
$QuoteModel
->
where
(
"inquiry_items_id"
,
$inquiry_items_id
)
->
update
([
"status"
=>
1
,
'update_time'
=>
time
()]);
#重启其他所有状态为 已报价
$data
=
[];
$data
[
'types'
]
=
1
;
...
...
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