|
|
|
@ -40,6 +40,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
|
|
<result property="delFlag" column="del_flag" />
|
|
|
|
|
<result property="factoryCode" column="factory_code" />
|
|
|
|
|
<result property="faultType" column="fault_type" />
|
|
|
|
|
<!--设备-->
|
|
|
|
|
<result property="equipmentName" column="equipment_name" />
|
|
|
|
|
<result property="equipmentSpec" column="equipment_spec" />
|
|
|
|
@ -84,7 +85,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 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 from equ_repair_work_order
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectEquRepairWorkOrderList" parameterType="EquRepairWorkOrder" resultMap="EquRepairWorkOrderResult">
|
|
|
|
@ -123,6 +124,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
erwo.update_by,
|
|
|
|
|
erwo.del_flag,
|
|
|
|
|
erwo.factory_code,
|
|
|
|
|
erwo.fault_type,
|
|
|
|
|
be.equipment_name,
|
|
|
|
|
et.team_name,
|
|
|
|
|
et.team_person
|
|
|
|
@ -201,6 +203,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
erwo.update_by,
|
|
|
|
|
erwo.del_flag,
|
|
|
|
|
erwo.factory_code,
|
|
|
|
|
erwo.fault_type,
|
|
|
|
|
be.equipment_name,
|
|
|
|
|
et.team_name,
|
|
|
|
|
et.team_person
|
|
|
|
@ -248,6 +251,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
erwo.update_time,
|
|
|
|
|
erwo.update_by,
|
|
|
|
|
erwo.factory_code,
|
|
|
|
|
erwo.fault_type,
|
|
|
|
|
be.equipment_name,
|
|
|
|
|
be.equipment_spec,
|
|
|
|
|
be.equipment_type_name,
|
|
|
|
@ -311,6 +315,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
|
|
<if test="delFlag != null">del_flag,</if>
|
|
|
|
|
<if test="factoryCode != null">factory_code,</if>
|
|
|
|
|
<if test="faultType != null">fault_type,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="workId != null">#{workId},</if>
|
|
|
|
@ -347,6 +352,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
|
|
<if test="delFlag != null">#{delFlag},</if>
|
|
|
|
|
<if test="factoryCode != null">#{factoryCode},</if>
|
|
|
|
|
<if test="faultType != null">#{fault_type},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
@ -386,6 +392,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
|
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
|
|
<if test="factoryCode != null">factory_code = #{factoryCode},</if>
|
|
|
|
|
<if test="faultType != null">fault_type = #{faultType},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where work_id = #{workId}
|
|
|
|
|
and del_flag = '0'
|
|
|
|
|