记得上下班打卡 | 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
46a09ccb
Commit
46a09ccb
authored
Feb 03, 2026
by
姜秀龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
列表分页
parent
e787e5fd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
47 deletions
+16
-47
KylinNoticesAdminController.java
...ontroller/zhengzai/kylin/KylinNoticesAdminController.java
+1
-1
notices.html
...n/resources/templates/zhengzai/kylin/notices/notices.html
+14
-1
KylinBuyNoticeServiceImpl.java
...hengzai/kylin/service/impl/KylinBuyNoticeServiceImpl.java
+1
-45
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/java/com/liquidnet/client/admin/web/controller/zhengzai/kylin/KylinNoticesAdminController.java
View file @
46a09ccb
...
...
@@ -99,7 +99,7 @@ public class KylinNoticesAdminController extends BaseController {
@PostMapping
(
"list"
)
@ResponseBody
public
TableDataInfo
noticeList
(
BuyNoticeSearchParam
param
)
{
PageInfo
<
BuyNoticeVo
>
result
=
kylinNoticesServiceImpl
.
noticeListVo
(
param
);
PageInfo
<
KylinBuyNotice
>
result
=
kylinNoticesServiceImpl
.
noticeList
(
param
);
return
getDataTable
(
result
.
getList
());
}
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/kylin/notices/notices.html
View file @
46a09ccb
...
...
@@ -90,7 +90,20 @@
},
{
field
:
'createdAt'
,
title
:
'创建时间'
title
:
'创建时间'
,
formatter
:
function
(
value
,
row
,
index
)
{
if
(
value
)
{
// 将LocalDateTime格式转换为可读的日期格式
var
date
=
new
Date
(
value
);
return
date
.
getFullYear
()
+
'-'
+
String
(
date
.
getMonth
()
+
1
).
padStart
(
2
,
'0'
)
+
'-'
+
String
(
date
.
getDate
()).
padStart
(
2
,
'0'
)
+
' '
+
String
(
date
.
getHours
()).
padStart
(
2
,
'0'
)
+
':'
+
String
(
date
.
getMinutes
()).
padStart
(
2
,
'0'
)
+
':'
+
String
(
date
.
getSeconds
()).
padStart
(
2
,
'0'
);
}
return
''
;
}
},
{
title
:
'操作'
,
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/kylin/service/impl/KylinBuyNoticeServiceImpl.java
View file @
46a09ccb
...
...
@@ -148,51 +148,7 @@ public class KylinBuyNoticeServiceImpl extends ServiceImpl<KylinBuyNoticeMapper,
return
pageInfoTmp
;
}
/**
* 须知列表(返回VO格式,用于前端显示)
*/
public
PageInfo
<
BuyNoticeVo
>
noticeListVo
(
BuyNoticeSearchParam
param
)
{
PageInfo
<
BuyNoticeVo
>
pageInfoTmp
=
null
;
try
{
PageHelper
.
startPage
(
param
.
getPageNum
(),
param
.
getPageSize
());
Map
<
String
,
Object
>
paramMap
=
BeanUtil
.
convertBeanToMap
(
param
);
log
.
info
(
"原始参数对象: title={}, noticeType={}, status={}"
,
param
.
getTitle
(),
param
.
getNoticeType
(),
param
.
getStatus
());
log
.
info
(
"转换后的Map参数: {}"
,
paramMap
);
List
<
KylinBuyNotice
>
list
=
noticesMapper
.
searchNoticesList
(
paramMap
);
// 转换为VO并设置须知类型名称和格式化时间
List
<
BuyNoticeVo
>
voList
=
new
ArrayList
<>();
if
(
list
!=
null
)
{
for
(
KylinBuyNotice
item
:
list
)
{
BuyNoticeVo
vo
=
new
BuyNoticeVo
();
BeanUtils
.
copyProperties
(
item
,
vo
);
// 设置须知类型名称
if
(
item
.
getNoticeType
()
!=
null
)
{
vo
.
setNoticeTypeName
(
item
.
getNoticeType
()
==
1
?
"购票说明"
:
"观演须知"
);
}
// 格式化时间显示
if
(
item
.
getCreatedAt
()
!=
null
)
{
vo
.
setCreatedAt
(
DateUtil
.
Formatter
.
yyyyMMddHHmmss
.
format
(
item
.
getCreatedAt
()));
}
if
(
item
.
getUpdatedAt
()
!=
null
)
{
vo
.
setUpdatedAt
(
DateUtil
.
Formatter
.
yyyyMMddHHmmss
.
format
(
item
.
getUpdatedAt
()));
}
voList
.
add
(
vo
);
}
}
pageInfoTmp
=
new
PageInfo
<>(
voList
);
}
catch
(
Exception
e
)
{
log
.
error
(
"获取须知列表失败"
,
e
);
return
new
PageInfo
<>();
}
return
pageInfoTmp
;
}
/**
* 删除须知(逻辑删除)
...
...
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