|
@@ -16,6 +16,7 @@ import org.springblade.core.mp.support.Query;
|
|
|
import org.springblade.core.secure.BladeUser;
|
|
|
import org.springblade.core.tool.api.R;
|
|
|
import org.springblade.core.tool.support.Kv;
|
|
|
+import org.springblade.core.tool.utils.Func;
|
|
|
import org.springblade.manager.dto.WbsTreePrivateDTO2;
|
|
|
import org.springblade.manager.dto.WbsTreePrivateDTO3;
|
|
|
import org.springblade.manager.entity.ProjectInfo;
|
|
@@ -34,6 +35,7 @@ import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.validation.Valid;
|
|
|
|
|
|
+import java.io.IOException;
|
|
|
import java.util.*;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
@@ -480,6 +482,10 @@ public class WbsTreePrivateController extends BladeController {
|
|
|
return R.status(wbsTreePrivateService.syncNodeTable(primaryKeyId));
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* wbs私有树懒加载获取项目私有节点树形结构--(表单类型划分树)
|
|
|
*/
|
|
@@ -493,7 +499,7 @@ public class WbsTreePrivateController extends BladeController {
|
|
|
})
|
|
|
public R<IPage<TreeNodeVOByTabType>> tabTypeLazyTree(Long parentId, String projectId, BladeUser bladeUser, String titleName, Query query) {
|
|
|
|
|
|
- IPage<TreeNodeVOByTabType> page = wbsTreePrivateService.tabTypeLazyTree(Condition.getPage(query), parentId, projectId, titleName);
|
|
|
+ IPage<TreeNodeVOByTabType> page= wbsTreePrivateService.tabTypeLazyTree(Condition.getPage(query),parentId, projectId,titleName);
|
|
|
return R.data(page);
|
|
|
}
|
|
|
|
|
@@ -505,8 +511,8 @@ public class WbsTreePrivateController extends BladeController {
|
|
|
@ApiImplicitParam(name = "primaryKeyIds", value = "表的注解ids(多个以,隔开)", required = true),
|
|
|
@ApiImplicitParam(name = "contractId", value = "合同段Id", required = true),
|
|
|
})
|
|
|
- public R addWbsTreeContractInfo(String nodeId, String primaryKeyIds, long contractId) {
|
|
|
- return wbsTreePrivateService.addWbsTreeContractInfo(nodeId, primaryKeyIds, contractId);
|
|
|
+ public R addWbsTreeContractInfo(String nodeId,String primaryKeyIds,long contractId){
|
|
|
+ return wbsTreePrivateService.addWbsTreeContractInfo(nodeId,primaryKeyIds,contractId);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -519,8 +525,8 @@ public class WbsTreePrivateController extends BladeController {
|
|
|
@ApiImplicitParam(name = "parentId", value = "父级id", required = true),
|
|
|
@ApiImplicitParam(name = "titleName", value = "搜索关键字", required = true)
|
|
|
})
|
|
|
- public R<IPage<TreeNodeVOByTabType>> tabTypeLazyTreeAll(Long parentId, BladeUser bladeUser, String titleName, Query query) {
|
|
|
- IPage<TreeNodeVOByTabType> page = wbsTreePrivateService.tabTypeLazyTreeAll(Condition.getPage(query), parentId, titleName);
|
|
|
+ public R<IPage<TreeNodeVOByTabType>> tabTypeLazyTreeAll(Long parentId,BladeUser bladeUser, String titleName, Query query) {
|
|
|
+ IPage<TreeNodeVOByTabType> page= wbsTreePrivateService.tabTypeLazyTreeAll(Condition.getPage(query),parentId,titleName);
|
|
|
return R.data(page);
|
|
|
}
|
|
|
|
|
@@ -531,8 +537,8 @@ public class WbsTreePrivateController extends BladeController {
|
|
|
@ApiImplicitParam(name = "primaryKeyIds", value = "表的注解ids(多个以,隔开)", required = true),
|
|
|
@ApiImplicitParam(name = "projectId", value = "合同段Id", required = true),
|
|
|
})
|
|
|
- public R addProjectTabInfo(String primaryKeyIds, String projectId) {
|
|
|
- return wbsTreePrivateService.addWbsTreeProjectInfo(primaryKeyIds, projectId);
|
|
|
+ public R addProjectTabInfo(String primaryKeyIds,String projectId){
|
|
|
+ return wbsTreePrivateService.addWbsTreeProjectInfo(primaryKeyIds,projectId);
|
|
|
}
|
|
|
|
|
|
@PostMapping("/del-aprojecttab-info")
|
|
@@ -542,19 +548,18 @@ public class WbsTreePrivateController extends BladeController {
|
|
|
@ApiImplicitParam(name = "primaryKeyIds", value = "表的注解ids(多个以,隔开)", required = true),
|
|
|
@ApiImplicitParam(name = "projectId", value = "项目id", required = true),
|
|
|
})
|
|
|
- public R delTabProjectById(String primaryKeyIds, String projectId) {
|
|
|
- return wbsTreePrivateService.delTabProjectById(primaryKeyIds, projectId);
|
|
|
+ public R delTabProjectById(String primaryKeyIds,String projectId){
|
|
|
+ return wbsTreePrivateService.delTabProjectById(primaryKeyIds,projectId);
|
|
|
}
|
|
|
|
|
|
@PostMapping("/del-tab-info-all")
|
|
|
@ApiOperationSupport(order = 21)
|
|
|
@ApiOperation(value = "后管-删除元素表", notes = "primaryKeyIds")
|
|
|
@ApiImplicitParams(value = {
|
|
|
- @ApiImplicitParam(name = "primaryKeyIds", value = "表的注解ids(多个以,隔开)", required = true)
|
|
|
+ @ApiImplicitParam(name = "pKeyId", value = "表的注解ids(多个以,隔开)", required = true)
|
|
|
})
|
|
|
- public R delTabInfoAll(String primaryKeyIds) {
|
|
|
-
|
|
|
- return R.success("成功");
|
|
|
+ public R delTabInfoAll(String pKeyId){
|
|
|
+ return wbsTreePrivateService.delTableById(pKeyId);
|
|
|
}
|
|
|
|
|
|
@GetMapping("/search-node-tables")
|