PDA产品加工记录查询,根据创建时间倒叙

tags/yfai-pcn-ext-v1.4
jun 9 months ago
parent 1ff40a34c4
commit 971f967377

@ -101,7 +101,7 @@ public class MesProductionRecordService implements IMesProductionRecordService {
@Override
public List<MesProductionRecordModel> findMesProductionRecordList(String organizeCode, String productSn) {
List<MesProductionRecord> productionRecordList = findProductionRecordList(organizeCode, productSn);
List<MesProductionRecord> productionRecordList = findProductionRecord(organizeCode, productSn);
List<MesProductionRecordModel> mesProductionRecordModelList = new ArrayList<>();
if (!CollectionUtils.isEmpty(productionRecordList)) {
//数据查询
@ -182,4 +182,12 @@ public class MesProductionRecordService implements IMesProductionRecordService {
}
return mesProduceSnMap;
}
public List<MesProductionRecord> findProductionRecord(String organizeCode, String productSn) {
if (StringUtils.isEmpty(organizeCode) || StringUtils.isEmpty(productSn)) return null;
DdlPackBean packBean = DdlPackBean.getDdlPackBean(organizeCode);
DdlPreparedPack.getStringEqualPack(productSn,MesPcnExtConstWords.PRODUCT_SN,packBean);
DdlPreparedPack.getOrderBy(MesPcnExtConstWords.CREATE_DATE_TIME,CommonEnumUtil.ASC_OR_DESC.DESC.getValue(),packBean);
return productionRecordRepository.findByHqlWhere(packBean);
}
}

Loading…
Cancel
Save