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
9f6c1a5b
Commit
9f6c1a5b
authored
Jul 26, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
//
parent
9dd513bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
ApplyForCost.php
application/api_broker/controller/ApplyForCost.php
+12
-3
No files found.
application/api_broker/controller/ApplyForCost.php
View file @
9f6c1a5b
...
@@ -53,14 +53,23 @@ class ApplyForCost extends Basic
...
@@ -53,14 +53,23 @@ class ApplyForCost extends Basic
$district_id
=
$m_agent
->
getAgentsByWhereColumn
([
'id'
=>
[
'<>'
,
$this
->
agentId
],
'phone'
=>
$this
->
agentPhone
],
'district_id'
);
$district_id
=
$m_agent
->
getAgentsByWhereColumn
([
'id'
=>
[
'<>'
,
$this
->
agentId
],
'phone'
=>
$this
->
agentPhone
],
'district_id'
);
if
(
$district_id
)
{
if
(
$district_id
)
{
$district_id
[]
=
$agent_data
[
'district_id'
];
$district_id
[]
=
$agent_data
[
'district_id'
];
$where
[
'b.district_id'
]
=
[
'in'
,
$district_id
];
break
;
$where
[
'b.district_id'
]
=
[
'in'
,
$district_id
];
}
else
{
}
else
{
$where
[
'b.district_id'
]
=
$agent_data
[
'district_id'
];
break
;
$where
[
'b.district_id'
]
=
$agent_data
[
'district_id'
];
}
}
break
;
case
2
:
case
2
:
//总监权限查看
//总监权限查看
$where
[
'a.status'
]
=
1
;
$where
[
'a.status'
]
=
1
;
$where
[]
=
[
'EXP'
,
'b.store_id = '
.
$agent_data
[
'store_id'
]
.
' or b.district_id ='
.
$agent_data
[
'district_id'
]];
break
;
$m_agent
=
new
AAgents
();
$district_id
=
$m_agent
->
getAgentsByWhereColumn
([
'id'
=>
[
'<>'
,
$this
->
agentId
],
'phone'
=>
$this
->
agentPhone
],
'district_id'
);
if
(
$district_id
)
{
$district_id
[]
=
$agent_data
[
'district_id'
];
$where
[
'b.district_id'
]
=
[
'in'
,
$district_id
];
}
else
{
$where
[
'b.district_id'
]
=
$agent_data
[
'district_id'
];
}
break
;
case
3
:
case
3
:
$where
[
'a.status'
]
=
2
;
break
;
//财务一审
$where
[
'a.status'
]
=
2
;
break
;
//财务一审
case
4
:
case
4
:
...
...
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