| | |
| | | <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"/> |
| | | |
| | | <!-- ... 其他字段映射 ... --> |
| | | </resultMap> |
| | |
| | | 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 DOrdIDDt = #{dOrdIDDt} |
| | | and ImageDel = 0 |
| | | and ImageType in (1,2) |
| | | order by UpImageTime desc |
| | | </select> |
| | | |
| | | </mapper> |