From 4bda5f801344f832446e61e2a320d56cc0e2b7ff Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期五, 19 七月 2024 09:22:23 +0800
Subject: [PATCH] 代码提交

---
 smartor/src/main/java/com/smartor/domain/ServiceSubtaskAnswer.java                             |    2 +-
 ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceSubtaskAnswerController.java |   11 +++++++++++
 smartor/src/main/resources/mapper/smartor/ServiceSubtaskAnswerMapper.xml                       |   12 ++++++------
 3 files changed, 18 insertions(+), 7 deletions(-)

diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceSubtaskAnswerController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceSubtaskAnswerController.java
index 75bd6ab..f1b5122 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceSubtaskAnswerController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceSubtaskAnswerController.java
@@ -8,6 +8,9 @@
 import com.ruoyi.common.utils.poi.ExcelUtil;
 import com.smartor.domain.ServiceSubtaskAnswer;
 import com.smartor.service.IServiceSubtaskAnswerService;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.web.bind.annotation.*;
@@ -21,6 +24,8 @@
  * @author ruoyi
  * @date 2024-07-18
  */
+@Slf4j
+@Api(description = "浠诲姟闂嵎闂閫夐」")
 @RestController
 @RequestMapping("/smartor/subtaskAnswer")
 public class ServiceSubtaskAnswerController extends BaseController {
@@ -31,6 +36,7 @@
      * 鏌ヨ浠诲姟闂嵎闂閫夐」鍒楄〃
      */
     @PreAuthorize("@ss.hasPermi('system:answer:list')")
+    @ApiOperation("鏌ヨ浠诲姟闂嵎闂閫夐」鍒楄〃")
     @GetMapping("/list")
     public TableDataInfo list(ServiceSubtaskAnswer serviceSubtaskAnswer) {
         startPage();
@@ -43,6 +49,7 @@
      */
     @PreAuthorize("@ss.hasPermi('system:answer:export')")
     @Log(title = "浠诲姟闂嵎闂閫夐」", businessType = BusinessType.EXPORT)
+    @ApiOperation("浠诲姟闂嵎闂閫夐」")
     @PostMapping("/export")
     public void export(HttpServletResponse response, ServiceSubtaskAnswer serviceSubtaskAnswer) {
         List<ServiceSubtaskAnswer> list = serviceSubtaskAnswerService.selectServiceSubtaskAnswerList(serviceSubtaskAnswer);
@@ -55,6 +62,7 @@
      */
     @PreAuthorize("@ss.hasPermi('system:answer:query')")
     @GetMapping(value = "/getInfo/{id}")
+    @ApiOperation("鑾峰彇浠诲姟闂嵎闂閫夐」璇︾粏淇℃伅")
     public AjaxResult getInfo(@PathVariable("id") Long id) {
         return success(serviceSubtaskAnswerService.selectServiceSubtaskAnswerById(id));
     }
@@ -64,6 +72,7 @@
      */
     @PreAuthorize("@ss.hasPermi('system:answer:add')")
     @Log(title = "浠诲姟闂嵎闂閫夐」", businessType = BusinessType.INSERT)
+    @ApiOperation("鏂板浠诲姟闂嵎闂閫夐」")
     @PostMapping("/add")
     public AjaxResult add(@RequestBody ServiceSubtaskAnswer serviceSubtaskAnswer) {
         return toAjax(serviceSubtaskAnswerService.insertServiceSubtaskAnswer(serviceSubtaskAnswer));
@@ -74,6 +83,7 @@
      */
     @PreAuthorize("@ss.hasPermi('system:answer:edit')")
     @Log(title = "浠诲姟闂嵎闂閫夐」", businessType = BusinessType.UPDATE)
+    @ApiOperation("淇敼浠诲姟闂嵎闂閫夐」")
     @PostMapping("/edit")
     public AjaxResult edit(@RequestBody ServiceSubtaskAnswer serviceSubtaskAnswer) {
         return toAjax(serviceSubtaskAnswerService.updateServiceSubtaskAnswer(serviceSubtaskAnswer));
@@ -84,6 +94,7 @@
      */
     @PreAuthorize("@ss.hasPermi('system:answer:remove')")
     @Log(title = "浠诲姟闂嵎闂閫夐」", businessType = BusinessType.DELETE)
+    @ApiOperation("鍒犻櫎浠诲姟闂嵎闂閫夐」")
     @DeleteMapping("/remove/{ids}")
     public AjaxResult remove(@PathVariable Long[] ids) {
         return toAjax(serviceSubtaskAnswerService.deleteServiceSubtaskAnswerByIds(ids));
diff --git a/smartor/src/main/java/com/smartor/domain/ServiceSubtaskAnswer.java b/smartor/src/main/java/com/smartor/domain/ServiceSubtaskAnswer.java
index b5db9c8..6b03a4a 100644
--- a/smartor/src/main/java/com/smartor/domain/ServiceSubtaskAnswer.java
+++ b/smartor/src/main/java/com/smartor/domain/ServiceSubtaskAnswer.java
@@ -38,7 +38,7 @@
      * 瀛愪换鍔D
      */
     @ApiModelProperty(value = "瀛愪换鍔D")
-    private Long singleid;
+    private Long patId;
 
     /**
      * 棰樼洰ID
diff --git a/smartor/src/main/resources/mapper/smartor/ServiceSubtaskAnswerMapper.xml b/smartor/src/main/resources/mapper/smartor/ServiceSubtaskAnswerMapper.xml
index 017a9f2..a10ef14 100644
--- a/smartor/src/main/resources/mapper/smartor/ServiceSubtaskAnswerMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/ServiceSubtaskAnswerMapper.xml
@@ -7,7 +7,7 @@
     <resultMap type="com.smartor.domain.ServiceSubtaskAnswer" id="ServiceSubtaskAnswerResult">
         <result property="id" column="id"/>
         <result property="taskid" column="taskid"/>
-        <result property="singleid" column="singleid"/>
+        <result property="patId" column="pat_id"/>
         <result property="scriptid" column="scriptid"/>
         <result property="scriptType" column="script_type"/>
         <result property="score" column="score"/>
@@ -29,7 +29,7 @@
     <sql id="selectServiceSubtaskAnswerVo">
         select id,
                taskid,
-               singleid,
+               pat_id,
                scriptid,
                script_type,
                score,
@@ -54,7 +54,7 @@
         <include refid="selectServiceSubtaskAnswerVo"/>
         <where>
             <if test="taskid != null ">and taskid = #{taskid}</if>
-            <if test="singleid != null ">and singleid = #{singleid}</if>
+            <if test="patId != null ">and pat_id = #{patId}</if>
             <if test="scriptid != null ">and scriptid = #{scriptid}</if>
             <if test="scriptType != null ">and script_type = #{scriptType}</if>
             <if test="score != null  and score != ''">and score = #{score}</if>
@@ -79,7 +79,7 @@
         insert into service_subtask_answer
         <trim prefix="(" suffix=")" suffixOverrides=",">
             <if test="taskid != null">taskid,</if>
-            <if test="singleid != null">singleid,</if>
+            <if test="patId != null">pat_id,</if>
             <if test="scriptid != null">scriptid,</if>
             <if test="scriptType != null">script_type,</if>
             <if test="score != null">score,</if>
@@ -99,7 +99,7 @@
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="taskid != null">#{taskid},</if>
-            <if test="singleid != null">#{singleid},</if>
+            <if test="patId != null">#{patId},</if>
             <if test="scriptid != null">#{scriptid},</if>
             <if test="scriptType != null">#{scriptType},</if>
             <if test="score != null">#{score},</if>
@@ -123,7 +123,7 @@
         update service_subtask_answer
         <trim prefix="SET" suffixOverrides=",">
             <if test="taskid != null">taskid = #{taskid},</if>
-            <if test="singleid != null">singleid = #{singleid},</if>
+            <if test="patId != null">pat_id = #{patId},</if>
             <if test="scriptid != null">scriptid = #{scriptid},</if>
             <if test="scriptType != null">script_type = #{scriptType},</if>
             <if test="score != null">score = #{score},</if>

--
Gitblit v1.9.3