46317 PCN:发运看板最近发运VIN流水号、当天整车数、生产JPH问题解决

uat-temp-nht-2504140000-46317
xiangwei.zhang 3 months ago
parent adef68a81d
commit c44d0cdcdf

@ -789,8 +789,8 @@ public class MesShippingKanbanCfgServiceImpl implements IMesShippingKanbanCfgSer
} catch (NoResultException e) {
}
String strCustInfoSeq = custInfoSeq != null ? Long.toString(custInfoSeq) : "";
if (strCustInfoSeq.length() >= 6) {
values.add(strCustInfoSeq.substring(strCustInfoSeq.length() - 6));
if (strCustInfoSeq.length() >= 5) {
values.add(strCustInfoSeq.substring(strCustInfoSeq.length() - 5));
} else {
values.add(strCustInfoSeq);
}
@ -824,8 +824,8 @@ public class MesShippingKanbanCfgServiceImpl implements IMesShippingKanbanCfgSer
if (StringUtils.isEmpty(strCustInfoSeq)) {
strCustInfoSeq = "0";
}
if (strCustInfoSeq.length() >= 6) {
values.add(strCustInfoSeq.substring(strCustInfoSeq.length() - 6));
if (strCustInfoSeq.length() >= 5) {
values.add(strCustInfoSeq.substring(strCustInfoSeq.length() - 5));
} else {
values.add(strCustInfoSeq);
}
@ -1082,8 +1082,8 @@ public class MesShippingKanbanCfgServiceImpl implements IMesShippingKanbanCfgSer
.setParameter("organizeCode", cfg.getOrganizeCode())
.setParameter("isValid", CommonEnumUtil.VALID)
.setParameter("isDeleted", CommonEnumUtil.FALSE)
.setParameter("startDateTime", DateUtil.formatDate(nowTime))
.setParameter("endDateTime", DateUtil.formatDate(prevHourTime))
.setParameter("startDateTime", DateUtil.formatDate(prevHourTime))
.setParameter("endDateTime", DateUtil.formatDate(nowTime))
.setParameter("overPoint", cfg.getOnlinePoint())
.getSingleResult();
@ -1124,11 +1124,12 @@ public class MesShippingKanbanCfgServiceImpl implements IMesShippingKanbanCfgSer
"SELECT new map(pr.workCenterCode as workCenterCode, COUNT(pr) as totalCount) " +
"FROM " + MesProductionRecord.class.getName() + " pr " +
"WHERE pr.organizeCode = :organizeCode AND pr.isDeleted = :isDeleted AND pr.isValid = :isValid " +
"AND pr.createDatetime BETWEEN :startDateTime AND :endDateTime " +
"AND pr.reportType = :reportType AND pr.createDatetime BETWEEN :startDateTime AND :endDateTime " +
"GROUP BY pr.workCenterCode", Map.class)
.setParameter("organizeCode", cfg.getOrganizeCode())
.setParameter("isValid", CommonEnumUtil.VALID)
.setParameter("isDeleted", CommonEnumUtil.FALSE)
.setParameter("reportType", MesExtEnumUtil.MES_REPORT_TYPE.REPORT.getValue())
.setParameter("startDateTime", DateUtil.formatDate(prevHourTime))
.setParameter("endDateTime", DateUtil.formatDate(nowTime))
.getResultList();

Loading…
Cancel
Save