From aed297a5fbc8df9dab01b28da21f872ee546b43c Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期一, 13 十月 2025 16:15:11 +0800
Subject: [PATCH] 2025.10.13 1. 统一调整controller层的返回类型,通过添加全局响应增强器GlobalResponseAdvice来管理返回结果; 2. 新增mybatis-generator自定义插件,实现给数据库实体entity自动添加swagger注解@ApiModel和@ApiModelProperty

---
 src/main/kotlin/cn/flightfeather/supervision/lightshare/vo/EvaluationUpdateVo.kt |   19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diff --git a/src/main/kotlin/cn/flightfeather/supervision/lightshare/vo/EvaluationUpdateVo.kt b/src/main/kotlin/cn/flightfeather/supervision/lightshare/vo/EvaluationUpdateVo.kt
index 75f1f1a..2c6966e 100644
--- a/src/main/kotlin/cn/flightfeather/supervision/lightshare/vo/EvaluationUpdateVo.kt
+++ b/src/main/kotlin/cn/flightfeather/supervision/lightshare/vo/EvaluationUpdateVo.kt
@@ -1,5 +1,6 @@
 package cn.flightfeather.supervision.lightshare.vo
 
+import com.fasterxml.jackson.annotation.JsonInclude
 import io.swagger.annotations.ApiModel
 import io.swagger.annotations.ApiModelProperty
 
@@ -8,9 +9,16 @@
  * @date 2024/9/28
  * @author feiyu02
  */
+@JsonInclude(JsonInclude.Include.NON_NULL)
 @ApiModel("宸℃煡浠诲姟鐩戞祴鏁版嵁寮傚父鎵e垎")
 class EvaluationUpdateVo : AreaEvaVo() {
 
+    @ApiModelProperty("宸℃煡浠诲姟鐨勮瘎鍒嗕慨鏀硅鎯�")
+    var subTaskEvaList: List<SubTaskEva>? = null
+}
+
+@ApiModel("宸℃煡浠诲姟鐩戞祴鏁版嵁鎵e垎璇︽儏")
+class SubTaskEva {
     @ApiModelProperty("宸℃煡浠诲姟涓婚敭")
     var subTaskId: String? = null
 
@@ -18,5 +26,14 @@
     var ruleId: String? = null
 
     @ApiModelProperty("鍏蜂綋璇勪及鏉$洰鏄惁鍕鹃��", notes = "瀵硅薄缁撴瀯涓鸿瘎浼版潯鐩殑涓婚敭鍜屾槸鍚﹀嬀閫夊舰鎴愮殑閿�煎鍒楄〃")
-    var subRule: List<Pair<String, Boolean>>? = null
+    var subRule: List<SubRulePair?>? = null
+}
+
+@ApiModel("鍏蜂綋璇勪及鏉$洰鍕鹃�夋儏鍐�")
+class SubRulePair {
+    @ApiModelProperty("璇勪及瑙勫垯id")
+    var id: String? = null
+
+    @ApiModelProperty("鏄惁閫変腑")
+    var selected: Boolean? = null
 }
\ No newline at end of file

--
Gitblit v1.9.3