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
e4f7c9fc
Commit
e4f7c9fc
authored
May 03, 2018
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
推送bug
parent
e16e4d6c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
OrderLog.php
application/api_broker/controller/OrderLog.php
+3
-0
OrderLogService.php
application/api_broker/service/OrderLogService.php
+8
-4
No files found.
application/api_broker/controller/OrderLog.php
View file @
e4f7c9fc
...
...
@@ -74,6 +74,9 @@ class OrderLog extends Basic
/**
* 收款
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
collectingBill
()
{
...
...
application/api_broker/service/OrderLogService.php
View file @
e4f7c9fc
...
...
@@ -37,7 +37,7 @@ class OrderLogService
}
/**
*批量插入收款记录
*
批量插入收款记录
* @param $agent_id
* @param $agent_name
* @param $report_id
...
...
@@ -48,12 +48,15 @@ class OrderLogService
* @param $industry_type
* @param $remark
* @param $transfer_img
* @return int
* @return int|string
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
addCollectingBill
(
$agent_id
,
$agent_name
,
$report_id
,
$order_id
,
$order_no
,
$collecting_bill
,
$house_number
,
$industry_type
,
$remark
,
$transfer_img
)
{
$bill_arr
=
[];
$bill_arr
=
$params
=
[];
$father_id
=
0
;
foreach
(
$collecting_bill
as
$collecting
)
{
if
(
isset
(
$collecting
[
"type"
])
&&
isset
(
$collecting
[
"pay_type"
])
&&
isset
(
$collecting
[
"money"
]))
{
...
...
@@ -69,9 +72,10 @@ class OrderLogService
}
//todo if bill_arr not null, save database table
if
(
!
empty
(
$bill_arr
))
{
$id
=
$this
->
payLogModel
->
addPayLog
(
$bill_arr
);
$pushMarchIn
=
new
PushMessageService
(
$params
[
"report_id"
],
2
);
$pushMarchIn
->
pushMarchInMessage
(
$params
[
"report_id"
],
2
);
//推送
return
$
this
->
payLogModel
->
addPayLog
(
$bill_arr
)
;
return
$
id
;
}
return
$father_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