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
b9de9ede
Commit
b9de9ede
authored
Jun 06, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
30f45cc9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
27 deletions
+28
-27
OfficeReportService.php
application/api_broker/service/OfficeReportService.php
+28
-27
No files found.
application/api_broker/service/OfficeReportService.php
View file @
b9de9ede
...
...
@@ -126,7 +126,7 @@ class OfficeReportService
// $agentArr = $vModel->getAgentsByAgentId($params["report_agent_id"]);
$params
[
"agent_id_s"
]
=
array
(
"in"
,
$params
[
"report_agent_id"
]);
$caseHouseId
=
$this
->
vModel
->
getCaseRoomByAgentId
(
$params
[
"agent_id_s"
],
"1,2,3"
);
$caseHouseId
=
$this
->
vModel
->
getCaseRoomByAgentId
(
$params
[
"agent_id_s"
],
"1,2,3"
);
$ids
=
""
;
if
(
count
(
$caseHouseId
)
>
0
)
{
foreach
(
$caseHouseId
as
$item
)
{
...
...
@@ -212,7 +212,7 @@ class OfficeReportService
$agentArr
=
$this
->
vModel
->
getAgentsByAgentIdAndType
(
$params
[
"report_agent_id"
],
$check_type
);
$params
[
"agent_id_s"
]
=
array
(
"in"
,
$agentArr
);
$params
[
"report_agent_id"
]
=
$agentArr
;
$caseHouseId
=
$this
->
vModel
->
getCaseRoomByAgentId
(
$params
[
"agent_id_s"
],
"2,3"
);
$caseHouseId
=
$this
->
vModel
->
getCaseRoomByAgentId
(
$params
[
"agent_id_s"
],
"2,3"
);
$ids
=
""
;
if
(
count
(
$caseHouseId
)
>
0
)
{
foreach
(
$caseHouseId
as
$item
)
{
...
...
@@ -251,7 +251,7 @@ class OfficeReportService
$params
[
"report_agent_id"
]
=
$agentArr
;
}
$caseHouseId
=
$this
->
vModel
->
getCaseRoomByAgentId
(
$params
[
"agent_id_s"
],
"1"
);
$caseHouseId
=
$this
->
vModel
->
getCaseRoomByAgentId
(
$params
[
"agent_id_s"
],
"1"
);
$ids
=
""
;
if
(
count
(
$caseHouseId
)
>
0
)
{
foreach
(
$caseHouseId
as
$item
)
{
...
...
@@ -426,34 +426,35 @@ class OfficeReportService
$result
[
"collectingBill"
]
=
true
;
$result
[
"refund"
]
=
true
;
$result
[
"bargain"
]
=
true
;
return
$result
;
}
}
else
{
$auth_arr
=
[
'office/marchIn'
,
'office/collectingBill'
,
'office/refund'
,
'office/bargain'
,
];
$param
[
"name"
]
=
array
(
"in"
,
$auth_arr
);
$is_auth
=
$this
->
agentModel
->
agentsAuthIds
(
$agent_id
,
$param
);
if
(
count
(
$is_auth
)
>
0
)
{
foreach
(
$is_auth
as
$item
)
{
if
(
$item
[
'name'
]
==
"office/marchIn"
)
{
$result
[
"marchIn"
]
=
true
;
}
if
(
$item
[
'name'
]
==
"office/collectingBill"
)
{
$result
[
"collectingBill"
]
=
true
;
}
if
(
$item
[
'name'
]
==
"office/refund"
)
{
$result
[
"refund"
]
=
true
;
}
if
(
$item
[
'name'
]
==
"office/bargain"
)
{
$result
[
"bargain"
]
=
true
;
}
}
$auth_arr
=
[
'office/marchIn'
,
'office/collectingBill'
,
'office/refund'
,
'office/bargain'
,
];
$param
[
"name"
]
=
array
(
"in"
,
$auth_arr
);
$is_auth
=
$this
->
agentModel
->
agentsAuthIds
(
$agent_id
,
$param
);
if
(
count
(
$is_auth
)
>
0
)
{
foreach
(
$is_auth
as
$item
)
{
if
(
$item
[
'name'
]
==
"office/marchIn"
)
{
$result
[
"marchIn"
]
=
true
;
}
if
(
$item
[
'name'
]
==
"office/collectingBill"
)
{
$result
[
"collectingBill"
]
=
true
;
}
if
(
$item
[
'name'
]
==
"office/refund"
)
{
$result
[
"refund"
]
=
true
;
}
if
(
$item
[
'name'
]
==
"office/bargain"
)
{
$result
[
"bargain"
]
=
true
;
}
}
}
return
$result
;
...
...
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