o.work_order_id, o.`type`, o.title, o.content, o.fault_time, o.device_type, o.serial_number, o.station_id,
o.reason, o.disposal_method, o.`status`, o.del_flag, o.tenant_id, o.create_time, o.create_by, o.update_time,
o.update_by, o.remark
insert into xhpc_work_order_user (order_id, user_id)
values
(#{domain.orderId}, #{domain.userId})
update xhpc_work_order set del_flag=2
where work_order_id = #{workOrderId,jdbcType=BIGINT}
insert into xhpc_work_order (`type`, title, content, fault_time
device_type, serial_number, reason, disposal_method,
`status`, del_flag, tenant_id,
create_time, create_by, update_time,
update_by, remark)
values (#{type,jdbcType=SMALLINT}, #{title,jdbcType=VARCHAR}, #{content,jdbcType=VARCHAR}, #{faultTime, jdbcType=TIMESTAMP}
#{deviceType,jdbcType=VARCHAR}, #{serialNumber,jdbcType=VARCHAR},
#{reason,jdbcType=VARCHAR}, #{disposalMethod,jdbcType=VARCHAR},
1, 0, #{tenantId,jdbcType=VARCHAR},
sysdate(), #{createBy,jdbcType=VARCHAR},sysdate(),
#{updateBy,jdbcType=VARCHAR}, #{remark})
insert into xhpc_work_order
`type`,
title,
content,
fault_time,
device_type,
serial_number,
station_id,
reason,
disposal_method,
`status`,
del_flag,
tenant_id,
create_time,
create_by,
update_time,
update_by,
remark,
#{type,jdbcType=SMALLINT},
#{title,jdbcType=VARCHAR},
#{content,jdbcType=VARCHAR},
#{faultTime, jdbcType=TIMESTAMP},
#{deviceType,jdbcType=VARCHAR},
#{serialNumber,jdbcType=VARCHAR},
#{stationId},
#{reason,jdbcType=VARCHAR},
#{disposalMethod,jdbcType=VARCHAR},
1,
#{status},
0,
#{tenantId,jdbcType=VARCHAR},
sysdate(),
#{createBy,jdbcType=VARCHAR},
sysdate(),
#{updateBy,jdbcType=VARCHAR},
#{remark},
update xhpc_work_order
`type` = #{type,jdbcType=SMALLINT},
title = #{title,jdbcType=VARCHAR},
content = #{content,jdbcType=VARCHAR},
fault_time = #{faultTime, jdbcType=TIMESTAMP},
device_type = #{deviceType,jdbcType=VARCHAR},
serial_number = #{serialNumber,jdbcType=VARCHAR},
station_id = #{stationId},
reason = #{reason,jdbcType=VARCHAR},
disposal_method = #{disposalMethod,jdbcType=VARCHAR},
`status` = #{status,jdbcType=SMALLINT},
tenant_id = #{tenantId,jdbcType=VARCHAR},
update_time = sysdate(),
update_by = #{updateBy,jdbcType=VARCHAR},
remark=#{remark},
where work_order_id = #{workOrderId,jdbcType=BIGINT}
update xhpc_work_order
set `type` = #{type,jdbcType=SMALLINT},
title = #{title,jdbcType=VARCHAR},
content = #{content,jdbcType=VARCHAR},
fault_time = #{faultTime, jdbcType=TIMESTAMP},
device_type = #{deviceType,jdbcType=VARCHAR},
serial_number = #{serialNumber,jdbcType=VARCHAR},
station_id=#{stationId},
reason = #{reason,jdbcType=VARCHAR},
disposal_method = #{disposalMethod,jdbcType=VARCHAR},
`status` = #{status,jdbcType=SMALLINT},
tenant_id = #{tenantId,jdbcType=VARCHAR},
update_time = sysdate(),
update_by = #{updateBy,jdbcType=VARCHAR},
remark=#{remark}
where work_order_id = #{workOrderId,jdbcType=BIGINT}
delete from xhpc_work_order_user where order_id=#{orderId}