记得上下班打卡 | 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
332e6c38
Commit
332e6c38
authored
Jan 27, 2026
by
姜秀龙
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'refs/heads/250115-realNameAndinformation-optimization' into container-test
parents
647f46d8
f9e0135e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
1 deletion
+48
-1
KylinNoticesAdminController.java
...ontroller/zhengzai/kylin/KylinNoticesAdminController.java
+1
-1
KylinBuyNoticeServiceImpl.java
...hengzai/kylin/service/impl/KylinBuyNoticeServiceImpl.java
+47
-0
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 @
332e6c38
...
@@ -99,7 +99,7 @@ public class KylinNoticesAdminController extends BaseController {
...
@@ -99,7 +99,7 @@ public class KylinNoticesAdminController extends BaseController {
@PostMapping
(
"list"
)
@PostMapping
(
"list"
)
@ResponseBody
@ResponseBody
public
TableDataInfo
noticeList
(
BuyNoticeSearchParam
param
)
{
public
TableDataInfo
noticeList
(
BuyNoticeSearchParam
param
)
{
PageInfo
<
KylinBuyNotice
>
result
=
kylinNoticesServiceImpl
.
noticeList
(
param
);
PageInfo
<
BuyNoticeVo
>
result
=
kylinNoticesServiceImpl
.
noticeListVo
(
param
);
return
getDataTable
(
result
.
getList
());
return
getDataTable
(
result
.
getList
());
}
}
...
...
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 @
332e6c38
...
@@ -20,6 +20,7 @@ import org.springframework.beans.factory.annotation.Value;
...
@@ -20,6 +20,7 @@ import org.springframework.beans.factory.annotation.Value;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -147,6 +148,52 @@ public class KylinBuyNoticeServiceImpl extends ServiceImpl<KylinBuyNoticeMapper,
...
@@ -147,6 +148,52 @@ public class KylinBuyNoticeServiceImpl extends ServiceImpl<KylinBuyNoticeMapper,
return
pageInfoTmp
;
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