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
cae95240
Commit
cae95240
authored
May 17, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
29edb5f8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
3 deletions
+44
-3
PayLogOpenService.php
application/api_broker/service/PayLogOpenService.php
+18
-2
OPayLogOpen.php
application/model/OPayLogOpen.php
+24
-0
OPayLogOpenLog.php
application/model/OPayLogOpenLog.php
+2
-1
No files found.
application/api_broker/service/PayLogOpenService.php
View file @
cae95240
...
...
@@ -49,6 +49,17 @@ class PayLogOpenService
return
$return_id
;
}
/**
* @param $open_id
* @param $status
* @param $remark
* @param $operation_id
* @param $operation_name
* @return int|string
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
addOpenCheck
(
$open_id
,
$status
,
$remark
,
$operation_id
,
$operation_name
)
{
$id
=
$this
->
payLogOpenLogModel
->
getAllList
(
'open_id'
,
0
,
[
'status'
=>
$status
,
'open_id'
=>
$open_id
]);
//检查当前状态是否审核过
...
...
@@ -88,11 +99,13 @@ class PayLogOpenService
$where
[
'a.is_del'
]
=
0
;
$fields
=
'a.id,a.create_time,a.agent_id,a.pay_log_id,a.bargain_id,a.order_id,a.house_id,a.house_address,
a.status,b.
create_time as disc_time,max(b.id) as two_id,c.name as agent_name,b.operation_id,b.operation
_name'
;
$list
=
$this
->
payLogOpenModel
->
get
ListCheck
(
$pageNo
,
$pageSize
,
'a.id desc'
,
$fields
,
$where
);
a.status,b.
name as agent
_name'
;
$list
=
$this
->
payLogOpenModel
->
get
OpenList
(
$pageNo
,
$pageSize
,
'a.id desc'
,
$fields
,
$where
);
if
(
!
$list
)
{
return
null
;
}
$field_log
=
"id,status,remark,operation_id,operation_name,create_time"
;
foreach
(
$list
as
$key
=>
$item
)
{
$params
[
"img_id"
]
=
$item
[
"id"
];
$params
[
"img_type"
]
=
5
;
...
...
@@ -100,6 +113,9 @@ class PayLogOpenService
$list
[
$key
][
"img_path"
]
=
CHAT_IMG_URL
;
$list
[
$key
][
"img_arr"
]
=
$img_arr
;
$log_list
=
$this
->
payLogOpenLogModel
->
getAllList
(
$field_log
,
$item
[
"id"
],
[]);
$list
[
$key
][
"log_list"
]
=
$log_list
;
}
return
$list
;
}
...
...
application/model/OPayLogOpen.php
View file @
cae95240
...
...
@@ -59,6 +59,30 @@ class OPayLogOpen extends BaseModel
->
select
();
}
/**
* @param int $pageNo
* @param int $pageSize
* @param string $order_
* @param string $field
* @param string $params
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
getOpenList
(
$pageNo
=
1
,
$pageSize
=
15
,
$order_
=
'id desc'
,
$field
=
''
,
$params
=
''
)
{
return
$this
->
db_
->
field
(
$field
)
->
alias
(
'a'
)
->
join
(
'a_agents b'
,
'a.agent_id=b.id'
,
'left'
)
->
where
(
$params
)
->
limit
(
$pageSize
)
->
page
(
$pageNo
)
->
order
(
$order_
)
->
select
();
}
/**
* @param string $field
* @param $params
...
...
application/model/OPayLogOpenLog.php
View file @
cae95240
...
...
@@ -52,7 +52,8 @@ class OPayLogOpenLog extends BaseModel
$params
[
'id'
]
=
$id
;
}
$params
[
'is_del'
]
=
0
;
return
$this
->
db_
->
field
(
$field
)
return
$this
->
db_
->
field
(
$field
)
->
where
(
$params
)
->
select
();
}
...
...
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