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
719b5a25
Commit
719b5a25
authored
Jul 24, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
if
parent
b8ee681c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
Cost.php
application/index/controller/Cost.php
+11
-6
No files found.
application/index/controller/Cost.php
View file @
719b5a25
...
@@ -283,7 +283,7 @@ class Cost extends Basic
...
@@ -283,7 +283,7 @@ class Cost extends Basic
$redis
=
new
RedisCacheService
();
$redis
=
new
RedisCacheService
();
$field
=
'id,count_time,source,type,create_time,agent_id,total_fee,fee_item,purpose,status,site_id,status,bank,'
;
$field
=
'id,count_time,source,type,create_time,agent_id,total_fee,fee_item,purpose,status,site_id,status,bank,'
;
$field
.=
'card_no,card_name,store_id'
;
$field
.=
'card_no,card_name,store_id
,office_id
'
;
$where
[
'id'
]
=
$this
->
params
[
'id'
];
$where
[
'id'
]
=
$this
->
params
[
'id'
];
$data
=
$fee_model
->
findByOne
(
$field
,
$where
);
$data
=
$fee_model
->
findByOne
(
$field
,
$where
);
...
@@ -318,12 +318,17 @@ class Cost extends Basic
...
@@ -318,12 +318,17 @@ class Cost extends Basic
case
1
:
case
1
:
$store_field
=
'a.cost_id as id,a.assume_fee,a.store_attendance_num,c.store_name'
;
$store_field
=
'a.cost_id as id,a.assume_fee,a.store_attendance_num,c.store_name'
;
$cost_where
[
'a.apply_for_id'
]
=
$data
[
'id'
];
$cost_where
[
'a.apply_for_id'
]
=
$data
[
'id'
];
$data
[
'store_cost_data'
]
=
$m_store_cost_ext
->
getFeeStoreCost
(
$store_field
,
$cost_where
);
$store_cost_data
=
$m_store_cost_ext
->
getFeeStoreCost
(
$store_field
,
$cost_where
);
if
(
$store_cost_data
)
{
$data
[
'store_cost_data'
]
=
$store_cost_data
;
}
$ext_where
[
'a.type'
]
=
1
;
if
(
$data
[
'office_id'
])
{
$ext_where
[
'c.office_id'
]
=
$data
[
'office_id'
];
$ext_where
[
'a.type'
]
=
1
;
$ext_where
[
'b.setting_date'
]
=
$data
[
'count_time'
];
$ext_where
[
'c.office_id'
]
=
$data
[
'office_id'
];
$data
[
'office_attendance_num'
]
=
$m_store_cost_ext
->
getFeeOfficeCostSum
(
'a.office_attendance_num'
,
$ext_where
);
$ext_where
[
'b.setting_date'
]
=
$data
[
'count_time'
];
$data
[
'office_attendance_num'
]
=
$m_store_cost_ext
->
getFeeOfficeCostSum
(
'a.office_attendance_num'
,
$ext_where
);
}
break
;
break
;
case
2
:
case
2
:
break
;
break
;
...
...
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