|
@@ -20,6 +20,7 @@ import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.bean.copier.CopyOptions;
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
|
+import cn.hutool.core.util.StrUtil;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
@@ -719,11 +720,15 @@ public class WmTaskContentServiceImpl extends ServiceImpl<WmTaskContentMapper, W
|
|
|
WmTaskSubmissionRule.SubmissionRule r = BeanUtil.mapToBean(map, WmTaskSubmissionRule.SubmissionRule.class, true, new CopyOptions());
|
|
|
|
|
|
if ("举办次数上限".equals(r.getManual())) {
|
|
|
- betweenDay = (int) r.getFrequency().get(0).get("quantity");
|
|
|
+ Object o = r.getFrequency().get(0).get("quantity");
|
|
|
+ betweenDay = o instanceof String ? Integer.parseInt((String) o) : (int) o;
|
|
|
}
|
|
|
if ("任务有效期限".equals(r.getManual())) {
|
|
|
|
|
|
- List<Integer> quantity = r.getFrequency().stream().map(f -> (int) f.get("quantity")).sorted().collect(Collectors.toList());
|
|
|
+ List<Integer> quantity = r.getFrequency().stream().map(f -> {
|
|
|
+ Object o = f.get("quantity");
|
|
|
+ return o instanceof String ? Integer.parseInt((String) o) : (int) o;
|
|
|
+ }).sorted().collect(Collectors.toList());
|
|
|
upperLimit = quantity.get(0);
|
|
|
}
|
|
|
}
|