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
6cb0ea73
Commit
6cb0ea73
authored
Sep 17, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
1271ebc0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
OBargainModel.php
application/model/OBargainModel.php
+5
-3
No files found.
application/model/OBargainModel.php
View file @
6cb0ea73
...
@@ -1470,8 +1470,8 @@ class OBargainModel extends Model
...
@@ -1470,8 +1470,8 @@ class OBargainModel extends Model
$field
=
"count(1) as num"
;
$field
=
"count(1) as num"
;
//$where_["trade_type"] = 10;//产品要求统计数量必须是出租类型的180620
//$where_["trade_type"] = 10;//产品要求统计数量必须是出租类型的180620
$params
[
"a.role"
]
=
3
;
//必须是反签方
$params
[
"a.role"
]
=
3
;
//必须是反签方
$params
[
'c.shop_type'
]
=
$type
==
0
?
0
:
1
;
$params
[
'c.shop_type'
]
=
$type
==
0
?
0
:
1
;
//
dump($params);
//
dump($params);
$return
=
Db
::
table
(
$this
->
table
)
$return
=
Db
::
table
(
$this
->
table
)
->
field
(
$field
)
->
field
(
$field
)
->
alias
(
"a"
)
->
alias
(
"a"
)
...
@@ -1479,7 +1479,8 @@ class OBargainModel extends Model
...
@@ -1479,7 +1479,8 @@ class OBargainModel extends Model
->
join
(
"g_houses c"
,
"b.house_id = c.id"
,
"left"
)
->
join
(
"g_houses c"
,
"b.house_id = c.id"
,
"left"
)
->
where
(
$params
)
->
where
(
$params
)
->
select
();
->
select
();
//echo $this->getLastSql();
/*echo $this->getLastSql();
echo '--------------';*/
return
$return
;
return
$return
;
}
}
}
}
\ No newline at end of file
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