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
b2932ed6
Commit
b2932ed6
authored
Jan 08, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
价格面积
parent
08562e52
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
20 deletions
+34
-20
Member.php
application/index/controller/Member.php
+34
-20
No files found.
application/index/controller/Member.php
View file @
b2932ed6
...
@@ -156,29 +156,43 @@ class Member extends Basic{
...
@@ -156,29 +156,43 @@ class Member extends Basic{
$where
[
'a.industry_type'
]
=
$params
[
'industry_type'
];
$where
[
'a.industry_type'
]
=
$params
[
'industry_type'
];
}
}
//面积需求
if
(
!
empty
(
$params
[
'area_type'
]))
{
switch
(
$params
[
'area_type'
])
{
//面积需求2
case
1
:
if
(
$params
[
'area_start'
]
>=
0
&&
$params
[
'area_end'
]
>=
0
)
{
//面积
$where
[
'a.area_demand'
]
=
[
'<='
,
30
];
break
;
$where
[
'a.area_demand'
]
=
array
(
'between'
,
array
(
$params
[
'area_start'
],
$params
[
'area_end'
]
)
);
case
2
:
}
else
{
$where
[
'a.area_demand'
]
=
[
'between'
,
[
30
,
60
]];
break
;
//面积需求1
case
3
:
if
(
!
empty
(
$params
[
'area_type'
]))
{
$where
[
'a.area_demand'
]
=
[
'between'
,
[
60
,
100
]];
break
;
switch
(
$params
[
'area_type'
])
{
default
:
case
1
:
$where
[
'a.area_demand'
]
=
[
'>'
,
100
];
$where
[
'a.area_demand'
]
=
[
'<='
,
30
];
break
;
case
2
:
$where
[
'a.area_demand'
]
=
[
'between'
,
[
30
,
60
]];
break
;
case
3
:
$where
[
'a.area_demand'
]
=
[
'between'
,
[
60
,
100
]];
break
;
default
:
$where
[
'a.area_demand'
]
=
[
'>'
,
100
];
}
}
}
}
}
//价格需求
if
(
!
empty
(
$params
[
'price_type'
]))
{
switch
(
$params
[
'price_type'
])
{
//价格需求2
case
1
:
if
(
$params
[
'price_start'
]
>=
0
&&
$params
[
'price_end'
]
>=
0
)
{
//金额
$where
[
'a.price_demand'
]
=
[
'<='
,
10000
];
break
;
$where
[
'a.price_demand'
]
=
array
(
'between'
,
array
(
$params
[
'price_start'
],
$params
[
'price_end'
]
)
);
case
2
:
}
else
{
$where
[
'a.price_demand'
]
=
[
'between'
,
[
10000
,
30000
]];
break
;
//价格需求1
default
:
if
(
!
empty
(
$params
[
'price_type'
]))
{
$where
[
'a.price_demand'
]
=
[
'>'
,
30000
];
switch
(
$params
[
'price_type'
])
{
case
1
:
$where
[
'a.price_demand'
]
=
[
'<='
,
10000
];
break
;
case
2
:
$where
[
'a.price_demand'
]
=
[
'between'
,
[
10000
,
30000
]];
break
;
default
:
$where
[
'a.price_demand'
]
=
[
'>'
,
30000
];
}
}
}
}
}
...
...
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