审计内容3-重大经济决策初版
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
package com.gxwebsoft.ai.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.gxwebsoft.common.core.web.ApiResult;
|
||||
import com.gxwebsoft.common.core.web.BaseController;
|
||||
import com.gxwebsoft.common.system.entity.User;
|
||||
import com.gxwebsoft.ai.service.AuditContentService3;
|
||||
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* 审计内容3控制器 - 重大经济决策调查表
|
||||
*/
|
||||
@Tag(name = "审计内容3-重大经济决策")
|
||||
@RestController
|
||||
@RequestMapping("/api/ai/auditContent3")
|
||||
public class AuditContentController3 extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private AuditContentService3 auditContentService3;
|
||||
|
||||
/**
|
||||
* 生成重大经济决策调查表数据
|
||||
*/
|
||||
@Operation(summary = "生成重大经济决策调查表")
|
||||
@PostMapping("/generateDecisionTable")
|
||||
public ApiResult<?> generateDecisionTable(
|
||||
@RequestParam(value = "kbIds", required = false) String kbIds,
|
||||
@RequestParam(value = "libraryIds", required = false) String libraryIds,
|
||||
@RequestParam(value = "projectLibrary", required = false) String projectLibrary) {
|
||||
|
||||
final User loginUser = getLoginUser();
|
||||
try {
|
||||
// 生成重大经济决策调查表数据
|
||||
JSONObject result = auditContentService3.generateDecisionTableData(kbIds, libraryIds, projectLibrary, loginUser.getUsername());
|
||||
|
||||
return success(result);
|
||||
} catch (Exception e) {
|
||||
return fail("生成重大经济决策调查表失败: " + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user