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
790c1199
authored
Mar 27, 2021
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
撤销报价,重回询价池
parent
53c3ce7c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
app/Model/InquiryItemsAssignModel.php
app/Model/QuoteModel.php
app/Model/InquiryItemsAssignModel.php
View file @
790c1199
...
...
@@ -27,5 +27,17 @@ class InquiryItemsAssignModel extends Model
return
$this
->
insert
(
$data
);
}
// 删除
public
function
delAssign
(
$inquiry_items_id
,
$assign_uid
,
$types
=
1
)
{
$map
=
[];
$map
[
'types'
]
=
$types
;
$map
[
'inquiry_items_id'
]
=
$inquiry_items_id
;
$map
[
'assign_uid'
]
=
$assign_uid
;
return
$this
->
where
(
$map
)
->
delete
();
}
}
\ No newline at end of file
app/Model/QuoteModel.php
View file @
790c1199
...
...
@@ -208,6 +208,10 @@ class QuoteModel extends Model
$res
=
$this
->
where
(
'id'
,
$id
)
->
update
([
'status'
=>
-
1
,
'cancel_reason'
=>
$cancel_reason
]);
// 需要删除当前用户的领取记录
$InquiryItemsAssignModel
=
new
InquiryItemsAssignModel
;
$InquiryItemsAssignModel
->
delAssign
(
$quote_info
[
'inquiry_items_id'
],
$quote_info
[
'create_uid'
]);
$data
=
[];
$data
[
'types'
]
=
2
;
$data
[
'relation_id'
]
=
$id
;
...
...
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