记得上下班打卡 | 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
ee46ef89
Commit
ee46ef89
authored
Jan 26, 2026
by
姜秀龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
默认图
parent
7b91708b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
KylinBuyNoticeServiceImpl.java
...hengzai/kylin/service/impl/KylinBuyNoticeServiceImpl.java
+9
-0
No files found.
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 @
ee46ef89
...
@@ -38,6 +38,9 @@ public class KylinBuyNoticeServiceImpl extends ServiceImpl<KylinBuyNoticeMapper,
...
@@ -38,6 +38,9 @@ public class KylinBuyNoticeServiceImpl extends ServiceImpl<KylinBuyNoticeMapper,
@Autowired
@Autowired
private
KylinBuyNoticeMapper
noticesMapper
;
private
KylinBuyNoticeMapper
noticesMapper
;
@Value
(
"${liquidnet.aliyun.oss.imgUrl}"
)
private
String
imgUrl
;
/**
/**
* 创建须知
* 创建须知
*/
*/
...
@@ -47,6 +50,9 @@ public class KylinBuyNoticeServiceImpl extends ServiceImpl<KylinBuyNoticeMapper,
...
@@ -47,6 +50,9 @@ public class KylinBuyNoticeServiceImpl extends ServiceImpl<KylinBuyNoticeMapper,
LocalDateTime
createdAt
=
LocalDateTime
.
now
();
LocalDateTime
createdAt
=
LocalDateTime
.
now
();
KylinBuyNotice
kylinBuyNotice
=
param
.
getFields
(
buyNoticeId
,
createdAt
);
KylinBuyNotice
kylinBuyNotice
=
param
.
getFields
(
buyNoticeId
,
createdAt
);
if
(
kylinBuyNotice
.
getImgUrl
().
isEmpty
())
{
kylinBuyNotice
.
setImgUrl
(
imgUrl
+
"notice/2026/01/26/43f5c64be2ba433d9e00aa62d40b8a60.png"
);
}
noticesMapper
.
insert
(
kylinBuyNotice
);
noticesMapper
.
insert
(
kylinBuyNotice
);
return
true
;
return
true
;
...
@@ -65,6 +71,9 @@ public class KylinBuyNoticeServiceImpl extends ServiceImpl<KylinBuyNoticeMapper,
...
@@ -65,6 +71,9 @@ public class KylinBuyNoticeServiceImpl extends ServiceImpl<KylinBuyNoticeMapper,
LocalDateTime
updatedAt
=
LocalDateTime
.
now
();
LocalDateTime
updatedAt
=
LocalDateTime
.
now
();
KylinBuyNotice
params
=
param
.
getFields
(
null
,
null
);
KylinBuyNotice
params
=
param
.
getFields
(
null
,
null
);
if
(
params
.
getImgUrl
().
isEmpty
())
{
params
.
setImgUrl
(
imgUrl
+
"notice/2026/01/26/43f5c64be2ba433d9e00aa62d40b8a60.png"
);
}
params
.
setUpdatedAt
(
updatedAt
);
params
.
setUpdatedAt
(
updatedAt
);
noticesMapper
.
update
(
params
,
new
UpdateWrapper
<
KylinBuyNotice
>().
eq
(
"buy_notice_id"
,
buyNoticeId
));
noticesMapper
.
update
(
params
,
new
UpdateWrapper
<
KylinBuyNotice
>().
eq
(
"buy_notice_id"
,
buyNoticeId
));
...
...
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