|
|
@@ -12,6 +12,7 @@ import shop.alien.store.util.ai.AiContentModerationUtil;
|
|
|
import shop.alien.store.util.ai.AiVideoModerationUtil;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
+import java.util.Date;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
|
@@ -130,6 +131,8 @@ public class StoreStaffAuditAsyncService {
|
|
|
if (allPassed) {
|
|
|
// AI审核通过,状态设置为"审核通过"(1),明确清空拒绝原因
|
|
|
updateWrapper.set(StoreStaffConfig::getStatus, "1")
|
|
|
+ .set(StoreStaffConfig::getAuditTime, new Date())
|
|
|
+ .set(StoreStaffConfig::getOnlineStatus,0)
|
|
|
.set(StoreStaffConfig::getRejectionReason, null);
|
|
|
storeStaffConfigMapper.update(null, updateWrapper);
|
|
|
log.info("人员AI审核通过,状态设置为审核通过,已清空拒绝原因:staffId={}", staffId);
|
|
|
@@ -151,6 +154,7 @@ public class StoreStaffAuditAsyncService {
|
|
|
|
|
|
String reason = failureReasons.isEmpty() ? "审核未通过" : String.join("; ", failureReasons);
|
|
|
updateWrapper.set(StoreStaffConfig::getStatus, "2")
|
|
|
+ .set(StoreStaffConfig::getAuditTime, new Date())
|
|
|
.set(StoreStaffConfig::getRejectionReason, reason);
|
|
|
storeStaffConfigMapper.update(null, updateWrapper);
|
|
|
log.warn("人员AI审核失败,状态设置为审核拒绝:staffId={}, reason={}", staffId, reason);
|
|
|
@@ -164,6 +168,7 @@ public class StoreStaffAuditAsyncService {
|
|
|
StoreStaffConfig auditUpdate = new StoreStaffConfig();
|
|
|
auditUpdate.setId(staffId);
|
|
|
auditUpdate.setStatus("2");
|
|
|
+ auditUpdate.setAuditTime(new Date());
|
|
|
auditUpdate.setRejectionReason("审核系统异常,请稍后重试");
|
|
|
storeStaffConfigMapper.updateById(auditUpdate);
|
|
|
} catch (Exception updateException) {
|