|
@@ -18,11 +18,13 @@ import java.util.Map;
|
|
|
@Component
|
|
|
public class FIRP0274 extends QCCatalogue {
|
|
|
public void start(InputInfo inputInfo, OutputInfo outputInfo) {
|
|
|
+ status = "0";
|
|
|
if (inputInfo.getFirstPageRecordDoc() != null && inputInfo.getFirstPageRecordDoc().getStructureMap() != null) {
|
|
|
Map<String, String> firstpageStructureMap = inputInfo.getFirstPageRecordDoc().getStructureMap();
|
|
|
+ String age = firstpageStructureMap.get(Content.age);
|
|
|
String newbornAge = firstpageStructureMap.get(Content.newbornAge);
|
|
|
- if (!CatalogueUtil.isEmpty(newbornAge)){
|
|
|
- status = "0";
|
|
|
+ if (CatalogueUtil.isEmpty(age) && CatalogueUtil.isEmpty(newbornAge)) {
|
|
|
+ status = "-1";
|
|
|
}
|
|
|
}
|
|
|
}
|