fix:78587
This commit is contained in:
@@ -68,7 +68,7 @@ public class ResultCommon {
|
||||
|
||||
public static final String ROOT_NODE_CANNOT_BE_EDITED = "root.node.cannot.be.edited"; // 根节点不能编辑
|
||||
|
||||
public static final String HORIZONTAL_TRANSGRESSION = "horizontal.transgression"; // 水平越权
|
||||
public static final String HORIZONTAL_TRANSGRESSION = "horizontal.transgression"; // 越权
|
||||
|
||||
public static final String SELECT_LEVEL_TWO_TREE_NODE = "select.level.two.tree.node"; // 请先选择二级及以下体系
|
||||
|
||||
|
||||
+11
@@ -1,5 +1,6 @@
|
||||
package com.jero.modules.personal.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
||||
import com.github.xiaoymin.knife4j.annotations.ApiSupport;
|
||||
@@ -295,6 +296,16 @@ public class LawsStandardSharingController extends JeroController<LawsStandardSh
|
||||
if (!map.containsKey("ids") || StringUtils.isEmpty(map.get("ids"))) {
|
||||
throw new JeroBootException(ResultCommon.PLEASE_SELECT_DATA);
|
||||
}
|
||||
List<String> listIds = Arrays.asList(map.get("ids").split(","));
|
||||
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||
LambdaQueryWrapper<LawsStandardSharing> queryLawsStandardSharing = new LambdaQueryWrapper<>();
|
||||
queryLawsStandardSharing.in(LawsStandardSharing::getId,listIds);
|
||||
queryLawsStandardSharing.ne(LawsStandardSharing::getStandardId,sysUser.getId());
|
||||
long l = lawsStandardSharingService.count(queryLawsStandardSharing);
|
||||
if(l > 0){
|
||||
throw new JeroBootException(ResultCommon.HORIZONTAL_TRANSGRESSION);
|
||||
}
|
||||
|
||||
this.lawsStandardSharingService.deleteByIds(Arrays.asList(map.get("ids").split(",")));
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.OK));
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ cannot.close=Expired data that is not pending rectification cannot be closed
|
||||
no.corresponding.record.found=\u672A\u627E\u5230\u5BF9\u5E94\u8BB0\u5F55
|
||||
parameters.cannot.be.null=\u53C2\u6570\u4E0D\u80FD\u4E3A\u7A7A
|
||||
root.node.cannot.be.edited=\u6839\u8282\u70B9\u65E0\u6CD5\u7F16\u8F91
|
||||
horizontal.transgression=\u6C34\u5E73\u8D8A\u6743
|
||||
horizontal.transgression=\u8D8A\u6743
|
||||
select.level.two.tree.node=\u8BF7\u5148\u9009\u62E9\u4E8C\u7EA7\u53CA\u4EE5\u4E0B\u4F53\u7CFB
|
||||
export.error=\u5BFC\u51FA\u9519\u8BEF
|
||||
import.error=\u5BFC\u5165\u9519\u8BEF
|
||||
|
||||
@@ -43,7 +43,7 @@ cannot.close=Expired data that is not pending rectification cannot be closed
|
||||
no.corresponding.record.found=No corresponding record found
|
||||
parameters.cannot.be.null=Parameters cannot be null
|
||||
root.node.cannot.be.edited=Root node cannot be edited
|
||||
horizontal.transgression=Horizontal overstepping of authority
|
||||
horizontal.transgression=overstepping of authority
|
||||
select.level.two.tree.node=Please select a level 2 or lower system first
|
||||
export.error=Export error
|
||||
import.error=Import error
|
||||
|
||||
@@ -42,7 +42,7 @@ cannot.close=\u4E0D\u662F\u5F85\u6574\u6539\u5DF2\u8FC7\u671F\u7684\u6570\u636E\
|
||||
no.corresponding.record.found=\u672A\u627E\u5230\u5BF9\u5E94\u8BB0\u5F55
|
||||
parameters.cannot.be.null=\u53C2\u6570\u4E0D\u80FD\u4E3A\u7A7A
|
||||
root.node.cannot.be.edited=\u6839\u8282\u70B9\u65E0\u6CD5\u7F16\u8F91
|
||||
horizontal.transgression=\u6C34\u5E73\u8D8A\u6743
|
||||
horizontal.transgression=\u8D8A\u6743
|
||||
select.level.two.tree.node=\u8BF7\u5148\u9009\u62E9\u4E8C\u7EA7\u53CA\u4EE5\u4E0B\u4F53\u7CFB`
|
||||
export.zip.archive.error=\u5BFC\u51FA\u9519\u8BEF
|
||||
import.zip.archive.error=\u5BFC\u5165\u9519\u8BEF
|
||||
|
||||
Reference in New Issue
Block a user