Skip to content

Commit

Permalink
[Fix-13505] [complement] enter startup parameters, the complement tas…
Browse files Browse the repository at this point in the history
…k is not started (#13510)

* fix 13496

* fix 13505

---------

Co-authored-by: JinyLeeChina <[email protected]>
  • Loading branch information
brave-lee and JinyLeeChina authored Feb 5, 2023
1 parent 6434797 commit 437d8ca
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ private BusinessTimeUtils() {
*/
public static Map<String, String> getBusinessTime(CommandType commandType, Date runTime) {
Date businessDate;
Map<String, String> result = new HashMap<>();
switch (commandType) {
case COMPLEMENT_DATA:
businessDate = DateUtils.addDays(runTime, -1);
break;
if (runTime == null) {
return result;
}
case START_PROCESS:
case START_CURRENT_TASK_PROCESS:
case RECOVER_TOLERANCE_FAULT_PROCESS:
Expand All @@ -70,7 +72,6 @@ public static Map<String, String> getBusinessTime(CommandType commandType, Date
break;
}
Date businessCurrentDate = addDays(businessDate, 1);
Map<String, String> result = new HashMap<>();
result.put(Constants.PARAMETER_CURRENT_DATE, format(businessCurrentDate, PARAMETER_FORMAT_DATE));
result.put(Constants.PARAMETER_BUSINESS_DATE, format(businessDate, PARAMETER_FORMAT_DATE));
result.put(Constants.PARAMETER_DATETIME, format(businessCurrentDate, PARAMETER_FORMAT_TIME));
Expand Down

0 comments on commit 437d8ca

Please sign in to comment.