|
|
@@ -36,6 +36,7 @@ import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
+import org.springframework.util.CollectionUtils;
|
|
|
|
|
|
import java.time.LocalDateTime;
|
|
|
import java.time.ZoneId;
|
|
|
@@ -544,14 +545,24 @@ public class ExecutionTaskServiceImpl implements ExecutionTaskService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void batchCreateDeconstructTask(String dtList, String contentScope) {
|
|
|
- if (StringUtils.isEmpty(dtList)) {
|
|
|
+ public void batchCreateDeconstructTask(CommonRequest<JSONObject> request) {
|
|
|
+ if (Objects.isNull(request.getParams()) || request.getParams().isEmpty()) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- List<String> dts = Arrays.stream(dtList.split(","))
|
|
|
- .filter(StringUtils::isNotEmpty)
|
|
|
+ JSONObject requestParamJson = request.getParams();
|
|
|
+ String contentScope = requestParamJson.getString("contentScope");
|
|
|
+ String dtListStr = requestParamJson.getString("dts");
|
|
|
+ if (StringUtils.isBlank(dtListStr) || StringUtils.isBlank(contentScope)) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ List<String> dts = Arrays.stream(dtListStr.split(","))
|
|
|
+ .filter(StringUtils::isBlank)
|
|
|
.collect(Collectors.toList());
|
|
|
+ if (CollectionUtils.isEmpty(dts)) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
|
|
|
log.info("batchCreateDeconstructTask: {}", dts);
|
|
|
|