method

 

@Override

 

public void processJustificationCheck(final WorkUnitKeyInfo wuKeyInfo) {

 

final List<TCGovt> tcgovtList = filingJustificationDao

.retrieveJustificationText(wuKeyInfo);

 

LOGGER.info("tcGovtListTXTNull: "+tcgovtList.size());

 

if (!tcgovtList.isEmpty()) {

 

final List<ErrorMessageRequest> errorRequestList = new ArrayList<ErrorMessageRequest>();

 

for (final TCGovt tcGovt : tcgovtList) {

 

final ErrorMessageRequest errorRequest = new ErrorMessageRequest();

 

final Map<String, ErrorMessageType> errMsgsMap = new HashMap<String, ErrorMessageType>();

errMsgsMap.put(ErrorMessageConstants.

ERROR_MESSAGE_7740, null);

errorRequest.setErrorMsgsMap(errMsgsMap);

 

final Map<String, Object> recordDetails = new HashMap<String, Object>();

recordDetails

.put(FilingConstants.

GOVT_CD, tcGovt.getGovtCode());

 

LOGGER.info("govt_cd: "+tcGovt.getGovtCode());

errorRequest.setRecordDetails(recordDetails);

errorRequestList.add(errorRequest);

}

 

errorMessageService.insertJustErrorWarnInfo(wuKeyInfo,

errorRequestList);

}

}

你可能感兴趣的:(method,dd)