public class FbExportManagerImpl extends Object implements FbExportManager
修飾子とタイプ | クラスと説明 |
---|---|
class |
FbExportManagerImpl.DataRecordDto
データレコードDTO.
|
class |
FbExportManagerImpl.EndRecordDto
エンドレコードDTO.
|
static class |
FbExportManagerImpl.FbExportResultStatus
FB出力フラグの列挙.
|
class |
FbExportManagerImpl.FbRecordDto
FBレコードDTO.
|
class |
FbExportManagerImpl.HeaderRecordDto
ヘッダレコードDTO.
|
class |
FbExportManagerImpl.TrailerRecordDto
トレーラレコードDTO.
|
FbExportManager.CompanyBankResultDto, FbExportManager.FbExportManagerParamDto, FbExportManager.FbExportManagerResultDto
修飾子とタイプ | フィールドと説明 |
---|---|
protected BigDecimal |
allTotalAmount
振込合計金額.
|
protected ContextHelper |
contextHelper
ContextHelper.
|
protected int |
dataRecordCount
データ部出力件数.
|
protected List<FbExportManagerImpl.DataRecordDto> |
dataRecordDtoList
データレコード情報リスト.
|
protected DateHelper |
dateHelper
DateHelper.
|
protected FbExportManagerImpl.EndRecordDto |
endRecordDto
エンドレコード情報.
|
protected static BigDecimal |
FB_MAX_AMOUNT
FBデータファイル最大金額「999,999,999,999」.
|
protected static int |
FB_MAX_COUNT
FBデータファイル最大データ件数「999,999」.
|
protected static BigDecimal |
FB_USER_MAX_AMOUNT
1ユーザあたり最大金額「9,999,999,999」.
|
protected List<jp.co.slcs.kaiden.v2.product_workflow.foundation.model.entity.K30tFbControl> |
fbControlUpdateList
FB制御テーブル更新データ.
|
protected FbExportHelper |
fbExportHelper
FbExportHelper.
|
protected List<jp.co.slcs.kaiden.v2.product_workflow.foundation.model.entity.K30tFbHistory> |
fbHistoryInsertList
FB履歴テーブル新規登録データ.
|
protected List<jp.co.slcs.kaiden.v2.product_workflow.foundation.model.entity.K30tFbHistory> |
fbHistoryUpdateList
FB履歴テーブル更新データ.
|
protected GenericManager |
genericManager
GenericManager.
|
protected FbExportManagerImpl.HeaderRecordDto |
headerRecordDto
ヘッダレコード情報.
|
protected boolean |
isNotExport
ファイル出力しないモード.
|
protected jp.co.slcs.kaiden.v2.base.foundation.model.service.K10mCompanyBankService |
k10mCompanyBankService
K10mCompanyBankService.
|
protected jp.co.slcs.kaiden.v2.product_workflow.foundation.model.service.K30tFbControlService |
k30tFbControlService
K30tFbControlService.
|
protected jp.co.slcs.kaiden.v2.product_workflow.foundation.model.service.K30tFbHistoryService |
k30tFbHistoryService
K30tFbHistoryService.
|
protected LockHelper |
lockHelper
LockHelper.
|
protected Map<String,Object> |
map4Custom
カスタマイズ用.
|
protected int |
matterCount
1ユーザの案件数.
|
protected Timestamp |
outputTimestamp
FB出力日時.
|
protected PropertyHelper |
propertyHelper
PropertyHelper.
|
protected static String |
ROCK_KEY
ロックキー.
|
protected String |
skipMinusAmount
金額がマイナスの従業員をスキップ.
|
protected String |
skipNotUsesSettle
立替精算口座がない従業員をスキップ.
|
protected List<String> |
skipUserList
スキップユーザ.
|
protected StorageFileHelper |
storageFileHelper
StorageFileHelper.
|
protected FbExportManagerImpl.TrailerRecordDto |
trailerRecordDto
トレーラレコード情報.
|
protected static long |
TRY_LOCK_WAIT_TIME
ロックタイムアウト時間(秒).
|
protected List<String> |
userNotSkipErrorMsgList
スキップしないユーザチェックのメッセージリスト.
|
protected List<String> |
userSkipErrorMsgList
スキップするユーザチェックのメッセージリスト.
|
SELECT_COMPANY_BANK_SQLFILE_NM, SELECT_FB_EXPORT_DATA_SQLFILE_NM, SELECT_FBDATA_FOR_LUMP_EXPORT_SQLFILE_NM
コンストラクタと説明 |
---|
FbExportManagerImpl() |
protected static final long TRY_LOCK_WAIT_TIME
protected static final BigDecimal FB_USER_MAX_AMOUNT
protected static final BigDecimal FB_MAX_AMOUNT
protected static final int FB_MAX_COUNT
protected List<jp.co.slcs.kaiden.v2.product_workflow.foundation.model.entity.K30tFbControl> fbControlUpdateList
protected List<jp.co.slcs.kaiden.v2.product_workflow.foundation.model.entity.K30tFbHistory> fbHistoryUpdateList
protected List<jp.co.slcs.kaiden.v2.product_workflow.foundation.model.entity.K30tFbHistory> fbHistoryInsertList
@Autowired protected GenericManager genericManager
@Autowired protected jp.co.slcs.kaiden.v2.base.foundation.model.service.K10mCompanyBankService k10mCompanyBankService
@Autowired protected jp.co.slcs.kaiden.v2.product_workflow.foundation.model.service.K30tFbControlService k30tFbControlService
@Autowired protected jp.co.slcs.kaiden.v2.product_workflow.foundation.model.service.K30tFbHistoryService k30tFbHistoryService
@Autowired protected StorageFileHelper storageFileHelper
@Autowired protected PropertyHelper propertyHelper
@Autowired protected FbExportHelper fbExportHelper
@Autowired protected DateHelper dateHelper
@Autowired protected ContextHelper contextHelper
@Autowired protected LockHelper lockHelper
protected int dataRecordCount
protected Timestamp outputTimestamp
protected FbExportManagerImpl.HeaderRecordDto headerRecordDto
protected List<FbExportManagerImpl.DataRecordDto> dataRecordDtoList
protected FbExportManagerImpl.TrailerRecordDto trailerRecordDto
protected FbExportManagerImpl.EndRecordDto endRecordDto
protected BigDecimal allTotalAmount
protected int matterCount
protected boolean isNotExport
ファイル出力を行わず、結果を返却する
protected String skipNotUsesSettle
1の場合にエラーとせずにスキップして処理を続行する。
protected String skipMinusAmount
1の場合にエラーとせずにスキップして処理を続行する。
public FbExportManager.FbExportManagerResultDto export(FbExportManager.FbExportManagerParamDto paramDto) throws KaidenSystemException
export
インタフェース内 FbExportManager
paramDto
- パラメータKaidenSystemException
- システムエラーprotected FbExportManager.FbExportManagerResultDto exportMain(FbExportManager.FbExportManagerParamDto paramDto) throws KaidenSystemException
paramDto
- パラメータKaidenSystemException
- システムエラーprotected void exportEnd(FbExportManager.FbExportManagerResultDto resultDto, FbExportManager.FbExportManagerParamDto paramDto, String fileName)
FB出力処理の後処理を行います。
resultDto
- 処理結果paramDto
- パラメータfileName
- ファイル名public <DTO extends FbExportManagerImpl.FbRecordDto> String processRecord(FbExportManager.FbExportManagerParamDto paramDto, String newlineCharType, DTO recordDto, String fileName) throws KaidenSystemException
DTO
- recordDtoparamDto
- パラメータnewlineCharType
- 改行コードrecordDto
- 出力データfileName
- ファイル名KaidenSystemException
- 予期しないエラーprotected void updateAssociationTable()
FB制御テーブル、FB履歴テーブルを更新し、 FB履歴テーブルに新たな履歴を登録します。
protected boolean checkCmpBankExist(FbExportManager.FbExportManagerResultDto resultDto, List<FbExportManager.CompanyBankResultDto> cmpBankDtoList)
振込元口座が会社マスタに存在しない場合にエラー。 エラーが発生した場合は引数のresultDtoに詳細情報をセットして、falseを返却します。
resultDto
- 処理結果cmpBankDtoList
- 会社口座マスタ取得結果protected boolean checkCmpBankFacilExist(FbExportManager.FbExportManagerResultDto resultDto, FbExportManager.CompanyBankResultDto cmpBankDto)
振込元口座が会社マスタに存在しない場合にエラー。 エラーが発生した場合は引数のresultDtoに詳細情報をセットして、falseを返却します。
resultDto
- 処理結果cmpBankDto
- 口座に紐づく金融機関マスタprotected boolean setupExportData(FbExportManager.FbExportManagerResultDto resultDto, FbExportManager.FbExportManagerParamDto paramDto, FbExportManager.CompanyBankResultDto cmpBankDto, List<FbExportManager.FbExportManagerParamDto.FbExportManagerApplicationDto> sortedList, String fileName) throws KaidenSystemException
FBファイルのデータ部を生成し、出力します。 処理を続行できない事由が発生した場合は引数のresultDtoに詳細情報をセットして、falseを返却します。 正常に処理が完了した場合には以下の処理を行います。
#setFbUpdateData(FbDataResultDto, FbExportManagerParamDto)
にてステータス更新情報を生成resultDto
- 処理結果paramDto
- パラメータcmpBankDto
- 会社口座情報sortedList
- 申請書情報fileName
- ファイル名KaidenSystemException
- システムエラーprotected boolean checkTargetFbdata(FbExportManager.FbExportManagerResultDto resultDto, FbExportManager.FbExportManagerParamDto.FbExportManagerApplicationDto applicationDto, List<FbDataResultDto> fbDataResultDtoList)
出力対象データキーに紐づく申請書データが存在しない、または 2件以上取得できてしまった場合にエラー エラーが発生した場合は引数のresultDtoに詳細情報をセットして、falseを返却します。
resultDto
- 処理結果applicationDto
- 出力対象データキーfbDataResultDtoList
- 出力対象データ取得結果protected List<FbExportManager.FbExportManagerParamDto.FbExportManagerApplicationDto> applicationSort(List<FbExportManager.FbExportManagerParamDto.FbExportManagerApplicationDto> dtoList)
dtoList
- ソート前リストprotected void doExec(FbExportManager.FbExportManagerParamDto paramDto, FbExportManager.CompanyBankResultDto cmpBankDto, FbDataResultDto dto, BigDecimal userTotalAmount, String fileName, FbExportManager.FbExportManagerResultDto resultDto) throws KaidenSystemException
paramDto
- マネージャパラメータDTOcmpBankDto
- 振込元口座情報dto
- FB出力データuserTotalAmount
- ユーザ単位サマリ金額fileName
- 出力ファイル名称resultDto
- 処理結果DTOKaidenSystemException
- XMLファイル読み取りエラーprotected List<FbDataResultDto> getFbData(FbExportManager.FbExportManagerParamDto paramDto, FbExportManager.FbExportManagerParamDto.FbExportManagerApplicationDto applicationDto)
paramDto
- マネージャパラメータDTOapplicationDto
- 申請書のシステム案件ID、ユーザデータIDprotected void setFbUpdateData(FbDataResultDto dto, FbExportManager.FbExportManagerParamDto paramDto)
dto
- FBデータparamDto
- パラメータDTOprotected boolean checkUserData(FbDataResultDto dto, BigDecimal userTotalAmount, FbExportManager.FbExportManagerResultDto resultDto)
dto
- FBデータuserTotalAmount
- ユーザ単位サマリ金額resultDto
- 処理結果DTOprotected FbExportManagerImpl.HeaderRecordDto createHeaderRecord(FbExportManager.FbExportManagerParamDto paramDto, FbExportManager.CompanyBankResultDto cmpBankDto)
paramDto
- マネージャパラメータcmpBankDto
- 振込元口座情報protected FbExportManagerImpl.DataRecordDto createDataRecord(FbExportManager.FbExportManagerParamDto paramDto, FbExportManager.CompanyBankResultDto cmpBankDto, FbDataResultDto dto, BigDecimal userTotalAmount)
paramDto
- マネージャパラメータcmpBankDto
- 振込元口座情報dto
- 出力対象データuserTotalAmount
- ユーザ単位振込金額合計protected FbExportManagerImpl.TrailerRecordDto createTrailerRecord(int processCnt, BigDecimal totalAmount)
processCnt
- 処理件数totalAmount
- 振込合計金額protected FbExportManagerImpl.EndRecordDto createEndRecord()
public FbExportManager.FbExportManagerResultDto lumpExport(Map<String,Object> searchCriteriaParamMap, FbExportManager.FbExportManagerParamDto exportParamDto) throws KaidenSystemException
FBデータ一括出力機能向け、出力処理を実施します。
lumpExport
インタフェース内 FbExportManager
searchCriteriaParamMap
- 絞り込み条件exportParamDto
- 出力パラメータKaidenSystemException
- システムエラーCopyright © 2023 Sumitomo Life Information Systems Co., Ltd. All Rights Reserved.