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
07327efe
Commit
07327efe
authored
Jul 19, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
b6419b05
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
User.php
application/api_broker/controller/User.php
+2
-2
CostDetail.php
application/index/controller/CostDetail.php
+6
-8
FStoreCostExt.php
application/model/FStoreCostExt.php
+2
-0
No files found.
application/api_broker/controller/User.php
View file @
07327efe
...
...
@@ -162,9 +162,9 @@ class User extends Basic
}
if
(
isset
(
$params
[
'site_id'
])
)
{
$conditions
[
'
s.site_id'
]
=
$params
[
'site_id'
];
$conditions
[
'
a.site_id'
]
=
[
'LIKE'
,
'%'
.
$params
[
'site_id'
]
.
'%'
];
}
else
{
$conditions
[
'
s.site_id'
]
=
$this
->
siteId
;
$conditions
[
'
a.site_id'
]
=
[
'LIKE'
,
'%'
.
$this
->
siteId
.
'%'
]
;
}
$return_user_list
=
$this
->
userModel
->
selectUserList
(
$field
,
$conditions
,
$pageNo
,
$pageSize
,
$order
);
break
;
...
...
application/index/controller/CostDetail.php
View file @
07327efe
...
...
@@ -39,18 +39,16 @@ class CostDetail extends Basic
$pageNo
=
empty
(
$params
[
'pageNo'
])
?
1
:
$params
[
'pageNo'
];
$pageSize
=
empty
(
$params
[
'pageSize'
])
?
15
:
$params
[
'pageSize'
];
$activityModel
=
new
CActivity
();
$field
=
'id,title,return_type,money,return_action,activity_start_time,activity_end_time,use_period,total,
available,get_number,activity_rule,status,create_time'
;
$where_
=
[];
$field
=
'id,'
;
$conditions
=
[];
if
(
!
empty
(
$params
[
"title"
]))
{
$
where_
[
"title"
]
=
array
(
"like"
,
"%"
.
trim
(
$params
[
'title'
])
.
"%"
);
$
conditions
[
"title"
]
=
array
(
"like"
,
"%"
.
trim
(
$params
[
'title'
])
.
"%"
);
}
if
(
!
empty
(
$params
[
"id"
]))
{
$
where_
[
"id"
]
=
$params
[
'id'
];
$
conditions
[
"id"
]
=
$params
[
'id'
];
}
$where_
[
"status"
]
=
array
(
"neq"
,
4
);
$list
=
$this
->
storeCostExt
->
getStoreCostExt
(
$field
,
$where_
,
$pageNo
,
$pageSize
);
$count
=
$this
->
storeCostExt
->
getStoreCostExtTotal
(
$field
,
$where_
);
$list
=
$this
->
storeCostExt
->
getStoreCostExt
(
$field
,
$conditions
,
$pageNo
,
$pageSize
);
$count
=
$this
->
storeCostExt
->
getStoreCostExtTotal
(
$field
,
$conditions
);
$result
[
"list"
]
=
$list
;
$result
[
"total"
]
=
$count
;
return
$this
->
response
(
"200"
,
"success"
,
$result
);
...
...
application/model/FStoreCostExt.php
View file @
07327efe
...
...
@@ -25,6 +25,7 @@ class FStoreCostExt extends BaseModel
*/
public
function
getStoreCostExt
(
$field
,
$params
,
$pageNo
,
$pageSize
)
{
$params
[
"b.status"
]
=
0
;
$result
=
$this
->
db_
->
field
(
$field
)
->
alias
(
'a'
)
...
...
@@ -38,6 +39,7 @@ class FStoreCostExt extends BaseModel
public
function
getStoreCostExtTotal
(
$field
,
$params
)
{
$params
[
"b.status"
]
=
0
;
$result
=
$this
->
db_
->
field
(
$field
)
->
alias
(
'a'
)
...
...
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