|
|
@ -41,6 +41,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<result property="delFlag" column="del_flag" />
|
|
|
|
<result property="delFlag" column="del_flag" />
|
|
|
|
<result property="factoryCode" column="factory_code" />
|
|
|
|
<result property="factoryCode" column="factory_code" />
|
|
|
|
<result property="faultType" column="fault_type" />
|
|
|
|
<result property="faultType" column="fault_type" />
|
|
|
|
|
|
|
|
<result property="equipmentStatusDescription" column="equipment_status_description" />
|
|
|
|
|
|
|
|
|
|
|
|
<!--设备-->
|
|
|
|
<!--设备-->
|
|
|
|
<result property="equipmentName" column="equipment_name" />
|
|
|
|
<result property="equipmentName" column="equipment_name" />
|
|
|
|
<result property="equipmentSpec" column="equipment_spec" />
|
|
|
|
<result property="equipmentSpec" column="equipment_spec" />
|
|
|
@ -85,7 +87,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectEquRepairWorkOrderVo">
|
|
|
|
<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 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 from equ_repair_work_order
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectEquRepairWorkOrderList" parameterType="EquRepairWorkOrder" resultMap="EquRepairWorkOrderResult">
|
|
|
|
<select id="selectEquRepairWorkOrderList" parameterType="EquRepairWorkOrder" resultMap="EquRepairWorkOrderResult">
|
|
|
@ -125,6 +127,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
erwo.del_flag,
|
|
|
|
erwo.del_flag,
|
|
|
|
erwo.factory_code,
|
|
|
|
erwo.factory_code,
|
|
|
|
erwo.fault_type,
|
|
|
|
erwo.fault_type,
|
|
|
|
|
|
|
|
erwo.equipment_status_description,
|
|
|
|
be.equipment_name,
|
|
|
|
be.equipment_name,
|
|
|
|
et.team_name,
|
|
|
|
et.team_name,
|
|
|
|
et.team_person
|
|
|
|
et.team_person
|
|
|
@ -204,6 +207,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
erwo.del_flag,
|
|
|
|
erwo.del_flag,
|
|
|
|
erwo.factory_code,
|
|
|
|
erwo.factory_code,
|
|
|
|
erwo.fault_type,
|
|
|
|
erwo.fault_type,
|
|
|
|
|
|
|
|
erwo.equipment_status_description,
|
|
|
|
be.equipment_name,
|
|
|
|
be.equipment_name,
|
|
|
|
et.team_name,
|
|
|
|
et.team_name,
|
|
|
|
et.team_person
|
|
|
|
et.team_person
|
|
|
@ -252,6 +256,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
erwo.update_by,
|
|
|
|
erwo.update_by,
|
|
|
|
erwo.factory_code,
|
|
|
|
erwo.factory_code,
|
|
|
|
erwo.fault_type,
|
|
|
|
erwo.fault_type,
|
|
|
|
|
|
|
|
erwo.equipment_status_description,
|
|
|
|
be.equipment_name,
|
|
|
|
be.equipment_name,
|
|
|
|
be.equipment_spec,
|
|
|
|
be.equipment_spec,
|
|
|
|
be.equipment_type_name,
|
|
|
|
be.equipment_type_name,
|
|
|
@ -316,6 +321,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="delFlag != null">del_flag,</if>
|
|
|
|
<if test="delFlag != null">del_flag,</if>
|
|
|
|
<if test="factoryCode != null">factory_code,</if>
|
|
|
|
<if test="factoryCode != null">factory_code,</if>
|
|
|
|
<if test="faultType != null">fault_type,</if>
|
|
|
|
<if test="faultType != null">fault_type,</if>
|
|
|
|
|
|
|
|
<if test="equipmentStatusDescription != null">equipment_status_description,</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<if test="workId != null">#{workId},</if>
|
|
|
|
<if test="workId != null">#{workId},</if>
|
|
|
@ -353,6 +359,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="delFlag != null">#{delFlag},</if>
|
|
|
|
<if test="delFlag != null">#{delFlag},</if>
|
|
|
|
<if test="factoryCode != null">#{factoryCode},</if>
|
|
|
|
<if test="factoryCode != null">#{factoryCode},</if>
|
|
|
|
<if test="faultType != null">#{fault_type},</if>
|
|
|
|
<if test="faultType != null">#{fault_type},</if>
|
|
|
|
|
|
|
|
<if test="equipmentStatusDescription != null">equipment_status_description,</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
@ -393,6 +400,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
|
<if test="factoryCode != null">factory_code = #{factoryCode},</if>
|
|
|
|
<if test="factoryCode != null">factory_code = #{factoryCode},</if>
|
|
|
|
<if test="faultType != null">fault_type = #{faultType},</if>
|
|
|
|
<if test="faultType != null">fault_type = #{faultType},</if>
|
|
|
|
|
|
|
|
<if test="equipmentStatusDescription != null">equipment_status_description = #{equipmentStatusDescription},</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
where work_id = #{workId}
|
|
|
|
where work_id = #{workId}
|
|
|
|
and del_flag = '0'
|
|
|
|
and del_flag = '0'
|
|
|
|