|
@@ -30,14 +30,18 @@ public class SmryQueryRecordHandlerService implements IHandleXmlBaseService {
|
|
SmryQueryRecord smryQueryRecord = (SmryQueryRecord) reportXmlBase;
|
|
SmryQueryRecord smryQueryRecord = (SmryQueryRecord) reportXmlBase;
|
|
SmryQueryRecordEntity smryQueryRecordEntity = new SmryQueryRecordEntity();
|
|
SmryQueryRecordEntity smryQueryRecordEntity = new SmryQueryRecordEntity();
|
|
LastQueryRecord lastQueryRecord = smryQueryRecord.getLastQueryRecord();
|
|
LastQueryRecord lastQueryRecord = smryQueryRecord.getLastQueryRecord();
|
|
- BeanUtils.copyProperties(lastQueryRecord, smryQueryRecordEntity);
|
|
|
|
LastMounthQueryRecord lastMounthQueryRecord = smryQueryRecord.getLastMounthQueryRecord();
|
|
LastMounthQueryRecord lastMounthQueryRecord = smryQueryRecord.getLastMounthQueryRecord();
|
|
- BeanUtils.copyProperties(lastMounthQueryRecord, smryQueryRecordEntity);
|
|
|
|
- smryQueryRecordEntity.setHeadInfId(commonParam.getHeadInfId());
|
|
|
|
- smryQueryRecordEntity.setIdNum(commonParam.getIdNum());
|
|
|
|
- smryQueryRecordEntity.setName(commonParam.getName());
|
|
|
|
- smryQueryRecordEntity.setRptNo(commonParam.getRptNo());
|
|
|
|
- smryQueryRecordService.save(smryQueryRecordEntity);
|
|
|
|
|
|
+ if (lastQueryRecord != null && lastMounthQueryRecord != null) {
|
|
|
|
+ BeanUtils.copyProperties(lastQueryRecord, smryQueryRecordEntity);
|
|
|
|
+ BeanUtils.copyProperties(lastMounthQueryRecord, smryQueryRecordEntity);
|
|
|
|
+
|
|
|
|
+ smryQueryRecordEntity.setHeadInfId(commonParam.getHeadInfId());
|
|
|
|
+ smryQueryRecordEntity.setIdNum(commonParam.getIdNum());
|
|
|
|
+ smryQueryRecordEntity.setName(commonParam.getName());
|
|
|
|
+ smryQueryRecordEntity.setRptNo(commonParam.getRptNo());
|
|
|
|
+ smryQueryRecordService.save(smryQueryRecordEntity);
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|