|
@@ -92,6 +92,12 @@ public class PostCollectionsSystemController extends BaseController
|
|
|
if (postCollectionsSystem.getEndTime().before(DateUtils.getNowDate())){
|
|
|
return warn("请设置正确的套系时间");
|
|
|
}
|
|
|
+
|
|
|
+ //判断套系名称是否重复
|
|
|
+ if (postCollectionsSystemService.selectPostCollectionsSystemByName(postCollectionsSystem) > 0){
|
|
|
+ return warn("该套系名称已存在");
|
|
|
+ }
|
|
|
+
|
|
|
return toAjax(postCollectionsSystemService.insertPostCollectionsSystem(postCollectionsSystem));
|
|
|
}
|
|
|
|