|
@@ -9,7 +9,6 @@ import com.google.gson.reflect.TypeToken;
|
|
|
import com.qmth.boot.api.annotation.Aac;
|
|
|
import com.qmth.boot.api.constant.ApiConstant;
|
|
|
import com.qmth.boot.api.exception.ApiException;
|
|
|
-
|
|
|
import com.qmth.sop.business.bean.dto.*;
|
|
|
import com.qmth.sop.business.bean.params.LoginParam;
|
|
|
import com.qmth.sop.business.bean.result.*;
|
|
@@ -82,8 +81,8 @@ public class SysController {
|
|
|
@Resource
|
|
|
SysRoleService sysRoleService;
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
|
|
|
@Resource
|
|
|
TBServiceService tbServiceService;
|
|
@@ -484,25 +483,25 @@ public class SysController {
|
|
|
@ApiResponses({ @ApiResponse(code = 200, message = "返回信息", response = Object.class) })
|
|
|
public Result cacheClear(@ApiParam(value = "缓存值") @RequestParam(required = false) String endpoint,
|
|
|
@ApiParam(value = "缓存key") @RequestParam(required = false) String key) {
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
return ResultUtil.ok(true);
|
|
|
}
|
|
|
|
|
@@ -665,6 +664,16 @@ public class SysController {
|
|
|
@ApiParam(value = "服务单元名称") @RequestParam(required = false) String name) {
|
|
|
SysUser requestUser = (SysUser) ServletUtil.getRequestUser();
|
|
|
DataPermissionDto dpr = sysUserService.buildUserDataPermission(requestUser.getId());
|
|
|
+
|
|
|
+ List<SysRole> sysRoleList = sysUserRoleService.listRoleByUserId(requestUser.getId());
|
|
|
+ if (!CollectionUtils.isEmpty(sysRoleList)) {
|
|
|
+ List<SysRole> sysRoleTempList = sysRoleList.stream()
|
|
|
+ .filter(s -> Objects.nonNull(s.getName()) && s.getName().trim().contains("财务"))
|
|
|
+ .collect(Collectors.toList());
|
|
|
+ if (!CollectionUtils.isEmpty(sysRoleTempList)) {
|
|
|
+ dpr.setHasAdmin(true);
|
|
|
+ }
|
|
|
+ }
|
|
|
return ResultUtil.ok(tbServiceService.queryServiceUnit(type, statusList, name, dpr));
|
|
|
}
|
|
|
|