@@ -59,7 +59,7 @@ public class FaultStatisticsController extends BaseController {
}
/**
- * 查询故障统计列表
+ * 查询故障统计列表-全部故障
*/
@GetMapping("/exclusionListAll")
public CommonResult<List<FaultStatisticsVo>> exclusionListAll(FaultStatisticsBo faultStatisticsBo) {
@@ -67,7 +67,7 @@ public class FaultStatisticsController extends BaseController {
+ * 查询故障统计列表-全部数据
@SaCheckPermission("als:faultStatistics:list")
@PostMapping("/listAll")
@@ -36,6 +36,14 @@ public class QaHistoryController extends BaseController {
public CommonResult<PageResult<QaHistoryVo>> list(QaHistoryBo qaHistoryBo) {
return CommonResult.success(qaHistoryService.selectPage(qaHistoryBo));
+
+ /**
+ * 查询问答历史记录列表
+ */
+ @GetMapping("/listName")
+ public CommonResult<PageResult<QaHistoryVo>> listName(QaHistoryBo qaHistoryBo) {
+ return CommonResult.success(qaHistoryService.selectPage(qaHistoryBo));
+ }
* 查询问答历史记录列表不分页
@@ -42,6 +42,7 @@ public class QaHistoryServiceImpl extends BaseServiceImpl<QaHistoryMapper, QaHis
private QueryWrapper buildQueryWrapper(QaHistoryBo qaHistoryBo) {
QueryWrapper queryWrapper = super.buildBaseQueryWrapper();
+ queryWrapper.select(QA_HISTORY.ID, QA_HISTORY.USER_ID, QA_HISTORY.QUESTION, QA_HISTORY.GRAPH, QA_HISTORY.OSS_ID, QA_HISTORY.FILE_NAME, QA_HISTORY.REMARKS);
queryWrapper.and(QA_HISTORY.USER_ID.eq
(qaHistoryBo.getUserId()));
queryWrapper.and(QA_HISTORY.QUESTION.eq
@@ -281,7 +281,7 @@ public class CsvUtils {
// };
if (CollectionUtil.isEmpty(indexList)) {
- throw new BusinessException("{}:参数列匹配为空!", headerNames.toString());
+ throw new BusinessException("{0}:参数列匹配为空!", headerNames.toString());
// 去除第一行,保留后续数据
List<CsvRow> dataLines = rows.subList(1, rows.size());