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
22020d8f
Commit
22020d8f
authored
Jul 29, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rule
parent
ae065bbc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
ApplyForCost.php
application/api_broker/controller/ApplyForCost.php
+12
-7
No files found.
application/api_broker/controller/ApplyForCost.php
View file @
22020d8f
...
...
@@ -38,15 +38,9 @@ class ApplyForCost extends Basic
$agent_data
=
$redis
->
getRedisCache
(
2
,
$this
->
agentId
);
$check_rule
=
new
VipService
();
$is_check
=
0
;
switch
(
$this
->
params
[
'type'
])
{
case
1
:
$is_ok
=
$check_rule
->
checkRule
(
$this
->
agentId
,
'broker/costListDistrict'
);
if
(
$is_ok
)
{
$is_check
=
0
;
}
else
{
$is_check
=
1
;
}
$check_url
=
'index/checkCostTwo'
;
$where
[
'a.status'
]
=
0
;
$m_agent
=
new
AAgents
();
...
...
@@ -59,6 +53,8 @@ class ApplyForCost extends Basic
}
break
;
case
2
:
$check_url
=
'index/checkCostThree'
;
//总监权限查看
$where
[
'a.status'
]
=
1
;
$m_agent
=
new
AAgents
();
...
...
@@ -71,8 +67,10 @@ class ApplyForCost extends Basic
}
break
;
case
3
:
$check_url
=
'index/checkCostFour'
;
$where
[
'a.status'
]
=
2
;
break
;
//财务一审
case
4
:
$check_url
=
'index/checkCostFive'
;
$where
[
'a.status'
]
=
3
;
break
;
//财务二审
case
5
:
$where
[
'a.status'
]
=
4
;
break
;
//财务三审
...
...
@@ -80,6 +78,13 @@ class ApplyForCost extends Basic
return
$this
->
response
(
101
,
'请求错误'
);
}
$is_ok
=
$check_rule
->
checkRule
(
$this
->
agentId
,
$check_url
);
if
(
$is_ok
)
{
$is_check
=
0
;
}
else
{
$is_check
=
1
;
}
$field
=
'a.id,a.count_time,a.source,a.type,a.create_time,a.agent_id,a.total_fee,a.fee_item,a.purpose,'
;
$field
.=
'b.name as agent_name,a.card_name,a.bank,a.card_no,a.source,a.store_id,a.status'
;
$fee_model
=
new
FApplyForFee
();
...
...
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