文档拆分模块、文档对比模块代码调整。
This commit is contained in:
-39
@@ -1,39 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace=".dao.LawsCustomCompareCellDao">
|
||||
|
||||
<resultMap type=".entity.LawsCustomCompareCell" id="LawsCustomCompareCellMap">
|
||||
<result property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="infoId" column="info_id" jdbcType="VARCHAR"/>
|
||||
<result property="standardId" column="standard_id" jdbcType="VARCHAR"/>
|
||||
<result property="featureId" column="feature_id" jdbcType="VARCHAR"/>
|
||||
<result property="compareItemId" column="compare_item_id" jdbcType="VARCHAR"/>
|
||||
<result property="content" column="content" jdbcType="VARCHAR"/>
|
||||
<result property="fileId" column="file_id" jdbcType="VARCHAR"/>
|
||||
<result property="createBy" column="create_by" jdbcType="VARCHAR"/>
|
||||
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="updateBy" column="update_by" jdbcType="VARCHAR"/>
|
||||
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="delFlag" column="del_flag" jdbcType="INTEGER"/>
|
||||
</resultMap>
|
||||
|
||||
<!-- 批量插入 -->
|
||||
<insert id="insertBatch" keyProperty="" useGeneratedKeys="true">
|
||||
insert into laws-sinotruk-demo.laws_custom_compare_cell(id, info_id, standard_id, feature_id, compare_item_id, content, file_id, create_by, create_time, update_by, update_time, del_flag)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.id}, #{entity.infoId}, #{entity.standardId}, #{entity.featureId}, #{entity.compareItemId}, #{entity.content}, #{entity.fileId}, #{entity.createBy}, #{entity.createTime}, #{entity.updateBy}, #{entity.updateTime}, #{entity.delFlag})
|
||||
</foreach>
|
||||
</insert>
|
||||
<!-- 批量插入或按主键更新 -->
|
||||
<insert id="insertOrUpdateBatch" keyProperty="" useGeneratedKeys="true">
|
||||
insert into laws-sinotruk-demo.laws_custom_compare_cell(id, info_id, standard_id, feature_id, compare_item_id, content, file_id, create_by, create_time, update_by, update_time, del_flag)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.id}, #{entity.infoId}, #{entity.standardId}, #{entity.featureId}, #{entity.compareItemId}, #{entity.content}, #{entity.fileId}, #{entity.createBy}, #{entity.createTime}, #{entity.updateBy}, #{entity.updateTime}, #{entity.delFlag})
|
||||
</foreach>
|
||||
on duplicate key update
|
||||
id = values(id) , info_id = values(info_id) , standard_id = values(standard_id) , feature_id = values(feature_id) , compare_item_id = values(compare_item_id) , content = values(content) , file_id = values(file_id) , create_by = values(create_by) , create_time = values(create_time) , update_by = values(update_by) , update_time = values(update_time) , del_flag = values(del_flag) </insert>
|
||||
|
||||
</mapper>
|
||||
|
||||
+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