保养委外

highway
wws 10 months ago
parent d53c96be6b
commit 2f9c7c1c03

@ -151,6 +151,15 @@ public class EquOrder extends BaseEntity {
private String equipmentName; private String equipmentName;
private String planRestrict; private String planRestrict;
private String outsourceCode;
public String getOutsourceCode() {
return outsourceCode;
}
public void setOutsourceCode(String outsourceCode) {
this.outsourceCode = outsourceCode;
}
private List<EquOrderDetail> detailList; private List<EquOrderDetail> detailList;

@ -157,6 +157,46 @@ public class EquPlan extends BaseEntity {
private Date getLoopEndArrayEnd; private Date getLoopEndArrayEnd;
private String workPerson;
private String workOutsourcingUnit;
private String workConnection;
private String workReason;
public String getWorkOutsourcingUnit() {
return workOutsourcingUnit;
}
public void setWorkOutsourcingUnit(String workOutsourcingUnit) {
this.workOutsourcingUnit = workOutsourcingUnit;
}
public String getWorkConnection() {
return workConnection;
}
public void setWorkConnection(String workConnection) {
this.workConnection = workConnection;
}
public String getWorkReason() {
return workReason;
}
public void setWorkReason(String workReason) {
this.workReason = workReason;
}
public String getWorkPerson() {
return workPerson;
}
public void setWorkPerson(String workPerson) {
this.workPerson = workPerson;
}
public List<Date> getLoopEndArray() { public List<Date> getLoopEndArray() {
return loopEndArray; return loopEndArray;
} }

@ -39,6 +39,7 @@
<result property="orderInspect" column="order_inspect" /> <result property="orderInspect" column="order_inspect" />
<result property="repairCode" column="repair_code" /> <result property="repairCode" column="repair_code" />
<result property="workCode" column="work_code" /> <result property="workCode" column="work_code" />
<result property="outsourceCode" column="outsource_code" />
</resultMap> </resultMap>
<sql id="selectEquOrderVo"> <sql id="selectEquOrderVo">
@ -46,7 +47,7 @@
plan_loop_start, plan_loop_end, order_start, order_end, equipment_code, order_status, plan_loop_start, plan_loop_end, order_start, order_end, equipment_code, order_status,
order_cost, plan_person, order_cost_time, order_sign_person, order_cost, plan_person, order_cost_time, order_sign_person,
factory_code, attr1, attr2, attr3, del_flag, create_by, create_time, factory_code, attr1, attr2, attr3, del_flag, create_by, create_time,
update_by, update_time,upkeep,calculation_rule,shut_down,order_inspect,repair_code,work_code update_by, update_time,upkeep,calculation_rule,shut_down,order_inspect,repair_code,work_code,outsource_code
from equ_order from equ_order
</sql> </sql>
@ -84,6 +85,7 @@
<if test="shutDown != null "> and shut_down = #{shutDown}</if> <if test="shutDown != null "> and shut_down = #{shutDown}</if>
<if test="orderInspect != null "> and order_inspect = #{orderInspect}</if> <if test="orderInspect != null "> and order_inspect = #{orderInspect}</if>
<if test="repairCode != null "> and repair_code = #{repairCode}</if> <if test="repairCode != null "> and repair_code = #{repairCode}</if>
<if test="outsourceCode != null "> and outsource_code = #{outsourceCode}</if>
<if test="workCode != null "> and work_code = #{workCode}</if> <if test="workCode != null "> and work_code = #{workCode}</if>
and del_flag = '0' and del_flag = '0'
<if test="(equipmentCode != null and equipmentCode != '') or (equipmentName != null and equipmentName != '')"> <if test="(equipmentCode != null and equipmentCode != '') or (equipmentName != null and equipmentName != '')">
@ -182,6 +184,7 @@
<if test="repairCode != null">repair_code,</if> <if test="repairCode != null">repair_code,</if>
<if test="workCode != null">work_code,</if> <if test="workCode != null">work_code,</if>
<if test="planRestrict != null">plan_restrict,</if> <if test="planRestrict != null">plan_restrict,</if>
<if test="outsourceCode != null">outsource_code,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="orderId != null">#{orderId},</if> <if test="orderId != null">#{orderId},</if>
@ -219,6 +222,7 @@
<if test="repairCode != null">#{repairCode},</if> <if test="repairCode != null">#{repairCode},</if>
<if test="workCode != null">#{workCode},</if> <if test="workCode != null">#{workCode},</if>
<if test="planRestrict != null">#{planRestrict},</if> <if test="planRestrict != null">#{planRestrict},</if>
<if test="outsourceCode != null">#{outsourceCode},</if>
</trim> </trim>
</insert> </insert>
@ -258,6 +262,7 @@
<if test="orderInspect != null">order_inspect = #{orderInspect},</if> <if test="orderInspect != null">order_inspect = #{orderInspect},</if>
<if test="repairCode != null">repair_code = #{repairCode},</if> <if test="repairCode != null">repair_code = #{repairCode},</if>
<if test="workCode != null">work_code = #{workCode},</if> <if test="workCode != null">work_code = #{workCode},</if>
<if test="outsourceCode != null">outsource_code = #{outsourceCode},</if>
</trim> </trim>
where order_id = #{orderId} where order_id = #{orderId}
</update> </update>

@ -34,10 +34,14 @@
<result property="createTime" column="create_time" /> <result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" /> <result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" /> <result property="updateTime" column="update_time" />
<result property="workPerson" column="work_person" />
<result property="workOutsourcingUnit" column="work_outsourcing_unit" />
<result property="workConnection" column="work_connection" />
<result property="workReason" column="work_reason" />
</resultMap> </resultMap>
<sql id="selectEquPlanVo"> <sql id="selectEquPlanVo">
select plan_id, plan_code, plan_name, plan_workshop, plan_prod_line, equipment_name, equipment_code, plan_loop, plan_loop_type, plan_loop_start, plan_loop_end, plan_person, plan_status, plan_restrict, plan_type, plan_outsource, work_code, upkeep, calculation_rule, shut_down, factory_code, attr1, attr2, attr3, del_flag, create_by, create_time, update_by, update_time from equ_plan select plan_id, plan_code, plan_name, plan_workshop, plan_prod_line, equipment_name, equipment_code, plan_loop, plan_loop_type, plan_loop_start, plan_loop_end, plan_person, plan_status, plan_restrict, plan_type, plan_outsource, work_code, upkeep, calculation_rule, shut_down, factory_code, attr1, attr2, attr3, del_flag, create_by, create_time, update_by, update_time , work_person, work_outsourcing_unit, work_connection,work_reason from equ_plan
</sql> </sql>
<select id="selectEquPlanList" parameterType="EquPlan" resultMap="EquPlanResult"> <select id="selectEquPlanList" parameterType="EquPlan" resultMap="EquPlanResult">
@ -60,6 +64,10 @@
<if test="planOutsource != null and planOutsource != ''"> and plan_outsource = #{planOutsource}</if> <if test="planOutsource != null and planOutsource != ''"> and plan_outsource = #{planOutsource}</if>
<if test="workCode != null and workCode != ''"> and work_code like concat('%', #{workCode}, '%')</if> <if test="workCode != null and workCode != ''"> and work_code like concat('%', #{workCode}, '%')</if>
<if test="factoryCode != null and factoryCode != ''"> and factory_code = #{factoryCode}</if> <if test="factoryCode != null and factoryCode != ''"> and factory_code = #{factoryCode}</if>
<if test="workPerson != null and workPerson != ''"> and work_person = #{workPerson}</if>
<if test="workOutsourcingUnit != null and workOutsourcingUnit != ''"> and work_outsourcing_unit = #{workOutsourcingUnit}</if>
<if test="workConnection != null and workConnection != ''"> and work_connection = #{workConnection}</if>
<if test="workReason != null and workReason != ''"> and work_reason = #{workReason}</if>
<if test="attr1 != null and attr1 != ''"> and attr1 = #{attr1}</if> <if test="attr1 != null and attr1 != ''"> and attr1 = #{attr1}</if>
<if test="attr2 != null and attr2 != ''"> and attr2 = #{attr2}</if> <if test="attr2 != null and attr2 != ''"> and attr2 = #{attr2}</if>
<if test="attr3 != null and attr3 != ''"> and attr3 = #{attr3}</if> <if test="attr3 != null and attr3 != ''"> and attr3 = #{attr3}</if>
@ -135,6 +143,10 @@
<if test="createTime != null">create_time,</if> <if test="createTime != null">create_time,</if>
<if test="updateBy != null and updateBy != ''">update_by,</if> <if test="updateBy != null and updateBy != ''">update_by,</if>
<if test="updateTime != null">update_time,</if> <if test="updateTime != null">update_time,</if>
<if test="workPerson != null">work_person,</if>
<if test="workOutsourcingUnit != null">work_outsourcing_unit,</if>
<if test="workConnection != null">work_connection,</if>
<if test="workReason != null">work_reason,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="planId != null">#{planId},</if> <if test="planId != null">#{planId},</if>
@ -166,6 +178,10 @@
<if test="createTime != null">#{createTime},</if> <if test="createTime != null">#{createTime},</if>
<if test="updateBy != null and updateBy != ''">#{updateBy},</if> <if test="updateBy != null and updateBy != ''">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if> <if test="updateTime != null">#{updateTime},</if>
<if test="workPerson != null">#{workPerson},</if>
<if test="workOutsourcingUnit != null">#{workOutsourcingUnit},</if>
<if test="workConnection != null">#{workConnection},</if>
<if test="workReason != null">#{workReason},</if>
</trim> </trim>
</insert> </insert>
@ -200,6 +216,10 @@
<if test="createTime != null">create_time = #{createTime},</if> <if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if> <if test="updateTime != null">update_time = #{updateTime},</if>
<if test="workPerson != null">work_person = #{workPerson},</if>
<if test="workOutsourcingUnit != null">work_outsourcing_unit = #{workOutsourcingUnit},</if>
<if test="workConnection != null">work_connection = #{workConnection},</if>
<if test="workReason != null">work_reason = #{workReason},</if>
</trim> </trim>
where plan_id = #{planId} where plan_id = #{planId}
</update> </update>

Loading…
Cancel
Save