| | |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="warning" column="warning" /> |
| | | <result property="exceptionStatus" column="exception_status" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectApsPlateProcessStatVo"> |
| | | select id, work_order_no, process_name, num, route_process_number, current_process_number, production_quantity, |
| | | standard_time, process_total_time, process_plan_end_day,process_plan_start_day, order_plan_end_day, design_times, |
| | | batch_number, create_by, del_flag, warning |
| | | batch_number, create_by, del_flag, warning, |
| | | CASE WHEN <![CDATA[ process_plan_start_day <= NOW() OR process_plan_end_day <= NOW() ]]> THEN '是' ELSE '否' END as exception_status |
| | | from aps_plate_process_stat |
| | | </sql> |
| | | |
| | |
| | | pl.plan_end_day as order_plan_end_day |
| | | from aps_plate_plan as pl |
| | | left join aps_process_route as rt on pl.document_number = rt.work_order_no |
| | | where pl.document_number is not null and rt.work_order_no is not null and pl.plan_end_day is not null |
| | | order by rt.work_order_no asc, rt.process_number desc |
| | | </select> |
| | | <update id="removeOtherStat" parameterType="String"> |