记得上下班打卡 | 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
c8e94dc0
Commit
c8e94dc0
authored
Aug 06, 2026
by
wangyifan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
艺人专题:专题名称唯一性校验
parent
c304cebb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletion
+22
-1
IGoblinStoreMgtArtistService.java
...e/goblin/service/manage/IGoblinStoreMgtArtistService.java
+1
-1
GoblinStoreMgtArtistServiceImpl.java
.../service/impl/manage/GoblinStoreMgtArtistServiceImpl.java
+21
-0
No files found.
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/service/manage/IGoblinStoreMgtArtistService.java
View file @
c8e94dc0
...
@@ -59,7 +59,7 @@ public interface IGoblinStoreMgtArtistService {
...
@@ -59,7 +59,7 @@ public interface IGoblinStoreMgtArtistService {
ResponseDto
<
GoblinStoreMgtArtistTopicDetailVo
>
topicDetail
(
String
topicId
);
ResponseDto
<
GoblinStoreMgtArtistTopicDetailVo
>
topicDetail
(
String
topicId
);
/**
/**
* 创建艺人专题,校验关联艺人有本店有效授权、商品属本店且未删除
* 创建艺人专题,校验关联艺人有本店有效授权、
专题名称不重复、
商品属本店且未删除
*
*
* @return data = topicId
* @return data = topicId
*/
*/
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/manage/GoblinStoreMgtArtistServiceImpl.java
View file @
c8e94dc0
...
@@ -412,6 +412,15 @@ public class GoblinStoreMgtArtistServiceImpl implements IGoblinStoreMgtArtistSer
...
@@ -412,6 +412,15 @@ public class GoblinStoreMgtArtistServiceImpl implements IGoblinStoreMgtArtistSer
return
ResponseDto
.
failure
(
"模版类型不正确"
);
return
ResponseDto
.
failure
(
"模版类型不正确"
);
}
}
long
nameCount
=
mongoTemplate
.
count
(
new
Query
(
Criteria
.
where
(
"storeId"
).
is
(
storeId
)
.
and
(
"topicName"
).
is
(
params
.
getTopicName
())
.
and
(
"delFlg"
).
is
(
GoblinArtistConst
.
DEL_NO
)),
GoblinArtistTopicVo
.
class
.
getSimpleName
());
if
(
nameCount
>
0
)
{
return
ResponseDto
.
failure
(
"专题名称已存在"
);
}
LocalDateTime
now
=
LocalDateTime
.
now
();
LocalDateTime
now
=
LocalDateTime
.
now
();
String
topicId
=
IDGenerator
.
nextSnowId
();
String
topicId
=
IDGenerator
.
nextSnowId
();
...
@@ -472,6 +481,18 @@ public class GoblinStoreMgtArtistServiceImpl implements IGoblinStoreMgtArtistSer
...
@@ -472,6 +481,18 @@ public class GoblinStoreMgtArtistServiceImpl implements IGoblinStoreMgtArtistSer
return
ResponseDto
.
failure
(
"模版类型不正确"
);
return
ResponseDto
.
failure
(
"模版类型不正确"
);
}
}
if
(!
Objects
.
equals
(
params
.
getTopicName
(),
existing
.
getTopicName
()))
{
long
nameCount
=
mongoTemplate
.
count
(
new
Query
(
Criteria
.
where
(
"storeId"
).
is
(
storeId
)
.
and
(
"topicName"
).
is
(
params
.
getTopicName
())
.
and
(
"delFlg"
).
is
(
GoblinArtistConst
.
DEL_NO
)
.
and
(
"topicId"
).
ne
(
params
.
getTopicId
())),
GoblinArtistTopicVo
.
class
.
getSimpleName
());
if
(
nameCount
>
0
)
{
return
ResponseDto
.
failure
(
"专题名称已存在"
);
}
}
LocalDateTime
now
=
LocalDateTime
.
now
();
LocalDateTime
now
=
LocalDateTime
.
now
();
Map
<
String
,
GoblinGoods
>
goodsMap
=
loadGoodsMap
(
params
.
getGoods
());
Map
<
String
,
GoblinGoods
>
goodsMap
=
loadGoodsMap
(
params
.
getGoods
());
ResponseDto
<
Void
>
goodsCheck
=
checkGoodsBelong
(
storeId
,
goodsMap
,
params
.
getGoods
());
ResponseDto
<
Void
>
goodsCheck
=
checkGoodsBelong
(
storeId
,
goodsMap
,
params
.
getGoods
());
...
...
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