fix(文档拆分): 临时提交
This commit is contained in:
-1
@@ -197,7 +197,6 @@ public class DocumentSplitController {
|
||||
documentSplitService.isHorizontalOverstep(map.getId());
|
||||
documentSplitService.checkOutOperation(Collections.singletonList(map.getId()));
|
||||
sarFileSplitInfoService.deleteById(map.getId());
|
||||
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.SUCCESSFULLY_DELETED));
|
||||
}
|
||||
|
||||
|
||||
+6
-2
@@ -186,8 +186,8 @@ public class DocumentSplitServiceImpl implements IDocumentSplitService {
|
||||
ids = documentSplitInfos.stream().map(DocumentSplitInfo::getId).collect(Collectors.toList());
|
||||
}
|
||||
|
||||
// 判断操作权限
|
||||
checkOutOperation(ids);
|
||||
// 水平越权
|
||||
isHorizontalOverstep(String.join(",", ids));
|
||||
|
||||
updateWrapper.in(SarFileSplitInfoEO::getId, ids);
|
||||
SysUser sysUser = sysUserService.getById(documentSplitInfo.getCreateBy());
|
||||
@@ -1008,6 +1008,8 @@ public class DocumentSplitServiceImpl implements IDocumentSplitService {
|
||||
@Override
|
||||
public void publish(Map<String, Object> parameter) {
|
||||
String id = (String) parameter.get(ID);
|
||||
// 水平越权
|
||||
isHorizontalOverstep(id);
|
||||
// 文档拆分信息(旧)
|
||||
DocumentSplitInfo oldInfo = documentSplitMapper.queryDocumentSplitInfoById(id);
|
||||
// 判断是否发布过
|
||||
@@ -1105,6 +1107,8 @@ public class DocumentSplitServiceImpl implements IDocumentSplitService {
|
||||
@Override
|
||||
public void revocation(Map<String, Object> parameter) {
|
||||
String id = (String) parameter.get(ID);
|
||||
// 水平越权
|
||||
isHorizontalOverstep(id);
|
||||
// 文档拆分信息
|
||||
DocumentSplitInfo oldInfo = documentSplitMapper.queryDocumentSplitInfoById(id);
|
||||
// 修改发布状态
|
||||
|
||||
Reference in New Issue
Block a user