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
48a3d383
Commit
48a3d383
authored
Apr 29, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
2c52e259
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
12 deletions
+3
-12
SquareService.php
application/api_broker/service/SquareService.php
+3
-0
BSquare.php
application/model/BSquare.php
+0
-12
No files found.
application/api_broker/service/SquareService.php
View file @
48a3d383
...
@@ -263,6 +263,9 @@ class SquareService
...
@@ -263,6 +263,9 @@ class SquareService
if
(
!
empty
(
$params
[
'cover_img'
]))
{
if
(
!
empty
(
$params
[
'cover_img'
]))
{
$update_params
[
'cover_img'
]
=
$params
[
'cover_img'
];
$update_params
[
'cover_img'
]
=
$params
[
'cover_img'
];
}
}
if
(
!
empty
(
$params
[
'house_id'
]))
{
$update_params
[
'house_id'
]
=
$params
[
'house_id'
];
}
if
(
!
$update_params
){
if
(
!
$update_params
){
return
false
;
return
false
;
}
}
...
...
application/model/BSquare.php
View file @
48a3d383
...
@@ -33,17 +33,6 @@ class BSquare extends Model
...
@@ -33,17 +33,6 @@ class BSquare extends Model
return
$result
;
return
$result
;
}
}
/**
* 更新数据
*/
public
function
updateSquare
(
$params
)
{
$result
=
$this
->
update
(
$params
);
//dump($this->getLastSql());
return
$result
;
}
public
function
getSquareList
(
$pageNo
,
$pageSize
,
$field
,
$params
)
public
function
getSquareList
(
$pageNo
,
$pageSize
,
$field
,
$params
)
{
{
$order
=
"Square.create_time desc"
;
$order
=
"Square.create_time desc"
;
...
@@ -67,7 +56,6 @@ class BSquare extends Model
...
@@ -67,7 +56,6 @@ class BSquare extends Model
$result
=
Db
::
table
(
$this
->
table
)
$result
=
Db
::
table
(
$this
->
table
)
->
field
(
$field
)
->
field
(
$field
)
->
alias
(
'Square'
)
->
alias
(
'Square'
)
->
join
(
'a_site Site'
,
'Site.id = Square.site_id'
,
'left'
)
->
where
(
$params
)
->
where
(
$params
)
->
count
();
->
count
();
//dump($this->getLastSql());
//dump($this->getLastSql());
...
...
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