|
|
@@ -21,9 +21,8 @@ import jxl.write.biff.RowsExceededException;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
import java.io.*;
|
|
|
import java.util.List;
|
|
|
@@ -45,8 +44,8 @@ public class AppUpgradeStatusController extends BaseController{
|
|
|
/**
|
|
|
* 升级状态查询-列表
|
|
|
*/
|
|
|
- @PostMapping("/list")
|
|
|
- public TableDataInfo list(Page<UpgradeBatchInfo> page, UpgradeBatchInfo info){
|
|
|
+ @GetMapping("/list")
|
|
|
+ public TableDataInfo list(Page<UpgradeBatchInfo> page,UpgradeBatchInfo info){
|
|
|
IPage<UpgradeBatchInfo> result = upgradeBatchInfoService.selectPage(page,info);
|
|
|
return getDataTable(result);
|
|
|
}
|
|
|
@@ -54,7 +53,7 @@ public class AppUpgradeStatusController extends BaseController{
|
|
|
/**
|
|
|
* 升级状态查询-详情
|
|
|
*/
|
|
|
- @PostMapping("/detail")
|
|
|
+ @GetMapping("/detail")
|
|
|
public AjaxResult detail(String id, String orgName, Integer status){
|
|
|
List<BatchHostInfo> batchHosts = upgradeBatchInfoService.getBatchHosts(id,orgName,status);
|
|
|
return AjaxResult.success(batchHosts);
|
|
|
@@ -62,7 +61,7 @@ public class AppUpgradeStatusController extends BaseController{
|
|
|
/**
|
|
|
* 升级状态查询-详情下的二级详情
|
|
|
*/
|
|
|
- @PostMapping("/appsDetail")
|
|
|
+ @GetMapping("/appsDetail")
|
|
|
public AjaxResult appsDetail(String hostId, String batchNumber){
|
|
|
List<UpgradeTask> upgradeTasks = upgradeTaskService.batchTask(hostId, batchNumber);
|
|
|
for (UpgradeTask upgradeTask : upgradeTasks) {
|