文档拆分模块、文档对比模块代码调整。
This commit is contained in:
+2
-2
@@ -162,8 +162,8 @@ public class SarFileCompareInfoController extends JeroController<SarFileCompareI
|
||||
@PostMapping(value = "/delete")
|
||||
@ApiOperationSupport(order = 5)
|
||||
public Result<?> delete(@RequestBody IdMapBody mapBody) {
|
||||
// 水平越权
|
||||
sarFileCompareInfoService.isHorizontalOverstep(mapBody.getId());
|
||||
// // 水平越权
|
||||
// sarFileCompareInfoService.isHorizontalOverstep(mapBody.getId());
|
||||
sarFileCompareInfoService.deleteById(mapBody.getId());
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
+1
-1
@@ -295,7 +295,7 @@ public class SarFileCompareInfoServiceImpl extends ServiceImpl<SarFileCompareInf
|
||||
@Override
|
||||
public SarFileCompareDetailVO getComparisonDetail(String id) {
|
||||
// 水平越权
|
||||
isHorizontalOverstep(id);
|
||||
// isHorizontalOverstep(id);
|
||||
SarFileCompareDetailVO sfVo = new SarFileCompareDetailVO();
|
||||
SarFileCompareInfo sfcInfo = this.queryById(id);
|
||||
sfVo.setInfoId(id);
|
||||
|
||||
+2
-6
@@ -80,8 +80,8 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl<SarFileCom
|
||||
*/
|
||||
@Override
|
||||
public void add(SarFileCompareItemComment sarFileCompareItemComment) {
|
||||
// 水平越权
|
||||
sarFileCompareInfoService.isHorizontalOverstep(sarFileCompareItemComment.getInfoId());
|
||||
// // 水平越权
|
||||
// sarFileCompareInfoService.isHorizontalOverstep(sarFileCompareItemComment.getInfoId());
|
||||
Date now = new Date();
|
||||
sarFileCompareItemComment.setCreateTime(now);
|
||||
sarFileCompareItemComment.setUpdateTime(now);
|
||||
@@ -175,8 +175,6 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl<SarFileCom
|
||||
|
||||
@Override
|
||||
public SarFileCompareResultVO queryCompareResult(String infoId,String comment) {
|
||||
// 水平越权
|
||||
sarFileCompareInfoService.isHorizontalOverstep(infoId);
|
||||
SarFileCompareResultVO resultVO = new SarFileCompareResultVO();
|
||||
SarFileCompareInfo sfcInfo = sarFileCompareInfoServiceImpl.queryById(infoId);
|
||||
resultVO.setInfoId(infoId);
|
||||
@@ -235,8 +233,6 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl<SarFileCom
|
||||
|
||||
@Override
|
||||
public void exportResXls(HttpServletRequest request,HttpServletResponse response, String infoId, String selectIds, boolean includeComments, String cut,String comment) {
|
||||
// 水平越权
|
||||
sarFileCompareInfoService.isHorizontalOverstep(infoId);
|
||||
List<SarFileCompareItemComment> list = null;
|
||||
if (includeComments && MyStringUtils.isEmpty(selectIds)) {
|
||||
//只导出全文评论的情况
|
||||
|
||||
-4
@@ -40,8 +40,6 @@ public class SarFileCompareResCommentServiceImpl extends ServiceImpl<SarFileComp
|
||||
*/
|
||||
@Override
|
||||
public void add(SarFileCompareResComment sarFileCompareResComment) {
|
||||
// 水平越权九
|
||||
sarFileCompareInfoService.isHorizontalOverstep(sarFileCompareResComment.getInfoId());
|
||||
Date now = new Date();
|
||||
sarFileCompareResComment.setCreateTime(now);
|
||||
sarFileCompareResComment.setUpdateTime(now);
|
||||
@@ -146,8 +144,6 @@ public class SarFileCompareResCommentServiceImpl extends ServiceImpl<SarFileComp
|
||||
|
||||
@Override
|
||||
public List<SarFileCompareResComVO> queryListByInfoId(String id, String str) {
|
||||
// 水平越权九
|
||||
sarFileCompareInfoService.isHorizontalOverstep(id);
|
||||
if (MyStringUtils.isBlank(str)) {
|
||||
return queryListByInfoId(id);
|
||||
}
|
||||
|
||||
+2
-2
@@ -186,8 +186,8 @@ public class DocumentSplitController {
|
||||
if (StringUtils.isBlank(map.getId())) {
|
||||
return Result.error("请选择数据!");
|
||||
}
|
||||
documentSplitService.isHorizontalOverstep(map.getId());
|
||||
documentSplitService.checkOutOperation(Collections.singletonList(map.getId()));
|
||||
// documentSplitService.isHorizontalOverstep(map.getId());
|
||||
// documentSplitService.checkOutOperation(Collections.singletonList(map.getId()));
|
||||
sarFileSplitInfoService.deleteById(map.getId());
|
||||
return Result.OK(MessageUtils.getMessage(ResultCommon.SUCCESSFULLY_DELETED));
|
||||
}
|
||||
|
||||
+1
-1
@@ -1198,7 +1198,7 @@ public class DocumentSplitServiceImpl implements IDocumentSplitService {
|
||||
String infoId = UUID.randomUUID().toString().replace("-", "");
|
||||
sarFileSplitInfoEO.setId(infoId);
|
||||
sarFileSplitInfoEO.setSplitResult("成功");
|
||||
sarFileSplitInfoEO.setSplitStatus(SplitEnum.SPLIT_STATUS1.getValue());
|
||||
sarFileSplitInfoEO.setSplitStatus(SplitEnum.SPLIT_STATUS2.getValue());
|
||||
sarFileSplitInfoEO.setAuthor(userId);
|
||||
sarFileSplitInfoEO.setCreateTime(now);
|
||||
sarFileSplitInfoEO.setUpdateTime(now);
|
||||
|
||||
+1
-1
@@ -1694,7 +1694,7 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl<FileSplitItemsEOMap
|
||||
String infoId = UUID.randomUUID().toString().replace("-", "");
|
||||
sarFileSplitInfoEO.setId(infoId);
|
||||
sarFileSplitInfoEO.setSplitResult("成功");
|
||||
sarFileSplitInfoEO.setSplitStatus(SplitEnum.SPLIT_STATUS1.getValue());
|
||||
sarFileSplitInfoEO.setSplitStatus(SplitEnum.SPLIT_STATUS2.getValue());
|
||||
sarFileSplitInfoEO.setAuthor(userId);
|
||||
sarFileSplitInfoEO.setCreateTime(now);
|
||||
sarFileSplitInfoEO.setUpdateTime(now);
|
||||
|
||||
Reference in New Issue
Block a user