|
@@ -16,12 +16,15 @@
|
|
|
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
|
|
<result property="isDel" column="is_del" jdbcType="INTEGER"/>
|
|
|
<result property="userId" column="user_id" jdbcType="VARCHAR"/>
|
|
|
+ <result property="appointmentTime" column="appointment_time" jdbcType="TIMESTAMP"/>
|
|
|
+ <result property="maintenanceAddress" column="maintenance_address" jdbcType="VARCHAR"/>
|
|
|
+
|
|
|
</resultMap>
|
|
|
|
|
|
<!--查询单个-->
|
|
|
<select id="queryById" resultMap="SRepairMap">
|
|
|
select
|
|
|
- id, repair_type, user_description, repair_pic, phone_num, status, worker_description, result_pic, worker_id,user_id
|
|
|
+ id, repair_type, user_description, repair_pic, phone_num, status, worker_description, result_pic, worker_id,user_id,appointment_time,maintenance_address
|
|
|
from s_repair
|
|
|
where id = #{id}
|
|
|
</select>
|
|
@@ -29,7 +32,7 @@
|
|
|
<!--查询指定行数据-->
|
|
|
<select id="queryAllByLimit" resultMap="SRepairMap">
|
|
|
select
|
|
|
- id, repair_type, user_description, repair_pic, phone_num, status, worker_description, result_pic, worker_id, create_time, update_time, is_del
|
|
|
+ id, repair_type, user_description, repair_pic, phone_num, status, worker_description, result_pic, worker_id, create_time, update_time, is_del,user_id,appointment_time,maintenance_address
|
|
|
from s_repair
|
|
|
<where>
|
|
|
<if test="id != null">
|
|
@@ -118,8 +121,8 @@
|
|
|
|
|
|
<!--新增所有列-->
|
|
|
<insert id="insert" keyProperty="id" useGeneratedKeys="true">
|
|
|
- insert into s_repair(id,repair_type, user_description, repair_pic, phone_num, status, create_time, update_time, is_del,user_id)
|
|
|
- values (#{id},#{repairType}, #{userDescription}, #{repairPic}, #{phoneNum}, 0 , now(), now(),0,#{userId})
|
|
|
+ insert into s_repair(id,repair_type, user_description, repair_pic, phone_num, status, create_time, update_time, is_del,user_id,appointment_time,maintenance_address)
|
|
|
+ values (#{id},#{repairType}, #{userDescription}, #{repairPic}, #{phoneNum}, 0 , now(), now(),0,#{userId},#{appointmentTime},#{maintenanceAddress})
|
|
|
</insert>
|
|
|
|
|
|
<insert id="insertBatch" keyProperty="id" useGeneratedKeys="true">
|
|
@@ -198,7 +201,9 @@
|
|
|
`status`,
|
|
|
worker_description,
|
|
|
result_pic,
|
|
|
- worker_id
|
|
|
+ worker_id,
|
|
|
+ appointment_time,
|
|
|
+ maintenance_address
|
|
|
FROM
|
|
|
s_repair
|
|
|
<where>
|