Przeglądaj źródła

商家端 人员配置 审核拒绝修改在线状态

qinxuyang 4 tygodni temu
rodzic
commit
e82f7d5b58

+ 2 - 0
alien-store/src/main/java/shop/alien/store/service/impl/StoreStaffAuditAsyncService.java

@@ -155,6 +155,7 @@ public class StoreStaffAuditAsyncService {
                 String reason = failureReasons.isEmpty() ? "审核未通过" : String.join("; ", failureReasons);
 //                String reason = "审核未通过";
                 updateWrapper.set(StoreStaffConfig::getStatus, "2")
+                             .set(StoreStaffConfig::getOnlineStatus, 2)
                              .set(StoreStaffConfig::getAuditTime, new Date())
                              .set(StoreStaffConfig::getRejectionReason, reason);
                 storeStaffConfigMapper.update(null, updateWrapper);
@@ -169,6 +170,7 @@ public class StoreStaffAuditAsyncService {
                 StoreStaffConfig auditUpdate = new StoreStaffConfig();
                 auditUpdate.setId(staffId);
                 auditUpdate.setStatus("2");
+                auditUpdate.setOnlineStatus(2);
                 auditUpdate.setAuditTime(new Date());
                 auditUpdate.setRejectionReason("审核系统异常,请稍后重试");
                 storeStaffConfigMapper.updateById(auditUpdate);