public interface WrecControlManager
修飾子とタイプ | メソッドと説明 |
---|---|
int |
applyActual(String userCd,
Timestamp targetDate,
KlwMatterInfo klwMatterInfo)
勤務データの「実績申請」状態のレコードを作成.
|
int |
applyPlan(String userCd,
Timestamp targetDate,
KlwMatterInfo klwMatterInfo)
勤務データの「予定申請」状態のレコードを作成.
|
int |
correct(String userCd,
Timestamp targetDate,
KlwMatterInfo klwMatterInfo)
勤務データの「訂正済み」状態のレコードを作成.
|
int |
deleteBatch(String userCd,
Timestamp startDate,
Timestamp endDate)
条件にマッチするデータを一括削除.
|
int |
draft(String userCd,
Timestamp targetDate,
KlwMatterInfo klwMatterInfo)
勤務データの「保存」状態のレコードを作成.
|
boolean |
isActualApproveOnHoliday(String userCd,
String companyCd,
String periodIdCd)
締め期間内のすべての法定休日・所定休日のうち、入力されている日が実績承認済みであるか判定.
|
boolean |
isActualApproveOnWorkDay(String userCd,
String companyCd,
String periodIdCd)
締め期間内のすべての所定労働日が実績承認済みであるか判定.
|
WrecControlManagerDto |
select(String userCd,
Timestamp targetDate)
主キー検索.
|
WrecControlManagerDto |
select4Update(String userCd,
Timestamp targetDate)
主キー検索(ロックを取得).
|
WrecControlManagerDto |
select4UpdateWithSubstitution(String userCd,
Timestamp targetDate,
Timestamp companionDate1,
Timestamp companionDate2)
主キー検索(ロックを取得).
|
WrecControlManagerDto |
selectActual(String systemMatterId,
String userDataId)
案件IDより実績申請の最新を検索.
|
WrecControlManagerDto |
selectActual4Update(String systemMatterId,
String userDataId)
案件IDより実績申請の最新を検索(ロックを取得).
|
WrecControlManagerDto |
selectBySystemMatterId(String systemMatterId)
システム案件IDより検索.
|
WrecControlManagerDto |
selectCurrent(String systemMatterId,
String userDataId)
最新案件IDより検索.
|
WrecControlManagerDto |
selectCurrent4Update(String systemMatterId,
String userDataId)
最新案件IDより検索(ロックを取得).
|
List<WrecControlManagerDto> |
selectListBetween4Update(String userCd,
Timestamp startDate,
Timestamp endDate)
特定の日付範囲の勤務データ制御テーブルを検索(ロックを取得).
|
WrecControlManagerDto |
selectPlan(String systemMatterId,
String userDataId)
案件IDより予定申請の最新を検索.
|
WrecControlManagerDto |
selectPlan4Update(String systemMatterId,
String userDataId)
案件IDより予定申請の最新を検索(ロックを取得).
|
void |
updateStatusActual(String systemMatterId,
String userDataId,
KlwMatterStatus status)
実績申請の中で最新の勤務データのステータスを更新.
|
void |
updateStatusActual(String userCd,
Timestamp targetDate,
KlwMatterStatus status)
実績申請の中で最新の勤務データのステータスを更新.
|
void |
updateStatusCurrent(String systemMatterId,
String userDataId,
KlwMatterStatus status)
勤務データの最新の申請(予定もしくは実績)のステータスを更新.
|
void |
updateStatusCurrent(String userCd,
Timestamp targetDate,
KlwMatterStatus status)
勤務データのステータスを更新.
|
void |
updateStatusCurrentNoException(String userCd,
Timestamp targetDate,
KlwMatterStatus status)
勤務データのステータスを更新(例外なし).
|
void |
updateStatusPlan(String systemMatterId,
String userDataId,
KlwMatterStatus status)
予定申請の中で最新の勤務データのステータスを更新.
|
void |
updateStatusPlan(String userCd,
Timestamp targetDate,
KlwMatterStatus status)
予定申請の中で最新の勤務データのステータスを更新.
|
WrecControlManagerDto select(String userCd, Timestamp targetDate)
userCd
- ユーザコードtargetDate
- 対象日WrecControlManagerDto select4Update(String userCd, Timestamp targetDate)
userCd
- ユーザコードtargetDate
- 対象日WrecControlManagerDto select4UpdateWithSubstitution(String userCd, Timestamp targetDate, Timestamp companionDate1, Timestamp companionDate2)
すでに取得済みの振替出勤日の対象レコード、振替休日の対象レコード、これから取得する振替出勤に対応する振替休日、これから取得する振替休日に対応する振替出勤日のすべてをロック
最低1レコード、最大で3レコードロックされます
userCd
- ユーザコードtargetDate
- 対象日companionDate1
- これから取得する振替出勤に対応する振替休日companionDate2
- これから取得する振替休日に対応する振替出勤日WrecControlManagerDto selectCurrent(String systemMatterId, String userDataId)
systemMatterId
- システム案件IDuserDataId
- ユーザデータIDWrecControlManagerDto selectCurrent4Update(String systemMatterId, String userDataId)
systemMatterId
- システム案件IDuserDataId
- ユーザデータIDWrecControlManagerDto selectBySystemMatterId(String systemMatterId)
systemMatterId
- システム案件IDWrecControlManagerDto selectPlan(String systemMatterId, String userDataId)
systemMatterId
- システム案件IDuserDataId
- ユーザデータIDWrecControlManagerDto selectPlan4Update(String systemMatterId, String userDataId)
systemMatterId
- システム案件IDuserDataId
- ユーザデータIDWrecControlManagerDto selectActual(String systemMatterId, String userDataId)
systemMatterId
- システム案件IDuserDataId
- ユーザデータIDWrecControlManagerDto selectActual4Update(String systemMatterId, String userDataId)
systemMatterId
- システム案件IDuserDataId
- ユーザデータIDint draft(String userCd, Timestamp targetDate, KlwMatterInfo klwMatterInfo)
すでに同一キーデータがある場合にはUPDATE、無ければINSERTします
userCd
- ユーザコードtargetDate
- 対象日klwMatterInfo
- システム案件ID・ユーザデータIDなどint applyPlan(String userCd, Timestamp targetDate, KlwMatterInfo klwMatterInfo)
すでに同一キーデータがある場合にはUPDATE、無ければINSERTします
userCd
- ユーザコードtargetDate
- 対象日klwMatterInfo
- システム案件ID・ユーザデータIDなどint applyActual(String userCd, Timestamp targetDate, KlwMatterInfo klwMatterInfo)
すでに同一キーデータがある場合にはUPDATE、無ければINSERTします
userCd
- ユーザコードtargetDate
- 対象日klwMatterInfo
- システム案件ID・ユーザデータIDなどint correct(String userCd, Timestamp targetDate, KlwMatterInfo klwMatterInfo)
すでに同一キーデータがある場合にはUPDATE、無ければINSERTします
userCd
- ユーザコードtargetDate
- 対象日klwMatterInfo
- システム案件ID・ユーザデータIDなどvoid updateStatusCurrent(String userCd, Timestamp targetDate, KlwMatterStatus status) throws KlwNotFoundMatterException
更新ステータスがKlwMatterStatus.CANCEL
の場合は、カレントステータス・カレントユーザデータID・予定最終ステータス・予定最終ユーザデータID・実績最終ステータス・実績最終ステータスはnullに更新されます。
userCd
- ユーザコードtargetDate
- 対象日status
- 更新ステータスKlwNotFoundMatterException
- 対象の案件が存在しないvoid updateStatusCurrentNoException(String userCd, Timestamp targetDate, KlwMatterStatus status)
更新ステータスがKlwMatterStatus.CANCEL
の場合は、カレントステータス・カレントユーザデータID・予定最終ステータス・予定最終ユーザデータID・実績最終ステータス・実績最終ステータスはnullに更新されます。
userCd
- ユーザコードtargetDate
- 対象日status
- 更新ステータスvoid updateStatusPlan(String userCd, Timestamp targetDate, KlwMatterStatus status) throws KlwNotFoundMatterException
予定申請より実績申請の方が最新であったとしても、更新対象となるのは予定申請です。
userCd
- ユーザコードtargetDate
- 対象日status
- 更新ステータスKlwNotFoundMatterException
- 対象の案件が存在しないvoid updateStatusActual(String userCd, Timestamp targetDate, KlwMatterStatus status) throws KlwNotFoundMatterException
実績申請より予定申請の方が最新であったとしても、更新対象となるのは実績申請です。
userCd
- ユーザコードtargetDate
- 対象日status
- 更新ステータスKlwNotFoundMatterException
- 対象の案件が存在しないvoid updateStatusCurrent(String systemMatterId, String userDataId, KlwMatterStatus status) throws KlwNotFoundMatterException
systemMatterId
- システム案件IDuserDataId
- ユーザデータIDstatus
- 更新ステータスKlwNotFoundMatterException
- 対象の案件が存在しない/指定された案件が最新案件でないvoid updateStatusPlan(String systemMatterId, String userDataId, KlwMatterStatus status) throws KlwNotFoundMatterException
予定申請より実績申請の方が最新であったとしても、更新対象となるのは予定申請です。
systemMatterId
- システム案件IDuserDataId
- ユーザデータIDstatus
- 更新ステータスKlwNotFoundMatterException
- 対象の案件が存在しない/指定された案件が最新の予定申請でないvoid updateStatusActual(String systemMatterId, String userDataId, KlwMatterStatus status) throws KlwNotFoundMatterException
実績申請より予定申請の方が最新であったとしても、更新対象となるのは実績申請です。
systemMatterId
- システム案件IDuserDataId
- ユーザデータIDstatus
- 更新ステータスKlwNotFoundMatterException
- 対象の案件が存在しない/指定された案件が最新の実績申請でないint deleteBatch(String userCd, Timestamp startDate, Timestamp endDate)
この処理では、関連するデータ(日次勤務データ、日次勤務休憩・控除・時間年休)は削除しません
userCd
- ユーザコードstartDate
- 開始日endDate
- 終了日List<WrecControlManagerDto> selectListBetween4Update(String userCd, Timestamp startDate, Timestamp endDate)
userCd
- ユーザコードstartDate
- 対象日範囲の開始日endDate
- 対象日範囲の終了日boolean isActualApproveOnWorkDay(String userCd, String companyCd, String periodIdCd)
userCd
- ユーザコードcompanyCd
- 会社コードperiodIdCd
- 締め期間コードCopyright © 2024 Sumitomo Life Information Systems Co., Ltd. All Rights Reserved.