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
1f3ba80f
Commit
1f3ba80f
authored
Jan 28, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bank_card
parent
39fca8a1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
11 deletions
+24
-11
DailyPaper.php
application/api_broker/controller/DailyPaper.php
+6
-2
DailyPaperService.php
application/api_broker/service/DailyPaperService.php
+12
-7
DailyPaper.php
application/index/controller/DailyPaper.php
+6
-2
No files found.
application/api_broker/controller/DailyPaper.php
View file @
1f3ba80f
...
...
@@ -100,9 +100,10 @@ class DailyPaper extends Basic
$cash
=
$params
[
"cash"
];
$pos
=
$params
[
"pos"
];
$other_bank
=
$params
[
"other_bank"
];
$bank_card
=
$params
[
"bank_card"
];
$site_id
=
$this
->
siteId
;
$result
=
$this
->
service_
->
addDaily
(
$agent_id
,
$agent_name
,
$daily_date
,
$alipay
,
$tenpay
,
$realty_pay
,
$family_pay
,
$private_bank
,
$cash
,
$pos
,
$other_bank
,
$tenpay_2
,
$alipay_2
,
$site_id
);
$family_pay
,
$private_bank
,
$cash
,
$pos
,
$other_bank
,
$tenpay_2
,
$alipay_2
,
$site_id
,
$bank_card
);
if
(
$result
[
"code"
]
==
101
)
{
return
$this
->
response
(
"101"
,
$result
[
"msg"
]);
}
else
{
...
...
@@ -156,11 +157,14 @@ class DailyPaper extends Basic
$other_bank
=
$params
[
"other_bank"
];
$remark
=
$params
[
"remark"
];
$operation_status
=
$params
[
"operation_status"
];
$tenpay_2
=
$params
[
"tenpay_2"
];
$alipay_2
=
$params
[
"alipay_2"
];
$bank_card
=
$params
[
"bank_card"
];
if
(
$operation_status
!=
0
&&
$operation_status
!=
1
){
return
$this
->
response
(
"101"
,
"审核状态错误"
);
}
$result
=
$this
->
service_
->
addDailyCheck
(
$daily_id
,
$agent_id
,
$agent_name
,
$alipay
,
$tenpay
,
$realty_pay
,
$family_pay
,
$private_bank
,
$cash
,
$pos
,
$other_bank
,
$remark
,
$operation_status
);
$family_pay
,
$private_bank
,
$cash
,
$pos
,
$other_bank
,
$remark
,
$operation_status
,
$tenpay_2
,
$alipay_2
,
$bank_card
);
if
(
$result
[
"code"
]
==
101
)
{
return
$this
->
response
(
"101"
,
$result
[
"msg"
]);
}
else
{
...
...
application/api_broker/service/DailyPaperService.php
View file @
1f3ba80f
...
...
@@ -426,7 +426,7 @@ class DailyPaperService
private
function
getCheckList
(
$daily_id
,
$agent_id
=
0
)
{
$field
=
"id,daily_id,operation_id,operation_name,remark,alipay,tenpay,realty_pay,family_pay,private_bank,
cash,pos,other_bank,create_time,update_time,tenpay_2,alipay_2"
;
cash,pos,other_bank,create_time,update_time,tenpay_2,alipay_2
,bank_card
"
;
$params
[
"daily_id"
]
=
$daily_id
;
$params
[
"is_del"
]
=
0
;
if
(
$agent_id
>
0
){
...
...
@@ -451,13 +451,14 @@ class DailyPaperService
* @param $tenpay_2
* @param $alipay_2
* @param $site_id
* @param $bank_card
* @return array
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
addDaily
(
$agent_id
,
$agent_name
,
$daily_date
,
$alipay
,
$tenpay
,
$realty_pay
,
$family_pay
,
$private_bank
,
$cash
,
$pos
,
$other_bank
,
$tenpay_2
,
$alipay_2
,
$site_id
)
$family_pay
,
$private_bank
,
$cash
,
$pos
,
$other_bank
,
$tenpay_2
,
$alipay_2
,
$site_id
,
$bank_card
)
{
$agent_info_arr
[
"agent_id"
]
=
$agent_id
;
$agent_info_field
=
"id,name,store_id,district_id,level"
;
...
...
@@ -472,7 +473,7 @@ class DailyPaperService
return
[
"code"
=>
101
,
"msg"
=>
"请勿重复提交日报"
];
}
$params
=
$this
->
dailyBin
(
$agent_id
,
$agent_name
,
$daily_date
,
$alipay
,
$tenpay
,
$realty_pay
,
$family_pay
,
$private_bank
,
$cash
,
$pos
,
$other_bank
,
$agent_info
[
0
][
"store_id"
],
$agent_info
[
0
][
"district_id"
],
$tenpay_2
,
$alipay_2
,
$site_id
);
$family_pay
,
$private_bank
,
$cash
,
$pos
,
$other_bank
,
$agent_info
[
0
][
"store_id"
],
$agent_info
[
0
][
"district_id"
],
$tenpay_2
,
$alipay_2
,
$site_id
,
$bank_card
);
$is_ok
=
$this
->
oDailyModel
->
addDaily
(
$params
);
if
(
$is_ok
>
0
)
{
return
[
"code"
=>
200
,
"data"
=>
null
];
...
...
@@ -482,7 +483,7 @@ class DailyPaperService
}
public
function
dailyBin
(
$agent_id
,
$agent_name
,
$daily_date
,
$alipay
,
$tenpay
,
$realty_pay
,
$family_pay
,
$private_bank
,
$cash
,
$pos
,
$other_bank
,
$store_id
,
$district_id
,
$tenpay_2
,
$alipay_2
,
$site_id
)
$family_pay
,
$private_bank
,
$cash
,
$pos
,
$other_bank
,
$store_id
,
$district_id
,
$tenpay_2
,
$alipay_2
,
$site_id
,
$bank_card
)
{
$arr
[
"agent_id"
]
=
$agent_id
;
$arr
[
"agent_name"
]
=
$agent_name
;
...
...
@@ -497,6 +498,7 @@ class DailyPaperService
$arr
[
"cash"
]
=
$cash
;
$arr
[
"pos"
]
=
$pos
;
$arr
[
"other_bank"
]
=
$other_bank
;
$arr
[
"bank_card"
]
=
$bank_card
;
$arr
[
"tenpay_2"
]
=
$tenpay_2
;
$arr
[
"alipay_2"
]
=
$alipay_2
;
$arr
[
"site_id"
]
=
$site_id
;
...
...
@@ -525,7 +527,7 @@ class DailyPaperService
* @throws \think\exception\DbException
*/
public
function
addDailyCheck
(
$daily_id
,
$agent_id
,
$agent_name
,
$alipay
,
$tenpay
,
$realty_pay
,
$family_pay
,
$private_bank
,
$cash
,
$pos
,
$other_bank
,
$remark
,
$operation_status
)
$family_pay
,
$private_bank
,
$cash
,
$pos
,
$other_bank
,
$remark
,
$operation_status
,
$tenpay_2
,
$alipay_2
,
$bank_card
)
{
$agent_info_arr
[
"agent_id"
]
=
$agent_id
;
$agent_info_field
=
"id,name,store_id,district_id,level"
;
...
...
@@ -541,7 +543,7 @@ class DailyPaperService
return
[
"code"
=>
101
,
"msg"
=>
"您已经审核过了"
];
}
$params
=
$this
->
dailyLogBin
(
$daily_id
,
$agent_id
,
$agent_name
,
$alipay
,
$tenpay
,
$realty_pay
,
$family_pay
,
$private_bank
,
$cash
,
$pos
,
$other_bank
,
$remark
,
$operation_status
);
$family_pay
,
$private_bank
,
$cash
,
$pos
,
$other_bank
,
$remark
,
$operation_status
,
$tenpay_2
,
$alipay_2
,
$bank_card
);
$is_ok
=
$this
->
oDailyLogModel
->
addDailyCheck
(
$params
);
...
...
@@ -578,7 +580,7 @@ class DailyPaperService
* @return mixed
*/
public
function
dailyLogBin
(
$daily_id
,
$agent_id
,
$agent_name
,
$alipay
,
$tenpay
,
$realty_pay
,
$family_pay
,
$private_bank
,
$cash
,
$pos
,
$other_bank
,
$remark
,
$operation_status
)
$family_pay
,
$private_bank
,
$cash
,
$pos
,
$other_bank
,
$remark
,
$operation_status
,
$tenpay_2
,
$alipay_2
,
$bank_card
)
{
$arr
[
"daily_id"
]
=
$daily_id
;
$arr
[
"operation_id"
]
=
$agent_id
;
...
...
@@ -593,6 +595,9 @@ class DailyPaperService
$arr
[
"pos"
]
=
$pos
;
$arr
[
"other_bank"
]
=
$other_bank
;
$arr
[
"operation_status"
]
=
$operation_status
;
$arr
[
"tenpay_2"
]
=
$tenpay_2
;
$arr
[
"alipay_2"
]
=
$alipay_2
;
$arr
[
"bank_card"
]
=
$bank_card
;
$arr
[
"create_time"
]
=
date
(
"Y-m-d H:i:s"
,
time
());
$arr
[
"update_time"
]
=
date
(
"Y-m-d H:i:s"
,
time
());
return
$arr
;
...
...
application/index/controller/DailyPaper.php
View file @
1f3ba80f
...
...
@@ -100,9 +100,10 @@ class DailyPaper extends Basic
$cash
=
$params
[
"cash"
];
$pos
=
$params
[
"pos"
];
$other_bank
=
$params
[
"other_bank"
];
$bank_card
=
$params
[
"bank_card"
];
$site_id
=
$this
->
siteId
;
$result
=
$this
->
service_
->
addDaily
(
$agent_id
,
$agent_name
,
$daily_date
,
$alipay
,
$tenpay
,
$realty_pay
,
$family_pay
,
$private_bank
,
$cash
,
$pos
,
$other_bank
,
$tenpay_2
,
$alipay_2
,
$site_id
);
$family_pay
,
$private_bank
,
$cash
,
$pos
,
$other_bank
,
$tenpay_2
,
$alipay_2
,
$site_id
,
$bank_card
);
if
(
$result
[
"code"
]
==
101
)
{
return
$this
->
response
(
"101"
,
$result
[
"msg"
]);
}
else
{
...
...
@@ -156,11 +157,14 @@ class DailyPaper extends Basic
$other_bank
=
$params
[
"other_bank"
];
$remark
=
$params
[
"remark"
];
$operation_status
=
$params
[
"operation_status"
];
$tenpay_2
=
$params
[
"tenpay_2"
];
$alipay_2
=
$params
[
"alipay_2"
];
$bank_card
=
$params
[
"bank_card"
];
if
(
$operation_status
!=
0
&&
$operation_status
!=
1
){
return
$this
->
response
(
"101"
,
"审核状态错误"
);
}
$result
=
$this
->
service_
->
addDailyCheck
(
$daily_id
,
$agent_id
,
$agent_name
,
$alipay
,
$tenpay
,
$realty_pay
,
$family_pay
,
$private_bank
,
$cash
,
$pos
,
$other_bank
,
$remark
,
$operation_status
);
$family_pay
,
$private_bank
,
$cash
,
$pos
,
$other_bank
,
$remark
,
$operation_status
,
$tenpay_2
,
$alipay_2
,
$bank_card
);
if
(
$result
[
"code"
]
==
101
)
{
return
$this
->
response
(
"101"
,
$result
[
"msg"
]);
}
else
{
...
...
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