|
|
@@ -180,6 +180,10 @@ public class ActivityService extends ServiceImpl<ActivityMapper, Activity> {
|
|
|
if (!"draft".equals(activity.getStatus())) {
|
|
|
return Result.error("仅草稿状态可发布");
|
|
|
}
|
|
|
+ // P1-2: 发布前校验维度代码,两路(直发/审核流)统一要求 dimensionCode 非空
|
|
|
+ if (activity.getDimensionCode() == null || activity.getDimensionCode().trim().isEmpty()) {
|
|
|
+ return Result.error("请先设置活动维度(dimensionCode)");
|
|
|
+ }
|
|
|
activity.setStatus("published");
|
|
|
activity.setUpdatedAt(new Date());
|
|
|
this.updateById(activity);
|