Browse Source

1.特殊情况重签不赋值填报人,2.修改试验自检关联字段展示不全3.修改试验检测样品时间搜索bug4.取样记录批量删除同时删除和进场材料的关联记录5.质检删除节点前的校验

DengLinLang 1 month ago
parent
commit
30471ce7fc
20 changed files with 154 additions and 430 deletions
  1. 0 15
      blade-service-api/blade-business-api/src/main/java/org/springblade/business/feign/InformationQueryClient.java
  2. 0 7
      blade-service-api/blade-manager-api/src/main/java/org/springblade/manager/feign/ExcelTabClient.java
  3. 0 5
      blade-service-api/blade-manager-api/src/main/java/org/springblade/manager/feign/ExcelTabClientFallBack.java
  4. 2 1
      blade-service-api/blade-manager-api/src/main/java/org/springblade/manager/feign/WbsTreeContractClient.java
  5. 25 0
      blade-service/blade-business/src/main/java/org/springblade/business/controller/InformationWriteQueryController.java
  6. 4 4
      blade-service/blade-business/src/main/java/org/springblade/business/controller/TaskController.java
  7. 17 1
      blade-service/blade-business/src/main/java/org/springblade/business/controller/TrialMaterialController.java
  8. 0 6
      blade-service/blade-business/src/main/java/org/springblade/business/feignClient/InformationQueryClientImpl.java
  9. 1 4
      blade-service/blade-business/src/main/java/org/springblade/business/service/IInformationQueryService.java
  10. 1 3
      blade-service/blade-business/src/main/java/org/springblade/business/service/ITaskService.java
  11. 9 131
      blade-service/blade-business/src/main/java/org/springblade/business/service/impl/InformationQueryServiceImpl.java
  12. 75 5
      blade-service/blade-business/src/main/java/org/springblade/business/service/impl/TaskServiceImpl.java
  13. 0 128
      blade-service/blade-manager/src/main/java/org/springblade/manager/controller/ExcelTabController.java
  14. 0 4
      blade-service/blade-manager/src/main/java/org/springblade/manager/feign/ExcelTabClientImpl.java
  15. 9 1
      blade-service/blade-manager/src/main/java/org/springblade/manager/feign/WbsTreeContractClientImpl.java
  16. 2 1
      blade-service/blade-manager/src/main/java/org/springblade/manager/mapper/WbsTreeContractMapper.java
  17. 7 0
      blade-service/blade-manager/src/main/java/org/springblade/manager/mapper/WbsTreeContractMapper.xml
  18. 0 5
      blade-service/blade-manager/src/main/java/org/springblade/manager/service/IExcelTabService.java
  19. 1 107
      blade-service/blade-manager/src/main/java/org/springblade/manager/service/impl/ExcelTabServiceImpl.java
  20. 1 2
      blade-service/blade-user/src/main/java/org/springblade/system/user/controller/WbsTreeController.java

+ 0 - 15
blade-service-api/blade-business-api/src/main/java/org/springblade/business/feign/InformationQueryClient.java

@@ -57,21 +57,6 @@ public interface InformationQueryClient {
                                             @RequestParam String pdfUrl,
                                             @RequestParam String firstFileName,
                                             @RequestBody List<JSONObject> linkDataList);
-    /**
-     * 重签版
-     */
-    @PostMapping(API_PREFIX + "/saveOrUpdateInformationQueryDataReSign")
-    String saveOrUpdateInformationQueryDataReSign(@RequestParam String wbsId,
-                                            @RequestParam String tableId,
-                                            @RequestParam String businessId,
-                                            @RequestParam String fileName,
-                                            @RequestParam Integer classify,
-                                            @RequestParam Integer sourceType,
-                                            @RequestParam String isFirst,
-                                            @RequestParam String sourceUrl,
-                                            @RequestParam String pdfUrl,
-                                            @RequestParam String firstFileName,
-                                            @RequestBody List<JSONObject> linkDataList);
 
     @PostMapping(API_PREFIX + "/informationQuerySaveData")
     void saveData(@RequestParam String id, @RequestParam String projectId, @RequestParam String contractId, @RequestParam String classify, @RequestParam String link, @RequestParam String trialProjectName);

+ 0 - 7
blade-service-api/blade-manager-api/src/main/java/org/springblade/manager/feign/ExcelTabClient.java

@@ -57,13 +57,6 @@ public interface ExcelTabClient {
                  @RequestParam String projectId,
                  @RequestHeader("Blade-Auth") String header) throws Exception;
 
-    @PostMapping(API_PREFIX + "/synPDFInfoResign")
-    R synPDFInfoResign(@RequestParam String contractId,
-                 @RequestParam String nodeIds,
-                 @RequestParam String classify,
-                 @RequestParam String projectId,
-                 @RequestHeader("Blade-Auth") String header) throws Exception;
-
     @PostMapping(API_PREFIX + "/getArchiveTabList")
     List<ExcelTab> getArchiveTabList();
 

+ 0 - 5
blade-service-api/blade-manager-api/src/main/java/org/springblade/manager/feign/ExcelTabClientFallBack.java

@@ -47,11 +47,6 @@ public class ExcelTabClientFallBack implements ExcelTabClient {
         return null;
     }
 
-    @Override
-    public R synPDFInfoResign(String contractId, String nodeIds, String classify, String projectId, String header) throws Exception {
-        return null;
-    }
-
     @Override
     public List<ExcelTab> getArchiveTabList(){
         return null;

+ 2 - 1
blade-service-api/blade-manager-api/src/main/java/org/springblade/manager/feign/WbsTreeContractClient.java

@@ -11,7 +11,6 @@ import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestParam;
 
 import java.util.List;
-import java.util.Set;
 
 import static org.springblade.core.launch.constant.AppConstant.APPLICATION_NAME_PREFIX;
 
@@ -185,4 +184,6 @@ public interface WbsTreeContractClient {
     @GetMapping(API_PREFIX + "/searchNodeAllTableInfo")
     List<AppWbsTreeContractVO> searchNodeAllTableInfo(@RequestParam String primaryKeyId, @RequestParam String type, @RequestParam String contractId, @RequestParam String projectId, @RequestParam Long userId);
 
+    @PostMapping(API_PREFIX + "/selectContractJLForm")
+    List<WbsTreeContractTreeVOS> selectContractJLForm(@RequestBody List<Long> removeList);
 }

+ 25 - 0
blade-service/blade-business/src/main/java/org/springblade/business/controller/InformationWriteQueryController.java

@@ -2741,7 +2741,32 @@ public class InformationWriteQueryController extends BladeController {
             }
         }
     }
+    /**
+     * 查询当前节点下的数据 是否包含监理填报数据
+     */
+    @PostMapping("/removeContractTreeNodeJudge")
+    @ApiOperationSupport(order = 11)
+    @ApiOperation(value = "删除节点前的校验判断")
+    @ApiImplicitParam(name = "ids", value = "节点的primaryKeyId")
+    public R removeContractTreeNodeJudge(@RequestParam String ids) {
+        //删除的节点
+        WbsTreeContract removeNode = this.wbsTreeContractClient.getContractWbsTreeByPrimaryKeyId(Long.parseLong(ids));
+
+        List<WbsTreeContract> removeNodeList = new ArrayList<>();
+        this.currentNodeAllChild(removeNodeList, Collections.singletonList(removeNode), removeNode.getContractId());
 
+        //获取pKeyId
+        List<Long> removeList = removeNodeList.stream().map(WbsTreeContract::getPKeyId).distinct().collect(Collectors.toList());
+        removeList.add(Long.parseLong(ids));
+        if (removeList.size() > 0) {
+            /** 判断是否子节点有上存在监理填报内容的资料,提示用户谨慎操作*/
+            List<WbsTreeContractTreeVOS> list =  this.wbsTreeContractClient.selectContractJLForm(removeList);
+            if (list != null && list.size() >= 1) {
+                return R.data(300, false, "当前节点已存在监理资料,删除节点会把监理数据一并删除(永久删除),建议与监理方确认是否能删除该数据,请慎重删除!删除后果请自行负责。");
+            }
+        }
+        return R.data(true);
+    }
     /**
      * 删除节点
      *

+ 4 - 4
blade-service/blade-business/src/main/java/org/springblade/business/controller/TaskController.java

@@ -24,11 +24,12 @@ import org.springblade.archive.feign.ArchiveAutoClient;
 import org.springblade.archive.feign.ArchiveExpertConclusionClient;
 import org.springblade.business.dto.*;
 import org.springblade.business.entity.*;
-import org.springblade.business.service.*;
+import org.springblade.business.service.IDefaultConfigService;
+import org.springblade.business.service.ITaskParallelService;
+import org.springblade.business.service.ITaskService;
 import org.springblade.business.service.impl.MessageWarningServiceImpl;
 import org.springblade.business.utils.StringSPUtils;
 import org.springblade.business.vo.*;
-import org.springblade.common.constant.ClientIdConstant;
 import org.springblade.common.utils.SnowFlakeUtil;
 import org.springblade.core.boot.ctrl.BladeController;
 import org.springblade.core.log.exception.ServiceException;
@@ -69,7 +70,6 @@ import org.springframework.web.bind.annotation.*;
 import javax.servlet.http.HttpServletRequest;
 import java.io.FileNotFoundException;
 import java.io.IOException;
-import java.io.InputStream;
 import java.text.SimpleDateFormat;
 import java.time.Duration;
 import java.util.*;
@@ -1619,7 +1619,7 @@ public class TaskController extends BladeController {
             return R.fail("请选择一条记录");
         }
         String header = request.getHeader("Blade-Auth");
-        taskService.reSigningEVisa(dto.getClassifyType(), dto.getTaskIds(), dto.getContractId(), dto.getProjectId(), dto.getType(), header);
+        taskService.reSigningEVisa(dto.getClassifyType(), dto.getTaskIds(), dto.getContractId(), dto.getProjectId(), dto.getType(), header,request);
         return R.success("任务已经成功提交重签,请耐心等待!");
     }
 

+ 17 - 1
blade-service/blade-business/src/main/java/org/springblade/business/controller/TrialMaterialController.java

@@ -5,6 +5,7 @@ import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import lombok.AllArgsConstructor;
+import lombok.extern.slf4j.Slf4j;
 import org.springblade.business.dto.TrialMaterialMobilizationDTO;
 import org.springblade.business.dto.TrialSampleInfoDTO;
 import org.springblade.business.entity.TrialMaterialMobilization;
@@ -24,6 +25,8 @@ import org.springblade.core.mp.support.Condition;
 import org.springblade.core.mp.support.Query;
 import org.springblade.core.tool.api.R;
 import org.springblade.core.tool.utils.Func;
+import org.springframework.dao.DataAccessException;
+import org.springframework.jdbc.core.JdbcTemplate;
 import org.springframework.web.bind.annotation.*;
 import org.springframework.web.multipart.MultipartFile;
 
@@ -31,6 +34,7 @@ import javax.servlet.http.HttpServletResponse;
 import javax.validation.Valid;
 import java.util.List;
 
+@Slf4j
 @RestController
 @AllArgsConstructor
 @RequestMapping("/material")
@@ -39,6 +43,7 @@ public class TrialMaterialController extends BladeController {
 
     private final ITrialMaterialMobilizationService iTrialMaterialMobilizationService;
     private final ITrialSampleInfoService iTrialSampleInfoService;
+    private final JdbcTemplate jdbcTemplate;
 
     @GetMapping("/mobilization/verification")
     @ApiOperationSupport(order = 1)
@@ -144,7 +149,18 @@ public class TrialMaterialController extends BladeController {
     @ApiOperationSupport(order = 13)
     @ApiOperation(value = "样品材料批量删除", notes = "传入ids")
     public R<Object> sampleRemove(@Valid @RequestParam String ids) {
-        return R.status(iTrialSampleInfoService.deleteLogic(Func.toLongList(ids)));
+        boolean b = iTrialSampleInfoService.deleteLogic(Func.toLongList(ids));
+        if(b){
+            //删除关联表中的额数据
+            String sqlForDelTrailSampleRecord = "delete from u_trial_sampling_record where sample_info_id in ("+ids+")";
+            try {
+                jdbcTemplate.execute(sqlForDelTrailSampleRecord);
+            } catch (DataAccessException e) {
+                log.error("删除关联表中的额数据失败", e);
+                throw new RuntimeException(e);
+            }
+        }
+        return R.status(b);
     }
 
     @PostMapping("/sample/copy")

+ 0 - 6
blade-service/blade-business/src/main/java/org/springblade/business/feignClient/InformationQueryClientImpl.java

@@ -56,12 +56,6 @@ public class InformationQueryClientImpl implements InformationQueryClient {
         return this.iInformationQueryService.saveOrUpdateInformationQueryData(wbsId, tableId, businessId, fileName, classify, sourceType, isFirst, sourceUrl, pdfUrl, firstFileName, linkDataList);
     }
 
-    @Override
-    public String saveOrUpdateInformationQueryDataReSign(String wbsId, String tableId, String businessId, String fileName, Integer classify, Integer sourceType, String isFirst, String sourceUrl, String pdfUrl, String firstFileName, List<JSONObject> linkDataList) {
-        return this.iInformationQueryService.saveOrUpdateInformationQueryDataReSign(wbsId, tableId, businessId, fileName, classify, sourceType, isFirst, sourceUrl, pdfUrl, firstFileName, linkDataList);
-    }
-
-
     @Override
     public void saveData(String id, String projectId, String contractId, String classify, String link, String trialProjectName) {
         InformationQuery obj = new InformationQuery();

+ 1 - 4
blade-service/blade-business/src/main/java/org/springblade/business/service/IInformationQueryService.java

@@ -91,10 +91,7 @@ public interface IInformationQueryService extends BaseService<InformationQuery>
                                             String businessId, String fileName,
                                             Integer classify, Integer sourceType,
                                             String isFirst, String sourceUrl, String pdfUrl, String firstFileName, List<JSONObject> linkDataList);
-    String saveOrUpdateInformationQueryDataReSign(String wbsId, String tableId,
-                                            String businessId, String fileName,
-                                            Integer classify, Integer sourceType,
-                                            String isFirst, String sourceUrl, String pdfUrl, String firstFileName, List<JSONObject> linkDataList);
+
     /**
      * 获取当前合同段下所有的上报批次
      *

+ 1 - 3
blade-service/blade-business/src/main/java/org/springblade/business/service/ITaskService.java

@@ -22,7 +22,6 @@ import org.springblade.business.vo.TaskApprovalVO;
 import org.springblade.business.vo.TaskVO;
 import org.springblade.core.mp.base.BaseService;
 import org.springframework.scheduling.annotation.Async;
-import org.springframework.web.bind.annotation.RequestParam;
 
 import javax.servlet.http.HttpServletRequest;
 import java.io.FileNotFoundException;
@@ -98,7 +97,7 @@ public interface ITaskService extends BaseService<Task> {
     void delArchiveFileBusinessData(Long projectId, Long wbsId);
 
     @Async
-    void reSigningEVisa(String classify, String taskIds, String contractId, String projectId,Integer type, String header);
+    void reSigningEVisa(String classify, String taskIds, String contractId, String projectId,Integer type, String header,HttpServletRequest request);
 
     /**
      * 根据数据源id查询任务
@@ -114,5 +113,4 @@ public interface ITaskService extends BaseService<Task> {
      * 试验自检任务业务相关
      */
     void trialSelfTaskRelated(TaskApprovalVO taskApprovalVO, String pdfUrlEVisa, String batchId) throws FileNotFoundException;
-
 }

+ 9 - 131
blade-service/blade-business/src/main/java/org/springblade/business/service/impl/InformationQueryServiceImpl.java

@@ -36,7 +36,6 @@ import org.springblade.manager.feign.WbsTreeContractClient;
 import org.springblade.manager.vo.WbsTreeContractTreeVOS;
 import org.springblade.resource.feign.NewIOSSClient;
 import org.springblade.system.cache.ParamCache;
-import org.springblade.system.entity.Dept;
 import org.springblade.system.user.entity.User;
 import org.springblade.system.user.feign.IUserClient;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -80,10 +79,6 @@ public class InformationQueryServiceImpl extends BaseServiceImpl<InformationQuer
     private final ContractClient contractClient;
 
     private final JdbcTemplate jdbcTemplate;
-    //超级管理员的角色id
-    private final String SUPER_ADMIN_ROLE_ID ="1123598816738675201";
-    //泓创智诚公司的部门id
-    private final Long  HONGCHENG_DEPT_ID = 1536982621165592577L;
 
     @Autowired
     StringRedisTemplate RedisTemplate;
@@ -400,114 +395,18 @@ public class InformationQueryServiceImpl extends BaseServiceImpl<InformationQuer
                 if (StringUtils.isNotEmpty(fileName)) {
                     oldData.setName(fileName);
                 }
-                     //拼接填报人信息
-                     String fileUser = userId + "-" + userNmae;
-                     if (StringUtils.isNotEmpty(oldData.getFileUserIdAndName())) {
-                         if (!oldData.getFileUserIdAndName().contains(userId.toString())) {
-                             //不包含,拼接
-                             oldData.setFileUserIdAndName(oldData.getFileUserIdAndName() + "," + fileUser);
-                         }
-                     } else {
-                         oldData.setFileUserIdAndName(fileUser);
-                     }
-                oldData.setUpdateTime(new Date());
-                oldData.setUpdateUser(userId);
-
-                List<String> linkIds = linkDataList.stream().map(json -> json.getString("id")).distinct().collect(Collectors.toList());
-                if (linkIds.size() > 0) {
-                    oldData.setSjRecordIds(StringUtils.join(linkIds, ","));
-                }
-
-                //修改数据
-                this.baseMapper.updateById(oldData);
-            } else {
-                //新增基础数据
-                InformationQuery newData = new InformationQuery();
-                //设置文件题名
-                newData.setName(fileName);
-                //设置文件类型
-                newData.setCategory(contractTree.getNodeType());
-                //项目ID
-                newData.setProjectId(Long.parseLong(contractTree.getProjectId()));
-                //合同段ID
-                newData.setContractId(Long.parseLong(contractTree.getContractId()));
-                //施工资料还是质检资料
-                newData.setClassify(classify);
-                //节点ID
-                newData.setWbsId(contractTree.getPKeyId());
-
-                //1资料填报,2试验,3首件
-                newData.setType((contractTree.getIsExpernode() == null || contractTree.getIsExpernode() <= 0) ? 1 : 2);
-
-                //流程状态,默认未上报
-                newData.setStatus(0);
-                //填报人ID及姓名
-                newData.setFileUserIdAndName(userId + "-" + userNmae);
-                //数据源类型
-                newData.setSourceType(sourceType);
-                newData.setCreateUser(userId);
-                newData.setCreateTime(new Date());
-
-                List<String> linkIds = linkDataList.stream().map(json -> json.getString("id")).distinct().collect(Collectors.toList());
-                if (linkIds.size() > 0) {
-                    newData.setSjRecordIds(StringUtils.join(linkIds, ","));
-                }
-                //保存数据
-                this.baseMapper.insert(newData);
-            }
-        }
-        return null;
-    }
-
-    @Override
-    public String saveOrUpdateInformationQueryDataReSign(String primaryKeyId, String tableId, String businessId, String fileName, Integer classify, Integer sourceType, String isFirst, String sourceUrl, String pdfUrl, String firstFileName, List<JSONObject> linkDataList) {
-        Long userId = 0L;
-        String userNmae = "";
 
-        if (primaryKeyId.indexOf(":") >= 0) {
-            String prdata[] = primaryKeyId.split(":");
-            primaryKeyId = prdata[0];
-            userId = Long.parseLong(prdata[1]);
-            R<User> userR = userClient.userInfoById(userId);
-            userNmae = userR.getData().getName();
-        } else {
-            BladeUser user = AuthUtil.getUser();
-            if (user != null) {
-                userId = user.getUserId();
-                userNmae = user.getNickName();
-            } else {
-                /*非客户端调用,request里不一定有用户信息,暂停后续操作*/
-                return null;
-            }
-        }
-
-        if (StringUtils.isNotEmpty(isFirst) && "true".equals(isFirst)) {
-            return this.saveOrUpdateFirstInformationQueryData(primaryKeyId, tableId, businessId, fileName, classify, sourceType, sourceUrl, pdfUrl, firstFileName, linkDataList);
-        } else {
-            //首先根据wbsId获取合同段ID和项目ID
-            WbsTreeContract contractTree = this.wbsTreeContractClient.getContractWbsTreeByPrimaryKeyId(Long.parseLong(primaryKeyId));
-
-            //判断当前填报节点下是否已经存在相应数据
-            InformationQuery oldData = this.baseMapper.getInformationQueryByWbsId(contractTree.getPKeyId(), classify);
-
-            if (oldData != null) {
-                //存在记录,修改
-                if (StringUtils.isNotEmpty(fileName)) {
-                    oldData.setName(fileName);
-                }
-                //判断是否为超级管理员并且所属部门是在泓创智诚的公司下的部门 ture为跳过 false赋值
-                if(!judgeRoleIdAndDeptId(userId)){
-                    //拼接填报人信息
-                    String fileUser = userId + "-" + userNmae;
-                    if (StringUtils.isNotEmpty(oldData.getFileUserIdAndName())) {
-                        if (!oldData.getFileUserIdAndName().contains(userId.toString())) {
-                            //不包含,拼接
-                            oldData.setFileUserIdAndName(oldData.getFileUserIdAndName() + "," + fileUser);
-                        }
-                    } else {
-                        oldData.setFileUserIdAndName(fileUser);
+                //拼接填报人信息
+                String fileUser = userId + "-" + userNmae;
+                if (StringUtils.isNotEmpty(oldData.getFileUserIdAndName())) {
+                    if (!oldData.getFileUserIdAndName().contains(userId.toString())) {
+                        //不包含,拼接
+                        oldData.setFileUserIdAndName(oldData.getFileUserIdAndName() + "," + fileUser);
                     }
+                } else {
+                    oldData.setFileUserIdAndName(fileUser);
                 }
+
                 oldData.setUpdateTime(new Date());
                 oldData.setUpdateUser(userId);
 
@@ -556,27 +455,6 @@ public class InformationQueryServiceImpl extends BaseServiceImpl<InformationQuer
         }
         return null;
     }
-    public boolean judgeRoleIdAndDeptId(Long userId ){
-        String sqlForUser = "select role_id ,dept_id from blade_user where id = "+userId;
-        User user = jdbcTemplate.queryForObject(sqlForUser, new BeanPropertyRowMapper<>(User.class));
-        String sqlforSkipDept = "select id from blade_dept where parent_id = "+HONGCHENG_DEPT_ID + " or id = "+HONGCHENG_DEPT_ID;
-        List<Dept> depts = jdbcTemplate.query(sqlforSkipDept, new BeanPropertyRowMapper<>(Dept.class));
-        String roleId = user.getRoleId();
-        String deptId = user.getDeptId();
-        //既是超级管理员同时是泓创下面的部门才允许跳过填报人赋值
-        if(roleId.contains(SUPER_ADMIN_ROLE_ID)){
-            Boolean flag = false;
-            for (Dept dept : depts) {
-                if(deptId.contains(dept.getId().toString())){
-                    flag = true;
-                    return flag;
-                }
-            }
-            return flag;
-        }else {
-            return false;
-        }
-    }
 
     @Override
     public List<Integer> getReportNumberByContractId(Integer classify, String contractId) {

+ 75 - 5
blade-service/blade-business/src/main/java/org/springblade/business/service/impl/TaskServiceImpl.java

@@ -49,15 +49,19 @@ import org.springblade.manager.vo.AppWbsTreeContractVO;
 import org.springblade.resource.feign.CommonFileClient;
 import org.springblade.resource.feign.NewIOSSClient;
 import org.springblade.system.cache.ParamCache;
+import org.springblade.system.entity.Dept;
+import org.springblade.system.user.entity.User;
 import org.springframework.beans.BeanUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.cloud.openfeign.EnableFeignClients;
+import org.springframework.dao.DataAccessException;
 import org.springframework.data.redis.core.StringRedisTemplate;
 import org.springframework.jdbc.core.BeanPropertyRowMapper;
 import org.springframework.jdbc.core.JdbcTemplate;
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
 
+import javax.servlet.http.HttpServletRequest;
 import java.io.File;
 import java.io.FileNotFoundException;
 import java.util.*;
@@ -118,6 +122,10 @@ public class TaskServiceImpl extends BaseServiceImpl<TaskMapper, Task> implement
     private final ExcelTabClient excelTabClient;
 
     private final NewIOSSClient newIOSSClient;
+    //超级管理员的角色id
+    private final String SUPER_ADMIN_ROLE_ID ="1123598816738675201";
+    //泓创智诚公司的部门id
+    private final Long  HONGCHENG_DEPT_ID = 1536982621165592577L;
 
     @Autowired
     StringRedisTemplate RedisTemplate;
@@ -1442,7 +1450,7 @@ public class TaskServiceImpl extends BaseServiceImpl<TaskMapper, Task> implement
 //    }
 
     @Override
-    public void reSigningEVisa(String classify, String taskIds, String contractId, String projectId,Integer type, String header) {
+    public void reSigningEVisa(String classify, String taskIds, String contractId, String projectId, Integer type, String header , HttpServletRequest request) {
         //查询任务信息
         List<Task> taskList = jdbcTemplate.query("select * from u_task where id in(" + taskIds + ")", new BeanPropertyRowMapper<>(Task.class));
         if (taskList.size() > 0) {
@@ -1473,7 +1481,7 @@ public class TaskServiceImpl extends BaseServiceImpl<TaskMapper, Task> implement
                     if (type == 1) {
                         //重新保存
                         long startTime_1 = System.currentTimeMillis();
-                        result = this.saveNodePdfResign(typeMap.get(task.getFormDataId()), queryMap.get(task.getFormDataId()), contractId, projectId, header);
+                        result = this.saveNodePdf(typeMap.get(task.getFormDataId()), queryMap.get(task.getFormDataId()), contractId, projectId, header);
                         long endTime_1 = System.currentTimeMillis();
                         long executionTime_1 = endTime_1 - startTime_1;
                         log.info("saveNodePdf执行时间:" + executionTime_1 + " 毫秒");
@@ -1516,7 +1524,14 @@ public class TaskServiceImpl extends BaseServiceImpl<TaskMapper, Task> implement
                                 .eq(TaskParallel::getProcessInstanceId, task.getProcessInstanceId()));
                     }
                 }
-
+                //获取当前操作人
+                Long userId = AuthUtil.getUserId(request);
+                String userName = AuthUtil.getNickName(request);
+                //判断是否是超级管理员并且是泓创智诚下的部门
+                if(judgeRoleIdAndDeptId(userId)){
+                    //满足去除当前填报人的条件 去除当前任务的填报人中当前操作人的信息
+                    removeUserAndName(taskIds, userId, userName);
+                }
             } catch (Exception e) {
                 e.printStackTrace();
                 throw new ServiceException("重新保存PDF信息失败,原因:" + e.getMessage());
@@ -1527,11 +1542,66 @@ public class TaskServiceImpl extends BaseServiceImpl<TaskMapper, Task> implement
         }
     }
 
+
     R saveNodePdf(String classify, String nodePKeyIds, String contractId, String projectId, String header) throws Exception {
         return excelTabClient.synPDFInfo(contractId, nodePKeyIds, classify, projectId, header);
     }
-    R saveNodePdfResign(String classify, String nodePKeyIds, String contractId, String projectId, String header) throws Exception {
-        return excelTabClient.synPDFInfoResign(contractId, nodePKeyIds, classify, projectId, header);
+
+    /**
+     * 返回true代表满足条件 是超级管理员并且部门是在泓创智诚下面的部门
+     */
+    public boolean judgeRoleIdAndDeptId(Long userId ){
+        try {
+            String sqlForUser = "select role_id ,dept_id from blade_user where id = "+userId;
+            User user = jdbcTemplate.queryForObject(sqlForUser, new BeanPropertyRowMapper<>(User.class));
+            String sqlforSkipDept = "select id from blade_dept where parent_id = "+HONGCHENG_DEPT_ID + " or id = "+HONGCHENG_DEPT_ID;
+            List<Dept> depts = jdbcTemplate.query(sqlforSkipDept, new BeanPropertyRowMapper<>(Dept.class));
+            String roleId = user.getRoleId();
+            String deptId = user.getDeptId();
+            //既是超级管理员同时是泓创下面的部门才允许跳过填报人赋值
+            if(roleId.contains(SUPER_ADMIN_ROLE_ID)){
+                Boolean flag = false;
+                for (Dept dept : depts) {
+                    if(deptId.contains(dept.getId().toString())){
+                        flag = true;
+                        return flag;
+                    }
+                }
+                return flag;
+            }else {
+                return false;
+            }
+        } catch (DataAccessException e) {
+            log.error(e.getMessage());
+            throw new RuntimeException("校验操作人角色异常");
+        }
+    }
+
+    /**
+     * 去掉对应的填报人信息
+     */
+    private void removeUserAndName(String taskIds, Long userId, String userName) {
+        try {
+            String sqlForInformationQuery = "select * from u_information_query where id = (select form_data_id from u_task where id =" +taskIds+ ")";
+            InformationQuery informationQuery = jdbcTemplate.queryForObject(sqlForInformationQuery, new BeanPropertyRowMapper<>(InformationQuery.class));
+            String fileUserIdAndName = informationQuery.getFileUserIdAndName();
+            if (StringUtils.isNotEmpty(fileUserIdAndName) && fileUserIdAndName.contains(userId + "-" + userName)){
+                String[] split = fileUserIdAndName.split(",");
+                if(split != null && split.length > 0){
+                    ArrayList<String> list = new ArrayList<>(Arrays.asList(split));
+                    for (int i = 0; i < list.size(); i++) {
+                        if(list.get(i).contains(userId + "-" + userName)){
+                            list.remove(i);
+                        }
+                    }
+                    String fileUserIdAndNameNew = String.join(",", list);
+                    String sqlForUpdateInformationQuery = "update  u_information_query set file_user_id_and_name = '"+fileUserIdAndNameNew+"' where id = (select form_data_id from u_task where id =" +taskIds+ ")";
+                    jdbcTemplate.execute(sqlForUpdateInformationQuery);
+                }
+            }
+        } catch (DataAccessException e) {
+           throw new RuntimeException("去除对应的填报人信息异常");
+        }
     }
 
     @Override

+ 0 - 128
blade-service/blade-manager/src/main/java/org/springblade/manager/controller/ExcelTabController.java

@@ -1980,82 +1980,6 @@ public class ExcelTabController extends BladeController {
         executionTime.brief();
         return R.data("操作成功");
     }
-    //重签调这个方法
-    public R saveBussDataResign(JSONObject dataInfo) throws Exception {
-        ExecutionTime executionTime = new ExecutionTime();
-        JSONArray dataArray = new JSONArray();
-        if (dataInfo.containsKey("dataInfo")) { //节点保存
-            JSONObject jsonObject = dataInfo.getJSONObject("dataInfo");
-            dataArray = jsonObject.getJSONArray("orderList");
-        } else { //单个保存
-            dataArray.add(dataInfo);
-        }
-
-        JSONObject tableInfo1 = dataArray.getJSONObject(0);
-        String nodeId = tableInfo1.getString("nodeId");
-        String contractId = tableInfo1.getString("contractId");
-        String projectId = tableInfo1.getString("projectId");
-        String classify = tableInfo1.getString("classify");
-
-        /*全加载,或者可以优化成依赖加载*/
-        List<AppWbsTreeContractVO> tableAll = new ArrayList<>();
-        List<TableInfo> tableInfoList = this.excelTabService.getTableInfoList(dataArray);
-
-        executionTime.info("公式前");
-        //公式填充
-        this.excelTabService.formulaFillData(tableInfoList, Long.parseLong(nodeId), ExecuteType.INSPECTION);
-        assert tableInfoList != null;
-        if(tableInfoList.size()==0){
-            R.success("数据未发生变化");
-        }
-        executionTime.info("公式耗时");
-        //保存数据到数据库
-        R<Object> result = this.excelTabService.saveOrUpdateInfoResign(tableInfoList);
-        if (!result.isSuccess()) {
-            return R.fail(result.getMsg());
-        }
-        executionTime.info("表单保存耗时");
-
-        List<String> errorPKeyIds = new ArrayList<>();
-        //单个pdf加载
-        if (tableInfoList != null) {
-            tableInfoList.parallelStream().forEach(tableInfo -> {
-                R bussPdfInfo = null;
-                try {
-                    bussPdfInfo = excelTabService.getBussPdfInfo(Long.parseLong(tableInfo.getPkeyId()));
-                } catch (Exception e) {
-                    e.printStackTrace();
-                }
-                if (ObjectUtil.isEmpty(bussPdfInfo) || bussPdfInfo.getCode() != 200) {
-                    //如果返回的单张pdfUrl为空,那么表示发生异常,返回异常信息
-                    errorPKeyIds.add(tableInfo.getPkeyId());
-                }
-            });
-        }
-        executionTime.info("PDF刷新耗时");
-        //发生异常后直接返回,不进行合并
-        if (errorPKeyIds.size() > 0) {
-            List<AppWbsTreeContractVO> errorTabs = new LinkedList<>();
-            for (AppWbsTreeContractVO appWbsTreeContractVO : tableAll) {
-                if (errorPKeyIds.contains(appWbsTreeContractVO.getPKeyId().toString())) {
-                    errorTabs.add(appWbsTreeContractVO);
-                }
-            }
-            if (errorTabs.size() > 0) {
-                List<String> names = errorTabs.stream().map(WbsTreeContract::getNodeName).collect(Collectors.toList());
-                return R.fail("以下的表在生成pdf文件时发生了异常【" + StringUtils.join(names, "、") + "】");
-            }
-        }
-
-        //合并pdf加载
-        excelTabService.getBussPdfs(nodeId, classify, contractId, projectId);
-        executionTime.info("PDF合并耗时");
-        //更新缓存
-        informationQueryClient.delAsyncWbsTree(contractId);
-        executionTime.info("缓存删除耗时");
-        executionTime.brief();
-        return R.data("操作成功");
-    }
 
     /*并发加载表单数据*/
     public void doForTableIst(List<AppWbsTreeContractVO> tableAll,List<TableInfo> tableInfoList){
@@ -4110,58 +4034,6 @@ public class ExcelTabController extends BladeController {
         }
         return R.data("成功");
     }
-    public R synPDFInfoResign(String contractId, String nodeIds, String classify, String projectId) {
-
-        if (contractId == null && StringUtils.isEmpty(contractId)) {
-            return R.data("contractId不能为空");
-        }
-
-        if (nodeIds == null && StringUtils.isEmpty(nodeIds)) {
-            return R.data("nodeId不能为空");
-        }
-
-        if (classify == null && StringUtils.isEmpty(classify)) {
-            return R.data("classify不能为空");
-        }
-
-        if (projectId == null && StringUtils.isEmpty(projectId)) {
-            return R.data("projectId不能为空");
-        }
-
-        String nodeId[] = Func.toStrArray(nodeIds);
-        try {
-            for (String noId : nodeId) {
-                JSONObject js = new JSONObject();
-                JSONObject js2 = new JSONObject();
-                List<AppWbsTreeContractVO> tableAll = wbsTreeContractService.searchNodeAllTable(noId, classify, contractId, projectId, null);
-                JSONArray array = new JSONArray();
-                if (tableAll != null && tableAll.size() >= 1) {
-                    /*只需加载第一张即可,生效会自动补全*/
-                    for(AppWbsTreeContractVO tab:tableAll) {
-                        //  AppWbsTreeContractVO tab = tableAll.get(0);
-                        Map<String, Object> jo = excelTabService.getBussDataInfo(tab.getPKeyId(), 0);
-                        String s = new Gson().toJson(jo);
-                        //字符串转jsonobject
-                        JSONObject obj = JSON.parseObject(s);
-                        obj.put("classify", classify);
-                        obj.put("nodeId", noId);
-                        obj.put("contractId", contractId);
-                        obj.put("pkeyId", tab.getPKeyId());
-                        obj.put("projectId", projectId);
-                        obj.put("isCollapseLoad", true);
-                        obj.put("isRenderForm", true);
-                        array.add(obj);
-                    }
-                }
-                js2.put("orderList", array);
-                js.put("dataInfo", js2);
-                this.saveBussDataResign(js);
-            }
-        } catch (Exception e) {
-            return null;
-        }
-        return R.data("成功");
-    }
 
     @PostMapping("/test-downLoad-excel")
     @ApiOperationSupport(order = 73)

+ 0 - 4
blade-service/blade-manager/src/main/java/org/springblade/manager/feign/ExcelTabClientImpl.java

@@ -133,10 +133,6 @@ public class ExcelTabClientImpl implements ExcelTabClient {
     public R synPDFInfo(String contractId, String nodeIds, String classify, String projectId, String authorization) throws Exception {
         return excelTabController.synPDFInfo(contractId, nodeIds, classify, projectId);
     }
-    @Override
-    public R synPDFInfoResign(String contractId, String nodeIds, String classify, String projectId, String authorization) throws Exception {
-        return excelTabController.synPDFInfoResign(contractId, nodeIds, classify, projectId);
-    }
 
     @Override
     public List<ExcelTab> getArchiveTabList() {

+ 9 - 1
blade-service/blade-manager/src/main/java/org/springblade/manager/feign/WbsTreeContractClientImpl.java

@@ -10,7 +10,9 @@ import lombok.AllArgsConstructor;
 import org.springblade.common.constant.CommonConstant;
 import org.springblade.common.utils.CommonUtil;
 import org.springblade.core.tool.node.ForestNodeMerger;
-import org.springblade.manager.entity.*;
+import org.springblade.manager.entity.ContractInfo;
+import org.springblade.manager.entity.ContractRelationJlyz;
+import org.springblade.manager.entity.WbsTreeContract;
 import org.springblade.manager.mapper.WbsTreeContractMapper;
 import org.springblade.manager.service.IContractInfoService;
 import org.springblade.manager.service.IWbsTreeContractService;
@@ -435,5 +437,11 @@ public class WbsTreeContractClientImpl implements WbsTreeContractClient {
         return list;
     }
 
+    @Override
+    public List<WbsTreeContractTreeVOS> selectContractJLForm(List<Long> removeList) {
+        List<WbsTreeContractTreeVOS> vos =wbsTreeContractMapper.selectContractJLForm(removeList);
+        return vos;
+    }
+
 
 }

+ 2 - 1
blade-service/blade-manager/src/main/java/org/springblade/manager/mapper/WbsTreeContractMapper.java

@@ -1,6 +1,5 @@
 package org.springblade.manager.mapper;
 
-import org.apache.ibatis.annotations.CacheNamespace;
 import org.apache.ibatis.annotations.Param;
 import org.springblade.business.entity.InformationQuery;
 import org.springblade.manager.entity.*;
@@ -118,4 +117,6 @@ public interface WbsTreeContractMapper extends EasyBaseMapper<WbsTreeContract> {
     List<WbsTreeContract> projectAllTable(@Param("projectId") Long projectId);
 
     void batchUpdateTable(@Param("list") List<String> list);
+
+    List<WbsTreeContractTreeVOS> selectContractJLForm(List<Long> removeList);
 }

+ 7 - 0
blade-service/blade-manager/src/main/java/org/springblade/manager/mapper/WbsTreeContractMapper.xml

@@ -877,4 +877,11 @@
         select p_key_id,init_table_name
         from m_wbs_tree_contract where project_id = #{projectId} and type = 2 and is_deleted = 0
     </select>
+    <select id="selectContractJLForm" resultType="org.springblade.manager.vo.WbsTreeContractTreeVOS">
+        select id from m_wbs_tree_contract where p_key_id in (
+            <foreach collection="list" item="pkeyId" separator=",">
+                #{pkeyId}
+            </foreach>
+            ) and pdf_url is not null and pdf_url != '' and (table_owner = 4 or table_owner = 5 or table_owner = 6) and is_deleted = 0
+    </select>
 </mapper>

+ 0 - 5
blade-service/blade-manager/src/main/java/org/springblade/manager/service/IExcelTabService.java

@@ -107,11 +107,6 @@ public interface IExcelTabService extends BaseService<ExcelTab> {
      */
     R<Object> saveOrUpdateInfo(List<TableInfo> tableInfoList) throws SQLException;
 
-    /**
-     * 结果信息持久化重签版
-     */
-    R<Object> saveOrUpdateInfoResign(List<TableInfo> tableInfoList) throws SQLException;
-
     Map<String, String> getTablbCols(String pkeyid, String colkey) throws FileNotFoundException;
 
     // 获取用户端 单个表单接口数据

+ 1 - 107
blade-service/blade-manager/src/main/java/org/springblade/manager/service/impl/ExcelTabServiceImpl.java

@@ -78,7 +78,6 @@ import org.springframework.transaction.TransactionStatus;
 import org.springframework.transaction.support.DefaultTransactionDefinition;
 
 import java.io.*;
-import java.sql.SQLException;
 import java.text.ParseException;
 import java.text.SimpleDateFormat;
 import java.util.*;
@@ -1211,112 +1210,7 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
                         return R.fail(reason(e.getMessage()));
                     }
                 }
-                //获取节点
-                WbsTreeContract wbsTreeContract = this.wbsTreeContractService.getOne(Wrappers.<WbsTreeContract>lambdaQuery().eq(WbsTreeContract::getPKeyId, tableInfoList.get(0).getPkeyId()));
-
-                WbsTreeContract wbsTreeContractByP = wbsTreeContractService.getBaseMapper().selectOne(Wrappers.<WbsTreeContract>query().lambda()
-                        .eq(WbsTreeContract::getId, wbsTreeContract.getParentId()).eq(WbsTreeContract::getContractId, wbsTreeContract.getContractId()));
-                //处理文件提名
-                String fileName = this.wbsParamService.createFileTitle(wbsTreeContractByP);
-
-                //huangjn 保存成功后调用生成资料查询列表数据
-                this.informationQueryClient.saveOrUpdateInformationQueryData(wbsTreeContractByP.getPKeyId() + "", "首件使用字段", "业务ID(主要将来给首件使用)", fileName, Integer.parseInt(tableInfoList.get(0).getClassify()), 2, "false", "源文件(首件字段)", "pdf文件(首件字段)", "首件上传总结报告名称", new ArrayList<>());
-
-                JSONObject json = new JSONObject();
-                json.put("operationObjIds", Func.toStrList(pkids));
-                json.put("operationObjName", wbsTreeContractByP.getNodeName() + "节点数据操作");
-                json.put("saveData", saveData.toString());
-                json.put("projectId", wbsTreeContract.getProjectId());
-                json.put("contractId", wbsTreeContract.getContractId());
-
-                //保存操作记录
-                this.operationLogClient.saveUserOperationLog(1, "资料填报", "工序填报页面", json);
-                // 更新redis
-                informationQueryClient.AsyncWbsTree(wbsTreeContractByP.getParentId() + "", wbsTreeContractByP.getParentId() + "", wbsTreeContractByP.getContractId(), "", "1");
-            } catch (Exception e) {
-                e.printStackTrace();
-                return R.fail("操作失败");
-            }
-            if (log.length() > 5) {
-                return R.fail(reason(log.toString()));
-            }
-        }
-        return R.success("操作成功");
-    }
-
-    @Override
-    public R<Object> saveOrUpdateInfoResign(List<TableInfo> tableInfoList) throws SQLException {
-        if (ListUtils.isNotEmpty(tableInfoList)) {
-            //施工资料填报
-            String pkids = "";
-            StringBuilder log = new StringBuilder("异常:");
-            StringBuilder saveData = new StringBuilder(tableInfoList.toString());
-            try {
-                for (TableInfo tableInfo : tableInfoList) {
-                    WbsTreeContract wbsTreeContract = wbsTreeContractService.getBaseMapper().selectOne(Wrappers.<WbsTreeContract>query().lambda()
-                            .eq(WbsTreeContract::getPKeyId, tableInfo.getPkeyId()));
-                    if (wbsTreeContract == null) {
-                        continue;
-                    }
-                    pkids += tableInfo.getPkeyId() + ",";
-                    String tabName = wbsTreeContract.getInitTableName();
-                    // 判读修改还是 添加
-                    String delSql = "delete from " + tabName + " where p_key_id=" + tableInfo.getPkeyId();
-
-
-                    String sqlInfo = "";
-                    LinkedHashMap<String, String> dataMap2 = tableInfo.getDataMap();
-                    /*检查发现有p_key_id缺失的情况,导致表单数据丢失,所以强制覆盖*/
-                    dataMap2.put("p_key_id", tableInfo.getPkeyId());
-                    //统计保存的字段
-
-                    sqlInfo = "INSERT INTO " + tabName + " ( ";
-                    String keyStr = "id,";
-                    String valStr = SnowFlakeUtil.getId() + ",";
-                    for (String keys : dataMap2.keySet()) {
-                        keyStr += keys + ",";
-                        valStr += "'" + dataMap2.get(keys) + "',";
-                    }
-                    keyStr = keyStr.substring(0, keyStr.lastIndexOf(","));
-                    valStr = valStr.substring(0, valStr.lastIndexOf(","));
-                    sqlInfo = sqlInfo + keyStr + ") VALUES (" + valStr + ")";
-
-                    WbsTreeContract wbsTreeContractByP = wbsTreeContractService.getBaseMapper().selectOne(Wrappers.<WbsTreeContract>query().lambda()
-                            .eq(WbsTreeContract::getId, wbsTreeContract.getParentId()).eq(WbsTreeContract::getContractId, tableInfo.getContractId()));
-
-                    if (wbsTreeContractByP != null) {
-                        //处理文件提名
-                        String fileName = this.wbsParamService.createFileTitle(wbsTreeContractByP);
-
-                        //huangjn 保存成功后调用生成资料查询列表数据
-                        this.informationQueryClient.saveOrUpdateInformationQueryDataReSign(wbsTreeContractByP.getPKeyId() + "", "首件使用字段", "业务ID(主要将来给首件使用)", fileName, Integer.parseInt(tableInfo.getClassify()), 2, "是否是首件(临时,暂时没用到)", "源文件(首件字段)", "pdf文件(首件字段)", "首件上传总结报告名称", new ArrayList<>());
-                    }
 
-                    UpdateWrapper<WbsTreeContract> updateWrapper = new UpdateWrapper<>();
-                    updateWrapper.in("p_key_id", tableInfo.getPkeyId());
-                    updateWrapper.set("is_tab_pdf", 2);
-                    wbsTreeContractService.update(updateWrapper);
-                    BladeUser user = AuthUtil.getUser();
-                    TransactionStatus transactionStatus = this.beginTransaction(transactionManager1);
-                    try {
-                        //添加被张表的操作日志
-                        StringBuffer sb = new StringBuffer();
-                        String sqlInfoNew = sqlInfo.replace("\"", "'");
-                        sb.append("insert into blade_tab_sql(p_key_id,user_id,create_time,sql_info) VALUES(");
-                        sb.append(tableInfo.getPkeyId());sb.append(",");sb.append(user.getUserId());
-                        sb.append(","); sb.append("SYSDATE()");sb.append(",\"");sb.append(sqlInfoNew);
-                        sb.append("\")");
-                        jdbcTemplate.execute(delSql);
-                        jdbcTemplate.execute(sqlInfo);
-                        jdbcTemplate.execute(sb.toString());
-                        transactionManager1.commit(transactionStatus);
-                    } catch (Exception e) {
-                        transactionManager1.rollback(transactionStatus);
-                        log.append(e.getMessage()).append("@@");
-                        e.printStackTrace();
-                        return R.fail(reason(e.getMessage()));
-                    }
-                }
                 //获取节点
                 WbsTreeContract wbsTreeContract = this.wbsTreeContractService.getOne(Wrappers.<WbsTreeContract>lambdaQuery().eq(WbsTreeContract::getPKeyId, tableInfoList.get(0).getPkeyId()));
 
@@ -1326,7 +1220,7 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
                 String fileName = this.wbsParamService.createFileTitle(wbsTreeContractByP);
 
                 //huangjn 保存成功后调用生成资料查询列表数据
-                this.informationQueryClient.saveOrUpdateInformationQueryDataReSign(wbsTreeContractByP.getPKeyId() + "", "首件使用字段", "业务ID(主要将来给首件使用)", fileName, Integer.parseInt(tableInfoList.get(0).getClassify()), 2, "false", "源文件(首件字段)", "pdf文件(首件字段)", "首件上传总结报告名称", new ArrayList<>());
+                this.informationQueryClient.saveOrUpdateInformationQueryData(wbsTreeContractByP.getPKeyId() + "", "首件使用字段", "业务ID(主要将来给首件使用)", fileName, Integer.parseInt(tableInfoList.get(0).getClassify()), 2, "false", "源文件(首件字段)", "pdf文件(首件字段)", "首件上传总结报告名称", new ArrayList<>());
 
                 JSONObject json = new JSONObject();
                 json.put("operationObjIds", Func.toStrList(pkids));

+ 1 - 2
blade-service/blade-user/src/main/java/org/springblade/system/user/controller/WbsTreeController.java

@@ -14,7 +14,6 @@ import org.springblade.business.vo.InformationQueryVO;
 import org.springblade.core.boot.ctrl.BladeController;
 import org.springblade.core.tool.api.R;
 import org.springblade.core.tool.utils.ObjectUtil;
-import org.springblade.manager.vo.PrivateTreeVO;
 import org.springblade.manager.vo.PrivateTreeVO2;
 import org.springblade.manager.vo.WbsTreeContractLazyVO;
 import org.springblade.system.user.service.IUserService;
@@ -23,7 +22,7 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.data.redis.core.StringRedisTemplate;
 import org.springframework.web.bind.annotation.*;
 
-import java.util.*;
+import java.util.List;
 
 @RestController
 @RequestMapping(value = "/wbs")