|
|
@@ -1,12 +1,15 @@
|
|
|
package com.xunmei.core.resumption.controller;
|
|
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
+import com.xunmei.common.core.constant.SecurityConstants;
|
|
|
+import com.xunmei.common.core.domain.R;
|
|
|
import com.xunmei.common.core.web.domain.AjaxResult;
|
|
|
import com.xunmei.core.resumption.domain.AppPlan;
|
|
|
import com.xunmei.core.resumption.service.AppPlanService;
|
|
|
import com.xunmei.core.resumption.vo.appPlan.AppPlanVo;
|
|
|
import com.xunmei.core.resumption.vo.appPlan.RuleItemVo;
|
|
|
import com.xunmei.core.resumption.vo.appPlan.RuleRequestVo;
|
|
|
+import com.xunmei.system.api.RemoteOrgService;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
@@ -28,7 +31,8 @@ public class ApiPlanController {
|
|
|
|
|
|
@Autowired
|
|
|
private AppPlanService appPlanService;
|
|
|
-
|
|
|
+ @Autowired
|
|
|
+ private RemoteOrgService remoteOrgService;
|
|
|
|
|
|
// @Autowired
|
|
|
// ResumptionTaskBusiness taskBusiness;
|
|
|
@@ -43,6 +47,15 @@ public class ApiPlanController {
|
|
|
Page<AppPlan> result = appPlanService.selectPage(info);
|
|
|
return AjaxResult.success(result);
|
|
|
}
|
|
|
+ @RequestMapping("/test")
|
|
|
+ public AjaxResult test(Integer type){
|
|
|
+ R<List<Long>> res = remoteOrgService.findListByOrgType(type, SecurityConstants.INNER);
|
|
|
+ List<Long> list=null;
|
|
|
+ if (res.getCode()==200) {
|
|
|
+ list = res.getData();
|
|
|
+ }
|
|
|
+ return AjaxResult.success(list);
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* 检查要点分页查询
|