|
|
|
@ -13,6 +13,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
@ -76,9 +77,16 @@ public class PodTemplateController {
|
|
|
|
|
if (StringUtil.isBlank(resrce)) {
|
|
|
|
|
throw new BaseException("资源不能为空");
|
|
|
|
|
}
|
|
|
|
|
for (SfcDto sfcDto : sfcDtoList) {
|
|
|
|
|
podTemplateService.sfcComplete(sfcDto,resrce);
|
|
|
|
|
ArrayList<String> sfcList = new ArrayList<>();
|
|
|
|
|
try {
|
|
|
|
|
for (SfcDto sfcDto : sfcDtoList) {
|
|
|
|
|
String completeSfc = podTemplateService.sfcComplete(sfcDto, resrce);
|
|
|
|
|
sfcList.add(completeSfc);
|
|
|
|
|
}
|
|
|
|
|
}catch (Exception e){
|
|
|
|
|
return R.failed(sfcList,e.getMessage());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return R.ok();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|