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
c4b21b24
Commit
c4b21b24
authored
Nov 06, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
转勤文案修改
parent
d6f73e2d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
BrokerService.php
application/index/service/BrokerService.php
+16
-9
No files found.
application/index/service/BrokerService.php
View file @
c4b21b24
...
...
@@ -79,7 +79,7 @@ class BrokerService
//根据是否带看过判断是否换id
$m_march_in
=
new
OMarchInModel
();
$march_data
=
$m_march_in
->
selectMarchInOne
(
'a.id'
,
[
'reception_id'
=>
$agent_old
[
0
][
'id'
],
'site_id'
=>
$data
[
'site_id'
]]);
if
(
empty
(
$march_data
[
'id'
]))
{
if
(
!
empty
(
$march_data
[
'id'
]))
{
$is_new_id
=
0
;
}
}
...
...
@@ -125,19 +125,26 @@ class BrokerService
if
(
empty
(
$data
[
'confirm_old'
]))
{
$id
=
$this
->
m_agent
->
saveAgent
(
$data
);
//正常新增或编辑
if
(
$id
>
0
)
{
$result
[
'msg'
]
=
$msg
;
$result
[
'status'
]
=
'successful'
;
}
else
{
$result
[
'msg'
]
=
'新增或编辑失败'
;
$result
[
'status'
]
=
'fail'
;
}
}
else
{
$data
[
'site_id'
]
=
$new_site_id
;
$id
=
$this
->
transferAgent
(
$data
,
$agent_old
,
$is_new_id
,
$operation_id
);
//转勤
}
if
(
$id
>
0
)
{
$result
[
'msg'
]
=
$msg
;
$result
[
'status'
]
=
'successful'
;
}
else
{
$result
[
'msg'
]
=
$msg
;
$result
[
'status'
]
=
'fail'
;
if
(
$id
>
0
)
{
$result
[
'msg'
]
=
'转勤成功'
;
$result
[
'status'
]
=
'successful'
;
}
else
{
$result
[
'msg'
]
=
'转勤失败'
;
$result
[
'status'
]
=
'fail'
;
}
}
}
catch
(
\Exception
$e
)
{
$result
[
'msg'
]
=
'内部错误:'
.
$e
->
getMessage
();
$result
[
'status'
]
=
'fail'
;
...
...
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