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
b68d8070
Commit
b68d8070
authored
Jul 25, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
91d832b1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
CostParameter.php
application/index/controller/CostParameter.php
+6
-1
FApplyForFee.php
application/model/FApplyForFee.php
+1
-0
No files found.
application/index/controller/CostParameter.php
View file @
b68d8070
...
...
@@ -332,25 +332,30 @@ class CostParameter extends Basic
switch
(
$type
)
{
case
0
:
//上海总部成本
$params
[
'type'
]
=
2
;
$params
[
'fee_item'
]
=
202
;
break
;
case
1
:
//1杭州总部成本
$params
[
'type'
]
=
3
;
$params
[
'fee_item'
]
=
302
;
$params
[
'site_id'
]
=
10002
;
break
;
case
2
:
//2深圳总部成本
$params
[
'type'
]
=
3
;
$params
[
'fee_item'
]
=
302
;
$params
[
'site_id'
]
=
10003
;
break
;
case
3
:
//3广州总部成本
$params
[
'type'
]
=
3
;
$params
[
'fee_item'
]
=
302
;
$params
[
'site_id'
]
=
10004
;
break
;
case
4
:
//4北京总部成本
$params
[
'type'
]
=
3
;
$params
[
'fee_item'
]
=
302
;
$params
[
'site_id'
]
=
10005
;
break
;
...
...
@@ -358,10 +363,10 @@ class CostParameter extends Basic
return
0
;
}
$params
[
'type'
]
=
$type
;
$params
[
'status'
]
=
4
;
$params
[
'is_del'
]
=
0
;
$params
[
'count_time'
]
=
$setting_date
;
$res
=
$fee_model
->
findByOne
(
'SUM(total_fee) as total_fee_num'
,
$params
);
$total_fee_num
=
isset
(
$res
[
'total_fee_num'
])
?
$res
[
'total_fee_num'
]
:
0
;
return
$total_fee_num
;
...
...
application/model/FApplyForFee.php
View file @
b68d8070
...
...
@@ -47,6 +47,7 @@ class FApplyForFee extends BaseModel
->
field
(
$field
)
->
where
(
$params
)
->
find
();
big_log
(
$this
->
getLastSql
());
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