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
b132c6c2
Commit
b132c6c2
authored
Dec 18, 2018
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
7873e6de
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
DailyPaperService.php
application/api_broker/service/DailyPaperService.php
+16
-1
ODailyLog.php
application/model/ODailyLog.php
+3
-0
No files found.
application/api_broker/service/DailyPaperService.php
View file @
b132c6c2
...
...
@@ -369,17 +369,21 @@ class DailyPaperService
/**
* 获取财务审核列表
* @param $daily_id
* @param int $agent_id
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
private
function
getCheckList
(
$daily_id
)
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"
;
$params
[
"daily_id"
]
=
$daily_id
;
$params
[
"is_del"
]
=
0
;
if
(
$agent_id
>
0
){
$params
[
"operation_id"
]
=
$agent_id
;
}
return
$this
->
oDailyLogModel
->
getDailyLogList
(
$field
,
$params
,
1
,
15
);
}
...
...
@@ -412,6 +416,11 @@ class DailyPaperService
if
(
count
(
$agent_info
)
<=
0
||
(
$agent_info
[
0
][
"level"
]
!=
20
&&
$agent_info
[
0
][
"level"
]
!=
40
))
{
return
[
"code"
=>
101
,
"msg"
=>
"经纪人信息错误"
];
}
//todo 判断是否提交过,
$dailyInfo
=
$this
->
getDailyInfo
(
$agent_id
,
$daily_date
);
if
(
count
(
$dailyInfo
)
>
0
){
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"
]);
return
$this
->
oDailyModel
->
addDaily
(
$params
);
...
...
@@ -467,6 +476,12 @@ class DailyPaperService
if
(
count
(
$agent_info
)
<=
0
||
(
$agent_info
[
0
][
"level"
]
!=
20
&&
$agent_info
[
0
][
"level"
]
!=
40
))
{
return
[
"code"
=>
101
,
"msg"
=>
"经纪人信息错误"
];
}
//todo 判断是否提交过,
$dailyInfo
=
$this
->
getCheckList
(
$daily_id
,
$agent_id
);
if
(
count
(
$dailyInfo
)
>
0
){
return
[
"code"
=>
101
,
"msg"
=>
"您已经审核过了"
];
}
$params
=
$this
->
dailyLogBin
(
$daily_id
,
$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"
],
$remark
);
...
...
application/model/ODailyLog.php
View file @
b132c6c2
...
...
@@ -37,6 +37,9 @@ class ODailyLog extends Model
if
(
isset
(
$params
[
"daily_id"
])){
$where_
[
"daily_id"
]
=
$params
[
"daily_id"
];
}
if
(
isset
(
$params
[
"operation_id"
])){
$where_
[
"operation_id"
]
=
$params
[
"operation_id"
];
}
if
(
isset
(
$params
[
"is_del"
])){
$where_
[
"is_del"
]
=
$params
[
"is_del"
];
}
...
...
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