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
f9643e49
Commit
f9643e49
authored
Jul 26, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
86592d93
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
CostParameter.php
application/index/controller/CostParameter.php
+1
-2
AStore.php
application/model/AStore.php
+4
-0
No files found.
application/index/controller/CostParameter.php
View file @
f9643e49
...
...
@@ -66,9 +66,8 @@ class CostParameter extends Basic
if
(
!
empty
(
$params
[
'store_id'
]))
{
$conditions
[
"a.id"
]
=
$params
[
"store_id"
];
}
$conditions
[
"c.setting_date"
]
=
$params
[
'setting_date'
];
//
$conditions["c.setting_date"] = $params['setting_date'];
big_log
(
$conditions
);
$field
=
'a.id,a.store_name,b.office_name,d.name,d.phone,c.is_discounts,
c.transfer_charge,c.social_security_fee,c.attendance_num,c.official_receipts,
c.last_official_receipts,c.deduct'
;
...
...
application/model/AStore.php
View file @
f9643e49
...
...
@@ -386,6 +386,7 @@ class AStore extends BaseModel
->
join
(
'f_store_data c'
,
'a.id = c.store_id'
,
'left'
)
->
join
(
'a_agents d'
,
'a.id = d.store_id and (level = 20 or level = 40) '
,
'left'
)
->
where
(
$params
)
->
group
(
'c.store_id'
)
->
limit
(
$pageSize
)
->
page
(
$pageNo
)
->
select
();
...
...
@@ -400,7 +401,10 @@ class AStore extends BaseModel
->
alias
(
'a'
)
->
join
(
'f_office b'
,
'a.office_id = b.id'
,
'left'
)
->
join
(
'f_store_data c'
,
'a.id = c.store_id'
,
'left'
)
->
join
(
'a_agents d'
,
'a.id = d.store_id and (level = 20 or level = 40) '
,
'left'
)
->
where
(
$params
)
->
group
(
'c.store_id'
)
->
count
();
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