|
@@ -419,7 +419,12 @@ public class CustomFunction {
|
|
|
**/
|
|
|
public static Object dateAfter(Object date, Object n) {
|
|
|
if (StringUtils.isNotEmpty(date) && StringUtils.isNotEmpty(n)) {
|
|
|
- List<String> dateList = ((List<String>)date);
|
|
|
+ List<String> dateList =new ArrayList<>();
|
|
|
+ if (date instanceof List) {
|
|
|
+ dateList = ((List<String>)date);
|
|
|
+ }else{
|
|
|
+ dateList.add(date.toString());
|
|
|
+ }
|
|
|
LinkedList<Integer> offSet = new LinkedList<>();
|
|
|
if (n instanceof List) {
|
|
|
offSet.addAll((List<Integer>)n);
|