|
@@ -181,7 +181,8 @@
|
|
|
a1.SOFTCONFLICTDES,
|
|
|
a2.INMATERCONDITION,
|
|
|
a6.CUSTOMORDERNO,
|
|
|
- a3.OUTPUTORDERPRODUCT
|
|
|
+ a3.OUTPUTORDERPRODUCT,
|
|
|
+ c.NAME AS DEVICETYPE
|
|
|
FROM
|
|
|
aps_process_operation_process_equ a1
|
|
|
LEFT JOIN aps_process_operation a2 ON a1.PROCESSID = a2.ID
|
|
@@ -190,6 +191,8 @@
|
|
|
LEFT JOIN aps_product_detail a5 ON a4.PRODUCTID = a5.ID
|
|
|
LEFT JOIN aps_production_order a6 on a6.ID= a5.MAINID
|
|
|
LEFT JOIN aps_customer_management a7 on a6.CUSTOMID= a7.ID
|
|
|
+ left join asp_check_items b on a1.PROCESSDEVICEID =b.ID
|
|
|
+ left join sys_dict c on c.DICTTYPE='asp_check_item_type' AND b.CHECKITEMTYPE =c.VALUE
|
|
|
<if test="productionLineIds != null and productionLineIds.size()>0">
|
|
|
LEFT JOIN aps_resources_equipment ape on ape.EQUIPMENTID = a1.PROCESSDEVICEID
|
|
|
LEFT JOIN aps_production_line apl on ape.MAINID =apl.ID
|
|
@@ -236,7 +239,7 @@
|
|
|
</if>
|
|
|
<if test="processids != null ">and a1.PROCESSID in (${processids})</if>
|
|
|
</where>
|
|
|
- order by a1.PLANSTARTDATE asc,a1.PLANENDDATE asc
|
|
|
+ order by a1.PLANSTARTDATE asc,a1.PLANENDDATE,c.VALUE asc
|
|
|
</select>
|
|
|
<select id="selectNeedUpdate" resultType="com.rongwei.bsentity.vo.CommonUpdateProductionStatusReq">
|
|
|
SELECT
|