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
8d51e504
Commit
8d51e504
authored
Nov 27, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
业绩调整时间判断
parent
208ade83
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
BrokerService.php
application/index/service/BrokerService.php
+10
-3
No files found.
application/index/service/BrokerService.php
View file @
8d51e504
...
...
@@ -157,15 +157,22 @@ class BrokerService
}
elseif
(
$data
[
'confirm_old'
]
==
2
&&
!
empty
(
$data
[
'id'
]))
{
if
(
empty
(
$data
[
'performance_time'
]))
{
$result
[
'msg'
]
=
'业绩调整开始时间'
;
$result
[
'msg'
]
=
'业绩调整开始时间
为空
'
;
$result
[
'status'
]
=
'fail'
;
return
$result
;
}
$m_record
=
new
AOperatingRecords
();
$task
=
new
ResultsSummaryNewTask
();
$start_time
=
$data
[
'performance_time'
];
$end_time
=
date
(
'Y-m-d'
,
strtotime
(
'+1 day'
));
if
(
strtotime
(
$start_time
)
>
strtotime
(
$end_time
))
{
$result
[
'msg'
]
=
'业绩调整开始时间不能大于今天日期'
;
$result
[
'status'
]
=
'fail'
;
return
$result
;
}
$m_record
=
new
AOperatingRecords
();
$task
=
new
ResultsSummaryNewTask
();
$is_ok
=
$task
->
updateStoreByAgentId
(
$data
[
'id'
],
$data
[
'store_id'
],
$data
[
'district_id'
],
$start_time
,
$end_time
);
if
(
$is_ok
)
{
$id
=
$this
->
m_agent
->
saveAgent
(
$data
);
//正常新增或编辑
...
...
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