From 656d6f8029f8bf9b2daa9dcc89101a879a70b860 Mon Sep 17 00:00:00 2001
From: wlzboy <66905212@qq.com>
Date: 星期三, 03 十二月 2025 23:10:05 +0800
Subject: [PATCH] feat:优先添加执行人
---
ruoyi-system/src/main/java/com/ruoyi/system/domain/VehicleInfo.java | 41 +++++++++++++++++++++++++++++++++++++++--
1 files changed, 39 insertions(+), 2 deletions(-)
diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/VehicleInfo.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/VehicleInfo.java
index 506de81..66fa440 100644
--- a/ruoyi-system/src/main/java/com/ruoyi/system/domain/VehicleInfo.java
+++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/VehicleInfo.java
@@ -5,10 +5,13 @@
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
+import java.util.List;
+import java.io.Serializable;
+
/**
* 杞﹁締淇℃伅瀵硅薄 tb_vehicle_info
*/
-public class VehicleInfo extends BaseEntity {
+public class VehicleInfo extends BaseEntity implements Serializable {
private static final long serialVersionUID = 1L;
/** 杞﹁締ID */
@@ -53,6 +56,12 @@
/** 褰掑睘閮ㄩ棬鍚嶇О */
@Excel(name = "褰掑睘閮ㄩ棬")
private String deptName;
+
+ /** 褰掑睘鐨勫涓垎鍏徃ID鍒楄〃锛堢敤浜庢煡璇㈠拰鏄剧ず锛� */
+ private List<Long> deptIds;
+
+ /** 褰掑睘鐨勫涓垎鍏徃鍚嶇О鍒楄〃锛堢敤浜庢樉绀猴級 */
+ private List<String> deptNames;
public void setVehicleId(Long vehicleId) {
this.vehicleId = vehicleId;
@@ -141,6 +150,22 @@
public void setDeptName(String deptName) {
this.deptName = deptName;
}
+
+ public List<Long> getDeptIds() {
+ return deptIds;
+ }
+
+ public void setDeptIds(List<Long> deptIds) {
+ this.deptIds = deptIds;
+ }
+
+ public List<String> getDeptNames() {
+ return deptNames;
+ }
+
+ public void setDeptNames(List<String> deptNames) {
+ this.deptNames = deptNames;
+ }
@Override
public String toString() {
@@ -163,4 +188,16 @@
.append("remark", getRemark())
.toString();
}
-}
\ No newline at end of file
+
+ /**
+ * 鍒濆鍖栧欢杩熷姞杞界殑灞炴�э紝閬垮厤搴忓垪鍖栭棶棰�
+ */
+ public void initializeLazyProperties() {
+ if (this.deptIds != null) {
+ this.deptIds.size(); // 瑙﹀彂鍔犺浇
+ }
+ if (this.deptNames != null) {
+ this.deptNames.size(); // 瑙﹀彂鍔犺浇
+ }
+ }
+}
--
Gitblit v1.9.1