报工问题修改

tags/yfai-pcn-ext-v1.0
微笑着面对明天 10 months ago
parent f29a349df2
commit 845628f5b7

@ -83,7 +83,9 @@ public class MesReportNoSortJob extends BaseMesScheduleJob {
return;
}
try {
workOrderService.doProductReportByRecord(unReportMesProduceSn.get(0), organizeCode, userName);
for (MesProductionRecord mesProductionRecord : unReportMesProduceSn) {
workOrderService.doProductReportByRecord(mesProductionRecord, organizeCode, userName);
}
} catch (ImppBusiException e) {
LOGGER.error("条码:{}报工失败", unReportMesProduceSn.get(0).getProductSn(), e.getErrorDetail());

@ -751,7 +751,7 @@ public class MesWorkOrderService implements IMesWorkOrderService {
DdlPreparedPack.getInPackList(centerList, "workCenterCode",ddlPackBean);
DdlPreparedPack.getOrderByPack(new Object[]{CommonEnumUtil.ASC_OR_DESC.ASC.getValue()}, new String[]{"modifyDatetime"}, ddlPackBean);
List<MesProductionRecord> mesProductionRecordList = productionRecordRao.findByHqlTopWhere(ddlPackBean, 10);
List<MesProductionRecord> mesProductionRecordList = productionRecordRao.findByHqlTopWhere(ddlPackBean, 100);
List<MesProductionRecord> recordList = new ArrayList<>();
// 根据零件号分组
if(!CollectionUtils.isEmpty(mesProductionRecordList)) {

Loading…
Cancel
Save