|
|
|
@ -41,7 +41,6 @@ public class MesDefectRecordDaoImpl implements IMesDefectRecordDao {
|
|
|
|
|
hql.append(" where mpid.organize_code = :organizeCode ");
|
|
|
|
|
hql.append(" and mpid.is_deleted = :isDeleted ");
|
|
|
|
|
hql.append(" and mpid.is_valid = :isValid ");
|
|
|
|
|
// hql.append(" and mpi.inspection_status = :inspectionStatus ");
|
|
|
|
|
hql.append(" and mpid.create_date_time >= :createDateTimeStart");
|
|
|
|
|
hql.append(" and mpid.create_date_time <= :createDateTimeEnd");
|
|
|
|
|
hql.append(" GROUP BY mpi.part_no, mp.part_type_code, mpid.front_back, mpid.defect_location, mpid.defect_type_code ");
|
|
|
|
@ -53,7 +52,6 @@ public class MesDefectRecordDaoImpl implements IMesDefectRecordDao {
|
|
|
|
|
query.setParameter("isDeleted", CommonEnumUtil.TRUE_OR_FALSE.FALSE.getValue());
|
|
|
|
|
query.setParameter("createDateTimeStart", createDateTimeStart);
|
|
|
|
|
query.setParameter("createDateTimeEnd", createDateTimeEnd);
|
|
|
|
|
query.setParameter("inspectionStatus", MesExtEnumUtil.PART_INSPECTION_STATUS.FAIL.getValue());
|
|
|
|
|
|
|
|
|
|
List list = query.getResultList();
|
|
|
|
|
|
|
|
|
|