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
0e963a43
Commit
0e963a43
authored
Jan 04, 2019
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
cdd14064
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
DailyPaperService.php
application/api_broker/service/DailyPaperService.php
+8
-3
No files found.
application/api_broker/service/DailyPaperService.php
View file @
0e963a43
...
...
@@ -467,7 +467,7 @@ class DailyPaperService
return
[
"code"
=>
101
,
"msg"
=>
"经纪人信息错误"
];
}
//todo 判断是否提交过,
$dailyInfo
=
$this
->
getDailyInfo
(
$agent_id
,
$daily_date
);
$dailyInfo
=
$this
->
getDailyInfo
(
$agent_id
,
$daily_date
,
1
);
if
(
count
(
$dailyInfo
)
>
0
){
return
[
"code"
=>
101
,
"msg"
=>
"请勿重复提交日报"
];
}
...
...
@@ -600,17 +600,22 @@ class DailyPaperService
* 获取提交的日报记录
* @param $store_id
* @param $daily_data
* @param $type
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
private
function
getDailyInfo
(
$store_id
,
$daily_data
)
private
function
getDailyInfo
(
$store_id
,
$daily_data
,
$type
=
0
)
{
$field_info_field
=
"id,agent_id,agent_name,daily_date,alipay,tenpay,realty_pay,family_pay,private_bank,
cash,pos,other_bank,status,create_time,update_time"
;
if
(
$type
==
1
){
$daily_info_params
[
"agent_id"
]
=
$store_id
;
}
else
{
$daily_info_params
[
"store_id"
]
=
$store_id
;
}
$daily_info_params
[
"store_id"
]
=
$store_id
;
$daily_info_params
[
"daily_date"
]
=
$daily_data
;
return
$this
->
oDailyModel
->
getDailyList
(
$field_info_field
,
$daily_info_params
,
1
,
1
);
...
...
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