Sfoglia il codice sorgente

问答新增是否注明开关和注明数据

wjj 1 settimana fa
parent
commit
e8cc234304

+ 8 - 0
fs-service/src/main/java/com/fs/his/vo/AnswerVO.java

@@ -17,6 +17,7 @@ public class AnswerVO implements Serializable {
 
     //已选择数据(多选)
     private List<Integer> value;
+    private List<Remarks> remarksList;
 
     //排序
     private Integer sort;
@@ -30,5 +31,12 @@ public class AnswerVO implements Serializable {
     public static class Options implements Serializable{
         private String name;
         private Integer value;
+        private boolean open;
+    }
+
+    @Data
+    public static class Remarks implements Serializable{
+        private String text;
+        private Integer value;
     }
 }

+ 1 - 1
fs-service/src/main/resources/mapper/his/FsQuestionAndAnswerMapper.xml

@@ -57,7 +57,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="questionName != null">question_name = #{questionName},</if>
             <if test="createTime != null">create_time = #{createTime},</if>
             <if test="updateTime != null">update_time = #{updateTime},</if>
-            <if test="type != null">update_time = #{type},</if>
+            <if test="type != null">type = #{type},</if>
         </trim>
         where id = #{id}
     </update>