Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
52abd1bf
Commit
52abd1bf
authored
May 18, 2018
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
判断是否有最近未结单的成交报告
parent
976383f2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
OrderLog.php
application/api_broker/controller/OrderLog.php
+29
-0
OBargainModel.php
application/model/OBargainModel.php
+3
-0
No files found.
application/api_broker/controller/OrderLog.php
View file @
52abd1bf
...
...
@@ -609,4 +609,32 @@ class OrderLog extends Basic
}
}
/**
* 判断是否有未结单的成交报告
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
getIsAccountStatement
(){
$params
=
$this
->
params
;
/* $params = array(
"order_id" => 7353,
);*/
if
(
!
isset
(
$params
[
"order_id"
])){
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
$field
=
"id,order_id,account_statement"
;
$where_
[
"order_id"
]
=
$params
[
"order_id"
];
$where_
[
"father_id"
]
=
0
;
$where_
[
"account_statement"
]
=
0
;
$oBargainModel
=
new
OBargainModel
();
$data
=
$oBargainModel
->
selectBargainByOrderNo
(
$field
,
$where_
,
"id desc"
);
if
(
count
(
$data
)
>
0
){
return
$this
->
response
(
"200"
,
"request success"
,[
"bargain_id"
=>
$data
[
0
][
"id"
]]);
}
else
{
return
$this
->
response
(
"200"
,
"request null"
);
}
}
}
\ No newline at end of file
application/model/OBargainModel.php
View file @
52abd1bf
...
...
@@ -88,6 +88,9 @@ class OBargainModel extends Model
if
(
isset
(
$params
[
"order_no"
]))
{
$where_
[
"order_no"
]
=
$params
[
"order_no"
];
}
if
(
isset
(
$params
[
"father_id"
]))
{
$where_
[
"father_id"
]
=
$params
[
"father_id"
];
}
if
(
isset
(
$params
[
"order_id"
]))
{
$where_
[
"order_id"
]
=
$params
[
"order_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