搜索
This commit is contained in:
+3
-2
@@ -166,8 +166,9 @@ public class SarFileCompareItemCommentController extends JeroController<SarFileC
|
|||||||
@AutoLog(value = "文档对比信息条款评论表-查询对比结果")
|
@AutoLog(value = "文档对比信息条款评论表-查询对比结果")
|
||||||
@ApiOperation(value = "文档对比信息条款评论表-查询对比结果", notes = "文档对比信息条款评论表-查询对比结果")
|
@ApiOperation(value = "文档对比信息条款评论表-查询对比结果", notes = "文档对比信息条款评论表-查询对比结果")
|
||||||
@GetMapping(value = "/queryCompareResult")
|
@GetMapping(value = "/queryCompareResult")
|
||||||
public Result<SarFileCompareResultVO> queryCompareResult(@RequestParam(name = "infoId", required = true) String infoId) {
|
public Result<SarFileCompareResultVO> queryCompareResult(@RequestParam(name = "infoId", required = true) String infoId,
|
||||||
SarFileCompareResultVO res = sarFileCompareItemCommentService.queryCompareResult(infoId);
|
@RequestParam(name = "comment", required = false) String comment) {
|
||||||
|
SarFileCompareResultVO res = sarFileCompareItemCommentService.queryCompareResult(infoId,comment);
|
||||||
return Result.OK(res);
|
return Result.OK(res);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -65,7 +65,7 @@ public interface ISarFileCompareItemCommentService extends IService<SarFileCompa
|
|||||||
*/
|
*/
|
||||||
List<SarFileCompareItemComment> queryList();
|
List<SarFileCompareItemComment> queryList();
|
||||||
|
|
||||||
SarFileCompareResultVO queryCompareResult(String infoId);
|
SarFileCompareResultVO queryCompareResult(String infoId,String comment);
|
||||||
|
|
||||||
void exportResXls(HttpServletRequest request,HttpServletResponse response, String infoId, String selectIds, boolean includeComments, String cut);
|
void exportResXls(HttpServletRequest request,HttpServletResponse response, String infoId, String selectIds, boolean includeComments, String cut);
|
||||||
|
|
||||||
|
|||||||
+7
-3
@@ -11,6 +11,7 @@ import com.jero.modules.compare.service.ISarFileCompareInfoService;
|
|||||||
import com.jero.modules.compare.service.ISarFileCompareItemCommentService;
|
import com.jero.modules.compare.service.ISarFileCompareItemCommentService;
|
||||||
import com.jero.modules.compare.service.ISarFileCompareItemService;
|
import com.jero.modules.compare.service.ISarFileCompareItemService;
|
||||||
import com.jero.modules.system.util.StringUtils;
|
import com.jero.modules.system.util.StringUtils;
|
||||||
|
import org.apache.commons.lang3.ObjectUtils;
|
||||||
import org.apache.poi.hssf.usermodel.HSSFClientAnchor;
|
import org.apache.poi.hssf.usermodel.HSSFClientAnchor;
|
||||||
import org.apache.poi.hssf.usermodel.HSSFPatriarch;
|
import org.apache.poi.hssf.usermodel.HSSFPatriarch;
|
||||||
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
||||||
@@ -134,7 +135,7 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl<SarFileCom
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public SarFileCompareResultVO queryCompareResult(String infoId) {
|
public SarFileCompareResultVO queryCompareResult(String infoId,String comment) {
|
||||||
SarFileCompareResultVO resultVO = new SarFileCompareResultVO();
|
SarFileCompareResultVO resultVO = new SarFileCompareResultVO();
|
||||||
SarFileCompareInfo sfcInfo = sarFileCompareInfoServiceImpl.queryById(infoId);
|
SarFileCompareInfo sfcInfo = sarFileCompareInfoServiceImpl.queryById(infoId);
|
||||||
resultVO.setInfoId(infoId);
|
resultVO.setInfoId(infoId);
|
||||||
@@ -144,7 +145,7 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl<SarFileCom
|
|||||||
resultVO.setFileNameRight(sfcInfo.getFileNameRight());
|
resultVO.setFileNameRight(sfcInfo.getFileNameRight());
|
||||||
resultVO.setComments(sfcInfo.getComments());
|
resultVO.setComments(sfcInfo.getComments());
|
||||||
|
|
||||||
List<SarFileCompareItemComment> list = queryListByInfoId(infoId);
|
List<SarFileCompareItemComment> list = queryListByInfoId(infoId,comment);
|
||||||
Map<String, SarFileCompareItem> sfcItemMap = SarFileCompareItemServiceImpl.queryMapByInfoId(infoId);
|
Map<String, SarFileCompareItem> sfcItemMap = SarFileCompareItemServiceImpl.queryMapByInfoId(infoId);
|
||||||
for (SarFileCompareItemComment sfcItemCom : list) {
|
for (SarFileCompareItemComment sfcItemCom : list) {
|
||||||
SarFileCompareItemComVO itemComVO = new SarFileCompareItemComVO();
|
SarFileCompareItemComVO itemComVO = new SarFileCompareItemComVO();
|
||||||
@@ -174,8 +175,11 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl<SarFileCom
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<SarFileCompareItemComment> queryListByInfoId(String infoId) {
|
public List<SarFileCompareItemComment> queryListByInfoId(String infoId,String comment) {
|
||||||
LambdaQueryWrapper<SarFileCompareItemComment> queryWrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<SarFileCompareItemComment> queryWrapper = new LambdaQueryWrapper<>();
|
||||||
|
if (ObjectUtils.isNotEmpty(comment)) {
|
||||||
|
queryWrapper.eq(SarFileCompareItemComment::getComment, comment);
|
||||||
|
}
|
||||||
queryWrapper.eq(SarFileCompareItemComment::getInfoId, infoId);
|
queryWrapper.eq(SarFileCompareItemComment::getInfoId, infoId);
|
||||||
queryWrapper.orderBy(true, true, SarFileCompareItemComment::getCreateTime);
|
queryWrapper.orderBy(true, true, SarFileCompareItemComment::getCreateTime);
|
||||||
List<SarFileCompareItemComment> list = this.list(queryWrapper);
|
List<SarFileCompareItemComment> list = this.list(queryWrapper);
|
||||||
|
|||||||
Reference in New Issue
Block a user