|
@@ -214,6 +214,10 @@ public class BarPerformanceServiceImpl implements BarPerformanceService {
|
|
|
// AI审核通过,设置审核状态为1(审核通过),清除拒绝原因
|
|
// AI审核通过,设置审核状态为1(审核通过),清除拒绝原因
|
|
|
barPerformance.setReviewStatus(1); // 审核通过
|
|
barPerformance.setReviewStatus(1); // 审核通过
|
|
|
barPerformance.setRejectReason(null); // 清除拒绝原因
|
|
barPerformance.setRejectReason(null); // 清除拒绝原因
|
|
|
|
|
+ // AI审核通过后,如果上线状态未设置,则设置为上线(1)
|
|
|
|
|
+ if (barPerformance.getOnlineStatus() == null) {
|
|
|
|
|
+ barPerformance.setOnlineStatus(1); // 上线
|
|
|
|
|
+ }
|
|
|
log.info("酒吧演出内容审核通过");
|
|
log.info("酒吧演出内容审核通过");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -232,14 +236,21 @@ public class BarPerformanceServiceImpl implements BarPerformanceService {
|
|
|
barPerformance.setStatus(0);
|
|
barPerformance.setStatus(0);
|
|
|
}
|
|
}
|
|
|
// 审核状态已在AI审核结果后设置(1-审核通过 或 2-审核拒绝)
|
|
// 审核状态已在AI审核结果后设置(1-审核通过 或 2-审核拒绝)
|
|
|
- // 如果AI审核通过,reviewStatus已设置为1;如果AI审核失败,reviewStatus已设置为2
|
|
|
|
|
|
|
+ // 如果AI审核通过,reviewStatus已设置为1,并且onlineStatus已设置为1(上线)
|
|
|
|
|
+ // 如果AI审核失败,reviewStatus已设置为2,onlineStatus保持为null或0(下线)
|
|
|
// 如果为null(理论上不应该出现,因为已经执行了AI审核),设置为0(待审核)
|
|
// 如果为null(理论上不应该出现,因为已经执行了AI审核),设置为0(待审核)
|
|
|
if (barPerformance.getReviewStatus() == null) {
|
|
if (barPerformance.getReviewStatus() == null) {
|
|
|
barPerformance.setReviewStatus(0);
|
|
barPerformance.setReviewStatus(0);
|
|
|
}
|
|
}
|
|
|
- // 设置默认上线状态为下线(0),AI审核通过后仍然保持下线状态
|
|
|
|
|
|
|
+ // 如果上线状态未设置,则根据审核状态设置:
|
|
|
|
|
+ // - 审核通过(reviewStatus=1):设置为上线(1)
|
|
|
|
|
+ // - 其他情况:设置为下线(0)
|
|
|
if (barPerformance.getOnlineStatus() == null) {
|
|
if (barPerformance.getOnlineStatus() == null) {
|
|
|
- barPerformance.setOnlineStatus(0);
|
|
|
|
|
|
|
+ if (barPerformance.getReviewStatus() != null && barPerformance.getReviewStatus() == 1) {
|
|
|
|
|
+ barPerformance.setOnlineStatus(1); // 审核通过,设置为上线
|
|
|
|
|
+ } else {
|
|
|
|
|
+ barPerformance.setOnlineStatus(0); // 审核未通过或其他情况,设置为下线
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
// 设置默认隐藏状态为不隐藏(0)
|
|
// 设置默认隐藏状态为不隐藏(0)
|
|
|
if (barPerformance.getHidden() == null) {
|
|
if (barPerformance.getHidden() == null) {
|
|
@@ -273,14 +284,21 @@ public class BarPerformanceServiceImpl implements BarPerformanceService {
|
|
|
barPerformance.setStatus(0);
|
|
barPerformance.setStatus(0);
|
|
|
}
|
|
}
|
|
|
// 审核状态已在AI审核结果后设置(1-审核通过 或 2-审核拒绝)
|
|
// 审核状态已在AI审核结果后设置(1-审核通过 或 2-审核拒绝)
|
|
|
- // 如果AI审核通过,reviewStatus已设置为1;如果AI审核失败,reviewStatus已设置为2
|
|
|
|
|
|
|
+ // 如果AI审核通过,reviewStatus已设置为1,并且onlineStatus已设置为1(上线)
|
|
|
|
|
+ // 如果AI审核失败,reviewStatus已设置为2,onlineStatus保持为null或0(下线)
|
|
|
// 如果为null(理论上不应该出现,因为已经执行了AI审核),设置为0(待审核)
|
|
// 如果为null(理论上不应该出现,因为已经执行了AI审核),设置为0(待审核)
|
|
|
if (barPerformance.getReviewStatus() == null) {
|
|
if (barPerformance.getReviewStatus() == null) {
|
|
|
barPerformance.setReviewStatus(0);
|
|
barPerformance.setReviewStatus(0);
|
|
|
}
|
|
}
|
|
|
- // 设置默认上线状态为下线(0),AI审核通过后仍然保持下线状态
|
|
|
|
|
|
|
+ // 如果上线状态未设置,则根据审核状态设置:
|
|
|
|
|
+ // - 审核通过(reviewStatus=1):设置为上线(1)
|
|
|
|
|
+ // - 其他情况:设置为下线(0)
|
|
|
if (barPerformance.getOnlineStatus() == null) {
|
|
if (barPerformance.getOnlineStatus() == null) {
|
|
|
- barPerformance.setOnlineStatus(0);
|
|
|
|
|
|
|
+ if (barPerformance.getReviewStatus() != null && barPerformance.getReviewStatus() == 1) {
|
|
|
|
|
+ barPerformance.setOnlineStatus(1); // 审核通过,设置为上线
|
|
|
|
|
+ } else {
|
|
|
|
|
+ barPerformance.setOnlineStatus(0); // 审核未通过或其他情况,设置为下线
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
if (barPerformance.getHidden() == null) {
|
|
if (barPerformance.getHidden() == null) {
|
|
|
barPerformance.setHidden(0);
|
|
barPerformance.setHidden(0);
|