|
|
|
@ -35,7 +35,7 @@ public class MesWorkOrderDaoImpl implements IMesWorkOrderDao {
|
|
|
|
|
StringBuffer hql = new StringBuffer("select part_No as partNo, plan_Start_Time as planStartTime, product_Version as productVersion, " +
|
|
|
|
|
" sum( CASE WHEN work_Order_Status = 40 THEN complete_Qty ELSE qty END ) AS qty " +
|
|
|
|
|
" from Mes_Work_Order where is_Deleted=:isDeleted and is_Valid = :isValid and organize_Code = :organizeCode " +
|
|
|
|
|
" and work_order_type = 20 "+
|
|
|
|
|
" and work_order_type = 20 and order_flag !='P' "+
|
|
|
|
|
"and work_Order_Status not in(:statusList) group by part_No, date_format( plan_Start_Time, '%Y-%m-%d' ), product_Version ");
|
|
|
|
|
Query query = entityManager.createNativeQuery(hql.toString());
|
|
|
|
|
query.setParameter("organizeCode", organizeCode);
|
|
|
|
|