|
|
|
@ -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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|