记得上下班打卡 | git大法好,push需谨慎

Commit 5fccac30 authored by 姜秀龙's avatar 姜秀龙

Merge branch 'refs/heads/250115-realNameAndinformation-optimization' into container-test

parents ac3f4934 ee46ef89
......@@ -38,6 +38,9 @@ public class KylinBuyNoticeServiceImpl extends ServiceImpl<KylinBuyNoticeMapper,
@Autowired
private KylinBuyNoticeMapper noticesMapper;
@Value("${liquidnet.aliyun.oss.imgUrl}")
private String imgUrl;
/**
* 创建须知
*/
......@@ -47,6 +50,9 @@ public class KylinBuyNoticeServiceImpl extends ServiceImpl<KylinBuyNoticeMapper,
LocalDateTime createdAt = LocalDateTime.now();
KylinBuyNotice kylinBuyNotice = param.getFields(buyNoticeId, createdAt);
if (kylinBuyNotice.getImgUrl().isEmpty()) {
kylinBuyNotice.setImgUrl(imgUrl + "notice/2026/01/26/43f5c64be2ba433d9e00aa62d40b8a60.png");
}
noticesMapper.insert(kylinBuyNotice);
return true;
......@@ -65,6 +71,9 @@ public class KylinBuyNoticeServiceImpl extends ServiceImpl<KylinBuyNoticeMapper,
LocalDateTime updatedAt = LocalDateTime.now();
KylinBuyNotice params = param.getFields(null, null);
if (params.getImgUrl().isEmpty()) {
params.setImgUrl(imgUrl + "notice/2026/01/26/43f5c64be2ba433d9e00aa62d40b8a60.png");
}
params.setUpdatedAt(updatedAt);
noticesMapper.update(params, new UpdateWrapper<KylinBuyNotice>().eq("buy_notice_id", buyNoticeId));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment