|
|
|
@ -48,6 +48,7 @@
|
|
|
|
|
<result property="itemTools" column="item_tools" />
|
|
|
|
|
|
|
|
|
|
<result property="outsourceCode" column="outsource_code" />
|
|
|
|
|
<result property="equipmentName" column="equipment_name" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectEquOrderVo">
|
|
|
|
@ -138,10 +139,51 @@
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectTodayTask" parameterType="String" resultMap="EquOrderResult">
|
|
|
|
|
<include refid="selectEquOrderVo"/>
|
|
|
|
|
where plan_type = #{planType} and del_flag = '0' and order_status != '1' and order_code in (
|
|
|
|
|
select order_code from equ_order_person where del_flag = '0' and user_name = #{userId} GROUP BY order_code
|
|
|
|
|
)
|
|
|
|
|
select eo.order_id,
|
|
|
|
|
eo.plan_id,
|
|
|
|
|
eo.plan_code,
|
|
|
|
|
eo.plan_type,
|
|
|
|
|
eo.order_code,
|
|
|
|
|
eo.plan_workshop,
|
|
|
|
|
eo.plan_prod_line,
|
|
|
|
|
eo.plan_loop,
|
|
|
|
|
eo.plan_loop_type,
|
|
|
|
|
eo.plan_loop_start,
|
|
|
|
|
eo.plan_loop_end,
|
|
|
|
|
eo.order_start,
|
|
|
|
|
eo.order_end,
|
|
|
|
|
eo.equipment_code,
|
|
|
|
|
eo.order_status,
|
|
|
|
|
eo.order_cost,
|
|
|
|
|
eo.plan_person,
|
|
|
|
|
eo.order_cost_time,
|
|
|
|
|
eo.order_sign_person,
|
|
|
|
|
eo.factory_code,
|
|
|
|
|
eo.attr1,
|
|
|
|
|
eo.attr2,
|
|
|
|
|
eo.attr3,
|
|
|
|
|
eo.del_flag,
|
|
|
|
|
eo.create_by,
|
|
|
|
|
eo.create_time,
|
|
|
|
|
eo.update_by,
|
|
|
|
|
eo.update_time,
|
|
|
|
|
eo.upkeep,
|
|
|
|
|
eo.calculation_rule,
|
|
|
|
|
eo.shut_down,
|
|
|
|
|
eo.order_inspect,
|
|
|
|
|
eo.repair_code,
|
|
|
|
|
eo.work_code,
|
|
|
|
|
eo.outsource_code,
|
|
|
|
|
be.equipment_name
|
|
|
|
|
from equ_order eo
|
|
|
|
|
left join base_equipment be on eo.equipment_code = be.equipment_code
|
|
|
|
|
where eo.plan_type = #{planType}
|
|
|
|
|
and eo.del_flag = '0'
|
|
|
|
|
and eo.order_status != '1'
|
|
|
|
|
and eo.order_code in (select order_code
|
|
|
|
|
from equ_order_person
|
|
|
|
|
where del_flag = '0' and user_name = #{userId}
|
|
|
|
|
GROUP BY order_code)
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectTaskRecord" parameterType="String" resultMap="EquOrderResult">
|
|
|
|
|