|
@@ -42,15 +42,13 @@ public class QaHistoryController extends BaseController {
|
|
/**
|
|
/**
|
|
* 查询问答历史记录列表
|
|
* 查询问答历史记录列表
|
|
*/
|
|
*/
|
|
- @SaCheckPermission("als:qaHistory:list")
|
|
|
|
@GetMapping("/list")
|
|
@GetMapping("/list")
|
|
public CommonResult<PageResult<QaHistoryVo>> list(QaHistoryBo qaHistoryBo) {
|
|
public CommonResult<PageResult<QaHistoryVo>> list(QaHistoryBo qaHistoryBo) {
|
|
return CommonResult.success(qaHistoryService.selectPage(qaHistoryBo));
|
|
return CommonResult.success(qaHistoryService.selectPage(qaHistoryBo));
|
|
}
|
|
}
|
|
/**
|
|
/**
|
|
- * 查询问答历史记录列表
|
|
|
|
|
|
+ * 查询问答历史记录列表不分页
|
|
*/
|
|
*/
|
|
- @SaCheckPermission("als:qaHistory:list")
|
|
|
|
@GetMapping("/list/all")
|
|
@GetMapping("/list/all")
|
|
public CommonResult<List<QaHistoryVo>> listAll(QaHistoryBo qaHistoryBo) {
|
|
public CommonResult<List<QaHistoryVo>> listAll(QaHistoryBo qaHistoryBo) {
|
|
return CommonResult.success(qaHistoryService.selectList(qaHistoryBo));
|
|
return CommonResult.success(qaHistoryService.selectList(qaHistoryBo));
|
|
@@ -59,7 +57,6 @@ public class QaHistoryController extends BaseController {
|
|
/**
|
|
/**
|
|
* 导出问答历史记录列表
|
|
* 导出问答历史记录列表
|
|
*/
|
|
*/
|
|
- @SaCheckPermission("als:qaHistory:export")
|
|
|
|
@Log(title = "问答历史记录", businessType = BusinessType.EXPORT)
|
|
@Log(title = "问答历史记录", businessType = BusinessType.EXPORT)
|
|
@PostMapping("/export")
|
|
@PostMapping("/export")
|
|
public CommonResult<Void> export(QaHistoryBo qaHistoryBo) {
|
|
public CommonResult<Void> export(QaHistoryBo qaHistoryBo) {
|
|
@@ -72,7 +69,6 @@ public class QaHistoryController extends BaseController {
|
|
return CommonResult.success();
|
|
return CommonResult.success();
|
|
}
|
|
}
|
|
|
|
|
|
- @SaCheckPermission("als:qaHistory:import")
|
|
|
|
@PostMapping("/importTemplate")
|
|
@PostMapping("/importTemplate")
|
|
public void importTemplate(HttpServletResponse response) {
|
|
public void importTemplate(HttpServletResponse response) {
|
|
ExcelUtil.exportExcel(new ArrayList<>(), "问答历史记录", QaHistoryImportVo.class, response);
|
|
ExcelUtil.exportExcel(new ArrayList<>(), "问答历史记录", QaHistoryImportVo.class, response);
|
|
@@ -81,8 +77,6 @@ public class QaHistoryController extends BaseController {
|
|
/**
|
|
/**
|
|
* 导入问答历史记录列表
|
|
* 导入问答历史记录列表
|
|
*/
|
|
*/
|
|
- @Log(title = "问答历史记录", businessType = BusinessType.IMPORT)
|
|
|
|
- @SaCheckPermission("als:qaHistory:import")
|
|
|
|
@PostMapping("/importData")
|
|
@PostMapping("/importData")
|
|
public CommonResult<Void> importData(MultipartFile file, boolean updateSupport) {
|
|
public CommonResult<Void> importData(MultipartFile file, boolean updateSupport) {
|
|
LoginUser loginUser = LoginHelper.getLoginUser();
|
|
LoginUser loginUser = LoginHelper.getLoginUser();
|
|
@@ -93,7 +87,6 @@ public class QaHistoryController extends BaseController {
|
|
/**
|
|
/**
|
|
* 获取问答历史记录详细信息
|
|
* 获取问答历史记录详细信息
|
|
*/
|
|
*/
|
|
- @SaCheckPermission("als:qaHistory:query")
|
|
|
|
@GetMapping(value = "/{id}")
|
|
@GetMapping(value = "/{id}")
|
|
public CommonResult<QaHistoryVo> getInfo(@PathVariable Long id) {
|
|
public CommonResult<QaHistoryVo> getInfo(@PathVariable Long id) {
|
|
return CommonResult.success(qaHistoryService.selectById(id));
|
|
return CommonResult.success(qaHistoryService.selectById(id));
|
|
@@ -102,8 +95,6 @@ public class QaHistoryController extends BaseController {
|
|
/**
|
|
/**
|
|
* 新增问答历史记录
|
|
* 新增问答历史记录
|
|
*/
|
|
*/
|
|
- @SaCheckPermission("als:qaHistory:add")
|
|
|
|
- @Log(title = "问答历史记录", businessType = BusinessType.INSERT)
|
|
|
|
@RepeatSubmit()
|
|
@RepeatSubmit()
|
|
@PostMapping
|
|
@PostMapping
|
|
public CommonResult<Void> add(@Validated @RequestBody QaHistoryBo qaHistoryBo) {
|
|
public CommonResult<Void> add(@Validated @RequestBody QaHistoryBo qaHistoryBo) {
|
|
@@ -117,8 +108,6 @@ public class QaHistoryController extends BaseController {
|
|
/**
|
|
/**
|
|
* 修改问答历史记录
|
|
* 修改问答历史记录
|
|
*/
|
|
*/
|
|
- @SaCheckPermission("als:qaHistory:edit")
|
|
|
|
- @Log(title = "问答历史记录", businessType = BusinessType.UPDATE)
|
|
|
|
@RepeatSubmit()
|
|
@RepeatSubmit()
|
|
@PutMapping
|
|
@PutMapping
|
|
public CommonResult<Void> edit(@Validated @RequestBody QaHistoryBo qaHistoryBo) {
|
|
public CommonResult<Void> edit(@Validated @RequestBody QaHistoryBo qaHistoryBo) {
|
|
@@ -132,8 +121,6 @@ public class QaHistoryController extends BaseController {
|
|
/**
|
|
/**
|
|
* 删除问答历史记录
|
|
* 删除问答历史记录
|
|
*/
|
|
*/
|
|
- @SaCheckPermission("als:qaHistory:remove")
|
|
|
|
- @Log(title = "问答历史记录", businessType = BusinessType.DELETE)
|
|
|
|
@DeleteMapping("/{ids}")
|
|
@DeleteMapping("/{ids}")
|
|
public CommonResult<Void> remove(@PathVariable Long[] ids) {
|
|
public CommonResult<Void> remove(@PathVariable Long[] ids) {
|
|
boolean deleted = qaHistoryService.deleteByIds(ids);
|
|
boolean deleted = qaHistoryService.deleteByIds(ids);
|
|
@@ -142,4 +129,13 @@ public class QaHistoryController extends BaseController {
|
|
}
|
|
}
|
|
return CommonResult.success();
|
|
return CommonResult.success();
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 查询问答历史记录列表不分页
|
|
|
|
+ */
|
|
|
|
+ @SaCheckPermission("als:qaHistory:list")
|
|
|
|
+ @GetMapping("/group")
|
|
|
|
+ public CommonResult<List<QaHistoryVo>> questionList() {
|
|
|
|
+ return CommonResult.success(qaHistoryService.groupQuestion());
|
|
|
|
+ }
|
|
}
|
|
}
|