1.添加用户投诉岗位

2.管理员对企业和岗位下架
This commit is contained in:
chenshaohua
2026-07-09 18:32:38 +08:00
parent 9f3260ab8d
commit ee167ddc86
28 changed files with 770 additions and 7 deletions

View File

@@ -5,6 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
import com.ruoyi.cms.service.ICompanyService;
import com.ruoyi.cms.service.impl.AppUserServiceImpl;
import com.ruoyi.cms.util.StringUtil;
import com.ruoyi.common.constant.CacheConstants;
import com.ruoyi.common.constant.Constants;
import com.ruoyi.common.core.domain.entity.AppUser;
import com.ruoyi.common.core.domain.entity.Company;
@@ -43,6 +44,7 @@ import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Optional;
import java.util.concurrent.TimeUnit;
import java.util.stream.Stream;
/**
@@ -271,6 +273,8 @@ public class SsoService {
//用户存在生成本系统用户的token
String token = loginSysUser(sysUser, userJson.getString("userName"));
//缓存浪潮互联网token
redisCache.setCacheObject(CacheConstants.LC_HLW_TOKEN+appUser.getUserId(),lcToken, 6, TimeUnit.HOURS);
JSONObject backJson = new JSONObject();
backJson.put("token", token);
backJson.put("lcToken", lcToken);
@@ -355,6 +359,7 @@ public class SsoService {
//用户存在生成本系统用户的token
String token = loginSysUser(sysUser, userJson.getString("userName"));
redisCache.setCacheObject(CacheConstants.LC_HLW_TOKEN+appUserId,lcToken, 6, TimeUnit.HOURS);
JSONObject backJson = new JSONObject();
backJson.put("token", token);
backJson.put("lcToken", lcToken);