From 91b4d899403587e6982c6f76674307cd5612b17b Mon Sep 17 00:00:00 2001
From: wlzboy <66905212@qq.com>
Date: 星期日, 26 十月 2025 18:53:07 +0800
Subject: [PATCH] feat: 任务状态
---
ruoyi-system/src/main/resources/mapper/system/SysTaskVehicleMapper.xml | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/ruoyi-system/src/main/resources/mapper/system/SysTaskVehicleMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysTaskVehicleMapper.xml
index e8a3a0f..44f44e3 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysTaskVehicleMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysTaskVehicleMapper.xml
@@ -16,13 +16,15 @@
<result property="vehicleType" column="vehicle_type" />
<result property="vehicleBrand" column="vehicle_brand" />
<result property="vehicleModel" column="vehicle_model" />
+ <result property="deptName" column="dept_name" />
</resultMap>
<sql id="selectSysTaskVehicleVo">
select tv.id, tv.task_id, tv.vehicle_id, tv.assign_time, tv.assign_by, tv.status, tv.remark,
- v.vehicle_no, v.vehicle_type, v.vehicle_brand, v.vehicle_model
+ v.vehicle_no, v.vehicle_type, v.vehicle_brand, v.vehicle_model, d.dept_name
from sys_task_vehicle tv
left join tb_vehicle_info v on tv.vehicle_id = v.vehicle_id
+ left join sys_dept d on v.dept_id = d.dept_id
</sql>
<select id="selectSysTaskVehicleList" parameterType="SysTaskVehicle" resultMap="SysTaskVehicleResult">
@@ -57,16 +59,16 @@
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="taskId != null">task_id,</if>
<if test="vehicleId != null">vehicle_id,</if>
- <if test="assignTime != null">assign_time,</if>
- <if test="assignBy != null and assignBy != ''">assign_by,</if>
+ assign_time,
+ assign_by,
<if test="status != null and status != ''">status,</if>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="taskId != null">#{taskId},</if>
<if test="vehicleId != null">#{vehicleId},</if>
- <if test="assignTime != null">#{assignTime},</if>
- <if test="assignBy != null and assignBy != ''">#{assignBy},</if>
+ #{assignTime},
+ #{assignBy},
<if test="status != null and status != ''">#{status},</if>
<if test="remark != null">#{remark},</if>
</trim>
--
Gitblit v1.9.1