|
@@ -5,15 +5,17 @@ import com.business.domain.ImputationData;
|
|
import com.business.service.ImputationDataService;
|
|
import com.business.service.ImputationDataService;
|
|
import com.sooka.common.core.controller.BaseController;
|
|
import com.sooka.common.core.controller.BaseController;
|
|
import com.sooka.common.core.domain.AjaxResult;
|
|
import com.sooka.common.core.domain.AjaxResult;
|
|
|
|
+import com.sooka.framework.util.ShiroUtils;
|
|
|
|
+import com.sooka.system.domain.SysDept;
|
|
import com.sooka.system.domain.TUInterfaceinfo;
|
|
import com.sooka.system.domain.TUInterfaceinfo;
|
|
|
|
+import com.sooka.system.service.ISysDeptService;
|
|
import com.sooka.system.service.ITUInterfaceinfoService;
|
|
import com.sooka.system.service.ITUInterfaceinfoService;
|
|
import com.util.StaticScheduleTask;
|
|
import com.util.StaticScheduleTask;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.stereotype.Controller;
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
+import org.springframework.ui.ModelMap;
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
+import sun.plugin2.util.SystemUtil;
|
|
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
@@ -30,13 +32,33 @@ public class VisualizationController extends BaseController {
|
|
@Autowired
|
|
@Autowired
|
|
private ImputationDataService imputationDataService;
|
|
private ImputationDataService imputationDataService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private ISysDeptService sysDeptService;
|
|
|
|
+
|
|
@GetMapping("index")
|
|
@GetMapping("index")
|
|
- public String index(){
|
|
|
|
|
|
+ public String index(ModelMap mmap){
|
|
|
|
+ SysDept dept = new SysDept();
|
|
|
|
+ dept.setParentId(214L);
|
|
|
|
+ List<SysDept> depts = sysDeptService.selectDeptList(dept);
|
|
|
|
+ mmap.put("depts",depts);
|
|
return "/visualization/index";
|
|
return "/visualization/index";
|
|
}
|
|
}
|
|
|
|
|
|
- @GetMapping("tk_iframe")
|
|
|
|
- public String tk_iframe(){
|
|
|
|
|
|
+ @GetMapping("tk_iframe/{id}")
|
|
|
|
+ public String tk_iframe(@PathVariable("id") Long id, ModelMap mmap){
|
|
|
|
+ /**查询部门信息**/
|
|
|
|
+ SysDept sysDept = sysDeptService.selectDeptById(id);
|
|
|
|
+ /**查询接口列表**/
|
|
|
|
+ TUInterfaceinfo interfaceinfo = new TUInterfaceinfo();
|
|
|
|
+ interfaceinfo.setDeptId(id.toString());
|
|
|
|
+ List<TUInterfaceinfo> interfaceList = interfaceinfoService.selectTUInterfaceinfoList(interfaceinfo);
|
|
|
|
+ /**查询接口数量**/
|
|
|
|
+ TUInterfaceinfo shareCount = interfaceinfoService.getShareCountByDeptId(id.toString());
|
|
|
|
+
|
|
|
|
+ mmap.put("deptId",sysDept.getDeptId());
|
|
|
|
+ mmap.put("deptName",sysDept.getDeptName());
|
|
|
|
+ mmap.put("interfaceList",interfaceList);
|
|
|
|
+ mmap.put("shareCount",shareCount);
|
|
return "/visualization/tk_iframe";
|
|
return "/visualization/tk_iframe";
|
|
}
|
|
}
|
|
|
|
|