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
670727ae
Commit
670727ae
authored
Aug 26, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
office_name
parent
7f99b356
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
Cost.php
application/index/controller/Cost.php
+5
-1
No files found.
application/index/controller/Cost.php
View file @
670727ae
...
...
@@ -17,6 +17,7 @@ use app\model\AStore;
use
app\model\FApplyForFee
;
use
app\model\FApplyForFeeCheck
;
use
app\model\FImg
;
use
app\model\FOffice
;
use
app\model\FSettingLog
;
use
app\model\FStoreCost
;
use
app\model\FStoreCostExt
;
...
...
@@ -320,7 +321,7 @@ class Cost extends Basic
$data
[
'setting_log'
]
=
$list
;
}
}
$data
[
'office_name'
]
=
''
;
//费用类型 1办公室成本 2上海总部成本 3分部成本 4同联发展基金 5门店单独成本
switch
(
$data
[
'type'
])
{
case
1
:
...
...
@@ -346,6 +347,9 @@ class Cost extends Basic
$store_fee_where
[
'setting_date'
]
=
date
(
'Y-m-d'
,
strtotime
(
'-1 month'
,
strtotime
(
$data
[
'count_time'
])));
$data
[
'office_attendance_num'
]
=
$m_store_fee
->
getSumField
(
'attendance_num'
,
$store_fee_where
);
}
$m_office
=
new
FOffice
();
$data
[
'office_name'
]
=
$m_office
->
getFieldOneValue
(
'office_name'
,
[
'id'
=>
$data
[
'office_id'
]]);
}
break
;
case
2
:
...
...
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