From 97db9d11ff425583d2dece82a842a7766bb5e7e4 Mon Sep 17 00:00:00 2001
From: wlzboy <66905212@qq.com>
Date: 星期五, 26 九月 2025 21:43:39 +0800
Subject: [PATCH] feat: 添加map
---
ruoyi-system/src/main/resources/mapper/system/DispatchOrdMapper.xml | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 50 insertions(+), 0 deletions(-)
diff --git a/ruoyi-system/src/main/resources/mapper/system/DispatchOrdMapper.xml b/ruoyi-system/src/main/resources/mapper/system/DispatchOrdMapper.xml
index 66e906a..b403bfa 100644
--- a/ruoyi-system/src/main/resources/mapper/system/DispatchOrdMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/DispatchOrdMapper.xml
@@ -21,6 +21,8 @@
<result property="dispatchOrd_AP_Check" column="DispatchOrd_AP_Check"/>
<result property="dispatchOrd_OAName" column="DispatchOrd_OAName"/>
<result property="dispatchOrd_OAEntourage" column="DispatchOrd_OAEntourage"/>
+ <result property="dispatchOrdCarID" column="DispatchOrdCarID"/>
+ <result property="dispatchOrdUpdateTime" column="DispatchOrdUpdateTime"/>
<!-- ... 鍏朵粬瀛楁鏄犲皠 ... -->
</resultMap>
@@ -34,4 +36,52 @@
where ServiceOrdIDDt = #{serviceOrdIDDt}
</select>
+ <!-- 鏍规嵁CarID鏌ヨ杞︾墝鍙� -->
+ <select id="selectCarLicenseByCarId" parameterType="Integer" resultType="String">
+ select CarLicense from CarData where CarID = #{carId}
+ </select>
+
+ <!-- 鏌ヨ瀛楀吀琛ㄤ腑鐨勬潯浠舵暟鎹� -->
+ <resultMap id="DictionaryConditionResult" type="DictionaryCondition">
+ <result property="vID" column="vID"/>
+ <result property="vtext" column="vtext"/>
+ <result property="vType" column="vType"/>
+ <result property="vOrder" column="vOrder"/>
+ <result property="vOrder2" column="vOrder2"/>
+ </resultMap>
+
+ <select id="selectDictionaryConditions" resultMap="DictionaryConditionResult">
+ select vID, vtext, vType, vOrder, vOrder2
+ from dictionary
+ where vType >= 1
+ and vtitle = 'Condition'
+ order by vOrder, ID
+ </select>
+
+ <!-- 鏍规嵁鏈嶅姟璁㈠崟ID鏌ヨ鏉′欢ID鍒楄〃 -->
+ <select id="selectConditionIdsByServiceOrdCoId" parameterType="Long" resultType="Integer">
+ select ConditionID
+ from ServiceOrd_Condition
+ where ServiceOrdCoID = #{serviceOrdCoId}
+ </select>
+
+
+ <!-- 鏍规嵁鍙告満濮撳悕鏌ヨ鍙告満鎵嬫満鍙� -->
+ <select id="selectDriverMobileByName" parameterType="String" resultType="String">
+ SELECT top 1 OA_mobile
+ FROM OA_User
+ WHERE OA_Position = '鍙告満'
+ AND OA_Name = #{driverName}
+ </select>
+
+ <!-- 鏍规嵁娲惧伐鍗曞彿鏌ヨ鍥剧墖URL鍒楄〃 -->
+ <select id="selectImageUrlsByDOrdIDDt" parameterType="String" resultType="String">
+ select ImageUrl
+ from ImageData
+ where SOrdIDDt = #{dOrdIDDt}
+ and ImageDel = 0
+ and ImageType in (1,2)
+ order by UpImageTime desc
+ </select>
+
</mapper>
\ No newline at end of file
--
Gitblit v1.9.1