|
|
@ -82,10 +82,10 @@ |
|
|
|
p.point_code |
|
|
|
FROM |
|
|
|
`sch_base_point` p |
|
|
|
LEFT JOIN pdm_bd_workorder w ON w.point_code = p.point_code AND w.workorder_status = '3' AND w.workorder_status = '2' |
|
|
|
WHERE |
|
|
|
p.region_code = 'YZ' AND p.point_type = '1' AND p.is_has_workder = '1' |
|
|
|
AND w.workorder_id IS NULL |
|
|
|
p.region_code = 'YZ' |
|
|
|
AND p.point_type = '1' |
|
|
|
AND p.is_has_workder = '1' |
|
|
|
</select> |
|
|
|
<select id="getAcsWorkOrderVos" resultType="org.nl.wms.pdm.workorder.service.dao.vo.AcsWorkOrderVo"> |
|
|
|
SELECT |
|
|
@ -117,4 +117,13 @@ |
|
|
|
AND w.point_code = #{device} |
|
|
|
ORDER BY w.planproducestart_date |
|
|
|
</select> |
|
|
|
<select id="getTheDayProducedWorkOrderByDevice" |
|
|
|
resultType="org.nl.wms.pdm.workorder.service.dao.PdmBdWorkorder"> |
|
|
|
SELECT |
|
|
|
* |
|
|
|
FROM |
|
|
|
`pdm_bd_workorder` w |
|
|
|
WHERE w.point_code = #{s} |
|
|
|
AND w.workorder_status != '5' AND w.workorder_status != '1' |
|
|
|
</select> |
|
|
|
</mapper> |
|
|
|