|
@@ -1,8 +1,13 @@
|
|
|
package com.ruoyi.system.enterprise.base.controller;
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
import java.io.IOException;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
+
|
|
|
+import com.ruoyi.system.enterprise.base.domain.TECompareobjectInstance;
|
|
|
+import com.ruoyi.system.enterprise.base.service.ITECompareobjectInstanceService;
|
|
|
+import org.apache.xmlbeans.impl.xb.xsdschema.All;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
@@ -34,6 +39,8 @@ public class TECompareobjectGroupController extends BaseController
|
|
|
{
|
|
|
@Autowired
|
|
|
private ITECompareobjectGroupService tECompareobjectGroupService;
|
|
|
+ @Autowired
|
|
|
+ private ITECompareobjectInstanceService tECompareobjectInstanceService;
|
|
|
|
|
|
/**
|
|
|
* 查询实例小组列表
|
|
@@ -47,6 +54,34 @@ public class TECompareobjectGroupController extends BaseController
|
|
|
List<TECompareobjectGroup> list = tECompareobjectGroupService.selectTECompareobjectGroupList(tECompareobjectGroup);
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
+ /**
|
|
|
+ * 局部初始化实例小组列表
|
|
|
+ */
|
|
|
+ @RequiresPermissions("system.base:group:listgroup")
|
|
|
+ @GetMapping("/listgroup/{id}")
|
|
|
+ public TableDataInfo list(@PathVariable("id")String CompareId)
|
|
|
+ {
|
|
|
+// System.out.println(tECompareobjectGroup+"前端传过来的小组的数据");
|
|
|
+ System.out.println("CompareId这是多少"+CompareId);
|
|
|
+ startPage();
|
|
|
+ TECompareobjectGroup tECompareobjectGroup = new TECompareobjectGroup();
|
|
|
+ tECompareobjectGroup.setId(CompareId);
|
|
|
+
|
|
|
+ TECompareobjectInstance tECompareobjectInstance = new TECompareobjectInstance();
|
|
|
+ tECompareobjectInstance.setGroupId(CompareId);
|
|
|
+
|
|
|
+ System.out.println("tECompareobjectGroup这是什么"+tECompareobjectGroup);
|
|
|
+ List<TECompareobjectInstance> Instancelist = tECompareobjectInstanceService.selectTECompareobjectInstanceList(tECompareobjectInstance);
|
|
|
+ TECompareobjectGroup Grouplist = tECompareobjectGroupService.selectTECompareobjectGroupById(CompareId);
|
|
|
+
|
|
|
+
|
|
|
+ List AllList = new ArrayList();
|
|
|
+ AllList.add(Instancelist);
|
|
|
+ AllList.add(Grouplist);
|
|
|
+
|
|
|
+
|
|
|
+ return getDataTable(AllList);
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* 导出实例小组列表
|