|
|
|
@ -42,6 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<result property="factoryCode" column="factory_code" />
|
|
|
|
|
<result property="faultType" column="fault_type" />
|
|
|
|
|
<result property="equipmentStatusDescription" column="equipment_status_description" />
|
|
|
|
|
<result property="repairMeasures" column="repair_measures" />
|
|
|
|
|
|
|
|
|
|
<!--设备-->
|
|
|
|
|
<result property="equipmentName" column="equipment_name" />
|
|
|
|
@ -87,7 +88,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<sql id="selectEquRepairWorkOrderVo">
|
|
|
|
|
select work_id, order_id, order_code, work_code,work_handle, work_plan_time, work_plan_down_time, order_relevance, work_person, work_team, work_outsource, work_down_machine, equipment_code, work_reason, work_fault_desc, work_start_time,work_end_time,work_cost_time, work_cost, work_status,out_work_id, out_work_code, attr1, attr2, attr3, create_by, create_time, update_time, update_by, del_flag, factory_code ,fault_type,equipment_status_description from equ_repair_work_order
|
|
|
|
|
select work_id, order_id, order_code, work_code,work_handle, work_plan_time, work_plan_down_time, order_relevance, work_person, work_team, work_outsource, work_down_machine, equipment_code, work_reason, work_fault_desc, work_start_time,work_end_time,work_cost_time, work_cost, work_status,out_work_id, out_work_code, attr1, attr2, attr3, create_by, create_time, update_time, update_by, del_flag, factory_code ,fault_type,equipment_status_description,repair_measures from equ_repair_work_order
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectEquRepairWorkOrderList" parameterType="EquRepairWorkOrder" resultMap="EquRepairWorkOrderResult">
|
|
|
|
@ -128,6 +129,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
erwo.factory_code,
|
|
|
|
|
erwo.fault_type,
|
|
|
|
|
erwo.equipment_status_description,
|
|
|
|
|
erwo.repair_measures,
|
|
|
|
|
be.equipment_name,
|
|
|
|
|
et.team_name,
|
|
|
|
|
et.team_person
|
|
|
|
@ -208,6 +210,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
erwo.factory_code,
|
|
|
|
|
erwo.fault_type,
|
|
|
|
|
erwo.equipment_status_description,
|
|
|
|
|
erwo.repair_measures,
|
|
|
|
|
be.equipment_name,
|
|
|
|
|
et.team_name,
|
|
|
|
|
et.team_person
|
|
|
|
@ -257,6 +260,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
erwo.factory_code,
|
|
|
|
|
erwo.fault_type,
|
|
|
|
|
erwo.equipment_status_description,
|
|
|
|
|
erwo.repair_measures,
|
|
|
|
|
be.equipment_name,
|
|
|
|
|
be.equipment_spec,
|
|
|
|
|
be.equipment_type_name,
|
|
|
|
@ -322,6 +326,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="factoryCode != null">factory_code,</if>
|
|
|
|
|
<if test="faultType != null">fault_type,</if>
|
|
|
|
|
<if test="equipmentStatusDescription != null">equipment_status_description,</if>
|
|
|
|
|
<if test="repairMeasures != null">repair_measures,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="workId != null">#{workId},</if>
|
|
|
|
@ -360,6 +365,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="factoryCode != null">#{factoryCode},</if>
|
|
|
|
|
<if test="faultType != null">#{fault_type},</if>
|
|
|
|
|
<if test="equipmentStatusDescription != null">equipment_status_description,</if>
|
|
|
|
|
<if test="repairMeasures != null">repair_measures,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
@ -401,6 +407,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="factoryCode != null">factory_code = #{factoryCode},</if>
|
|
|
|
|
<if test="faultType != null">fault_type = #{faultType},</if>
|
|
|
|
|
<if test="equipmentStatusDescription != null">equipment_status_description = #{equipmentStatusDescription},</if>
|
|
|
|
|
<if test="repairMeasures != null">repair_measures = #{repairMeasures},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where work_id = #{workId}
|
|
|
|
|
and del_flag = '0'
|
|
|
|
|