记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
57136bc5
Commit
57136bc5
authored
Jun 09, 2021
by
jiangxiulong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
banner search 前端直接调用service
parent
25c36134
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
10 deletions
+30
-10
BannerService.java
...net/client/admin/framework/web/service/BannerService.java
+21
-0
banners.html
...n/resources/templates/zhengzai/kylin/banners/banners.html
+5
-6
KylinBannersMapper.xml
...com.liquidnet.service.kylin.mapper/KylinBannersMapper.xml
+4
-4
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-framework/src/main/java/com/liquidnet/client/admin/framework/web/service/BannerService.java
0 → 100644
View file @
57136bc5
package
com
.
liquidnet
.
client
.
admin
.
framework
.
web
.
service
;
import
com.liquidnet.client.admin.common.enums.BannersTargetType
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
/**
* RuoYi首创 html调用 thymeleaf 实现字典读取
*
* @author ruoyi
*/
@Service
(
"banner"
)
public
class
BannerService
{
public
List
<
Object
>
getType
()
{
return
BannersTargetType
.
getResultType
();
}
}
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/kylin/banners/banners.html
View file @
57136bc5
...
@@ -18,13 +18,12 @@
...
@@ -18,13 +18,12 @@
<label>
跳转类型:
</label>
<label>
跳转类型:
</label>
<select
name=
"targetType"
>
<select
name=
"targetType"
>
<option
value=
""
>
全部
</option>
<option
value=
""
>
全部
</option>
<option
value=
"1"
>
1
</option>
<option
th:each=
"target : ${@banner.getType()}"
th:value=
"${target.id}"
th:text=
"${target.name}"
></option>
<option
value=
"2"
>
2
</option>
</select>
</select>
</li>
</li>
<li>
<li>
<label>
是否上线:
</label>
<label>
是否上线:
</label>
<select
name=
"
targetTyp
e"
>
<select
name=
"
isOnlin
e"
>
<option
value=
""
>
全部
</option>
<option
value=
""
>
全部
</option>
<option
value=
"0"
>
下线
</option>
<option
value=
"0"
>
下线
</option>
<option
value=
"1"
>
上线
</option>
<option
value=
"1"
>
上线
</option>
...
@@ -32,7 +31,7 @@
...
@@ -32,7 +31,7 @@
</li>
</li>
<li>
<li>
<label>
推广类型:
</label>
<label>
推广类型:
</label>
<select
name=
"
target
Type"
>
<select
name=
"
promotion
Type"
>
<option
value=
""
>
全部
</option>
<option
value=
""
>
全部
</option>
<option
value=
"1"
>
全国
</option>
<option
value=
"1"
>
全国
</option>
<option
value=
"2"
>
省份
</option>
<option
value=
"2"
>
省份
</option>
...
@@ -101,10 +100,10 @@
...
@@ -101,10 +100,10 @@
field
:
'targetTypeName'
,
field
:
'targetTypeName'
,
title
:
'跳转类型'
title
:
'跳转类型'
},
},
{
/*
{
field: 'targetObj',
field: 'targetObj',
title: '跳转目标'
title: '跳转目标'
},
},
*/
{
{
field
:
'isOnlineName'
,
field
:
'isOnlineName'
,
title
:
'是否上线'
title
:
'是否上线'
...
...
liquidnet-bus-do/liquidnet-service-kylin-do/src/main/resources/com.liquidnet.service.kylin.mapper/KylinBannersMapper.xml
View file @
57136bc5
...
@@ -17,16 +17,16 @@
...
@@ -17,16 +17,16 @@
<where>
<where>
is_deleted = 1
is_deleted = 1
<if
test=
"bannersName != ''"
>
<if
test=
"bannersName != ''"
>
AND banners_name LIKE concat('%',
#
{bannersName}, '%')
AND banners_name LIKE concat('%',
$
{bannersName}, '%')
</if>
</if>
<if
test=
"targetType != ''"
>
<if
test=
"targetType != ''"
>
AND target_type=
#
{targetType}
AND target_type=
$
{targetType}
</if>
</if>
<if
test=
"isOnline != ''"
>
<if
test=
"isOnline != ''"
>
AND is_online=
#
{isOnline}
AND is_online=
$
{isOnline}
</if>
</if>
<if
test=
"promotionType != ''"
>
<if
test=
"promotionType != ''"
>
AND promotion_type=
#
{promotionType}
AND promotion_type=
$
{promotionType}
</if>
</if>
</where>
</where>
ORDER BY banners_sort DESC
ORDER BY banners_sort DESC
...
...
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