Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
H
Hgs
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
徐州
Hgs
Commits
ae8afa2a
Commit
ae8afa2a
authored
Jun 28, 2022
by
徐州
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改平台客户查询
parent
31b54800
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
2 deletions
+30
-2
PlatformManagementController.java
...house365/web/controller/PlatformManagementController.java
+17
-0
myPlatformCustomer.jsp
...INF/views/platformmanagement/pages/myPlatformCustomer.jsp
+4
-2
Customer.xml
...hgs-ws/src/main/resources/development/ibatis/Customer.xml
+9
-0
No files found.
house365-hgs-web/src/main/java/com/house365/web/controller/PlatformManagementController.java
View file @
ae8afa2a
package
com
.
house365
.
web
.
controller
;
import
com.google.common.base.Joiner
;
import
com.google.common.base.Strings
;
import
com.house365.beans.entity.*
;
import
com.house365.beans.system.Page
;
...
...
@@ -65,6 +66,22 @@ public class PlatformManagementController extends BaseController {
// 获取查询条件
Map
<
String
,
Object
>
searchParams
=
Servlets
.
getParametersStartingWith
(
request
,
"search_"
);
//多选来源放回去
if
(
searchParams
.
containsKey
(
"EQ_actSources"
))
{
Object
act
=
searchParams
.
get
(
"EQ_actSources"
);
List
<
String
>
list
=
new
ArrayList
<>();
if
(
act
instanceof
String
[])
{
String
[]
EQ_actSource
=
(
String
[])
act
;
model
.
addAttribute
(
"selected"
,
Arrays
.
toString
(
EQ_actSource
));
Arrays
.
stream
(
EQ_actSource
).
forEach
(
i
->
list
.
add
(
i
));
}
else
{
model
.
addAttribute
(
"selected"
,
act
.
toString
());
list
.
add
(
act
.
toString
());
}
searchParams
.
put
(
"EQ_actSources"
,
list
);
}
Page
page
=
new
Page
(
pageSize
==
null
?
100
:
pageSize
);
if
(
null
!=
number
)
{
page
.
setCurrentPage
(
number
);
...
...
house365-hgs-web/src/main/webapp/WEB-INF/views/platformmanagement/pages/myPlatformCustomer.jsp
View file @
ae8afa2a
<
%@
include
file=
"/WEB-INF/common/layouts/common.jsp"
%
>
<
%@
page
language=
"java"
pageEncoding=
"UTF-8"
%
>
<html>
<head>
<c:if
test=
"${not empty managerName}"
>
...
...
@@ -440,10 +441,11 @@
活动来源:
<select
width:
6rem
name=
"search_EQ_actSource
"
id=
"search_EQ_actSourc
e"
>
<select
width:
6rem
name=
"search_EQ_actSource
s"
id=
"search_EQ_actSources"
multiple=
"tru
e"
>
<c:forEach
items=
"${sources}"
var=
"source"
>
<option
value=
"${source.sourceName}"
<
c:if
test=
"${source.sourceName eq param['search_EQ_actSource']}"
>
selected="selected"
</c:if>
>${source.sourceName}
</option>
<
c:if
test=
"${fn:contains(selected,source.sourceName)}"
>
selected="selected"
</c:if>
>${source.sourceName}
</option>
<
%
--
<
c:if
test=
"${source.sourceName eq param['search_EQ_actSource']}"
></c:if>
>${source.sourceName}
</option>
--%>
</c:forEach>
</select>
...
...
house365-hgs-ws/src/main/resources/development/ibatis/Customer.xml
View file @
ae8afa2a
...
...
@@ -1547,6 +1547,14 @@
c.is_show_in_plat $searchFilters.isShowInPlat.operation$ #searchFilters.isShowInPlat.value#
]]>
</isNotEmpty>
<isNotEmpty
prepend=
"AND"
property=
"searchFilters.actSources"
>
<![CDATA[ c.act_source in ]]>
<iterate
prepend=
""
property=
"searchFilters.actSources.value"
close=
")"
open=
"("
conjunction=
","
>
<![CDATA[ #searchFilters.actSources.value[]# ]]>
</iterate>
</isNotEmpty>
<isNotEmpty
prepend=
"AND"
property=
"searchFilters.starCustomer"
>
<![CDATA[
starCustomer $searchFilters.starCustomer.operation$ #searchFilters.starCustomer.value#
...
...
@@ -2129,6 +2137,7 @@
isRecycled $searchFilters.isRecycled.operation$ #searchFilters.isRecycled.value#
]]>
</isNotNull>
</isNotNull>
</dynamic>
</sql>
...
...
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