Просмотр исходного кода

Merge remote-tracking branch 'origin/master'

liuyc 2 лет назад
Родитель
Сommit
7e6bee38ab

+ 11 - 0
blade-service-api/blade-business-api/src/main/java/org/springblade/business/entity/ArchiveFile.java

@@ -228,4 +228,15 @@ public class ArchiveFile extends BaseEntity {
 	 */
 	@ApiModelProperty("排序")
 	private Integer sort;
+	/**
+	 * 分盒名称
+	 */
+	@ApiModelProperty("分盒名称")
+	private String boxName;
+
+	/**
+	 * 分盒编号
+	 */
+	@ApiModelProperty("分盒编号")
+	private Integer boxNumber;
 }

+ 23 - 0
blade-service-api/blade-business-api/src/main/java/org/springblade/business/feign/ArchiveFileClient.java

@@ -1,5 +1,6 @@
 package org.springblade.business.feign;
 
+import com.alibaba.fastjson.JSONArray;
 import com.alibaba.fastjson.JSONObject;
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import org.springblade.business.vo.ArchiveFileVO;
@@ -7,6 +8,10 @@ import org.springblade.common.constant.BusinessConstant;
 import org.springframework.cloud.openfeign.FeignClient;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestParam;
+
+import java.util.List;
+import java.util.Map;
 
 
 /**
@@ -23,4 +28,22 @@ public interface ArchiveFileClient {
 
     @PostMapping(API_PREFIX + "/selectArchiveFilePage")
     JSONObject selectArchiveFilePage(@RequestBody ArchiveFileVO archiveFile);
+
+    @PostMapping(API_PREFIX + "/selectArchiveFilePageByBoxName")
+    JSONObject selectArchiveFilePageByBoxName(@RequestBody ArchiveFileVO archiveFile);
+
+    @PostMapping(API_PREFIX + "/updateArchiveFileSort")
+    void updateArchiveFileSort(@RequestBody ArchiveFileVO vo);
+
+    @PostMapping(API_PREFIX + "/updateArchiveFileByBoxName")
+    boolean updateArchiveFileByBoxName(@RequestBody Map<String,Object> jsons);
+
+    @PostMapping(API_PREFIX + "/isBoxName")
+    String isBoxName(@RequestParam String boxName);
+
+    @PostMapping(API_PREFIX + "/selectBoxNameAndBoxNumber")
+    JSONArray selectBoxNameAndBoxNumber(@RequestParam String nodeId);
+
+    @PostMapping(API_PREFIX + "/updateArchiveFileByNodeId")
+    boolean updateArchiveFileByNodeId(@RequestParam String ids,@RequestParam String nodeId);
 }

+ 82 - 8
blade-service/blade-archive/src/main/java/org/springblade/archive/controller/ArchiveFileController.java

@@ -4,10 +4,7 @@ import com.alibaba.fastjson.JSONArray;
 import com.alibaba.fastjson.JSONObject;
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
-import io.swagger.annotations.Api;
-import io.swagger.annotations.ApiImplicitParam;
-import io.swagger.annotations.ApiImplicitParams;
-import io.swagger.annotations.ApiOperation;
+import io.swagger.annotations.*;
 import lombok.AllArgsConstructor;
 import lombok.SneakyThrows;
 import org.springblade.business.entity.ArchiveFile;
@@ -17,6 +14,7 @@ import org.springblade.core.boot.ctrl.BladeController;
 
 import org.springblade.core.oss.model.BladeFile;
 import org.springblade.core.tool.api.R;
+import org.springblade.core.tool.utils.Func;
 import org.springblade.manager.entity.ArchiveTree;
 import org.springblade.manager.entity.ArchiveTreeContract;
 import org.springblade.manager.feign.ArchiveTreeContractClient;
@@ -24,7 +22,9 @@ import org.springblade.resource.feign.IOSSClient;
 import org.springframework.web.bind.annotation.*;
 import org.springframework.web.multipart.MultipartFile;
 
+import java.util.ArrayList;
 import java.util.List;
+import java.util.Map;
 import java.util.stream.Collectors;
 
 
@@ -40,7 +40,7 @@ import java.util.stream.Collectors;
 @Api(value = "工程文件接口", tags = "工程文件接口")
 public class ArchiveFileController extends BladeController {
 
-	private final ArchiveFileClient archiveFileClient;
+    private final ArchiveFileClient archiveFileClient;
     private final IOSSClient iossClient;
     private final ArchiveTreeContractClient archiveTreeContractClient;
     /**
@@ -66,15 +66,19 @@ public class ArchiveFileController extends BladeController {
      * 批量新增
      */
     @PostMapping("/batchSave")
-    @ApiOperationSupport(order = 3)
+    @ApiOperationSupport(order = 2)
     @ApiOperation(value = "批量新增")
     public R<Boolean> batchSave(@RequestBody ArchiveFileVO vo){
         try {
+            int l =(int) System.currentTimeMillis();
             List<ArchiveFileVO> saveList = vo.getList();
             if(saveList != null && saveList.size() > 0){
+                int i = 1;
                 for(ArchiveFileVO saveVo : saveList){
+                    saveVo.setSort(l+i);
                     saveVo.setStatus(new Integer("0").equals(saveVo.getIsApproval()) ? 2 : 0);
                     saveVo.setIsCertification(new Integer("0").equals(saveVo.getIsNeedCertification()) ? 1 : 0);
+                    i++;
                 }
             }
             this.archiveFileClient.saveArchiveFile(vo);
@@ -88,9 +92,9 @@ public class ArchiveFileController extends BladeController {
      * 分页
      */
     @PostMapping("/page")
-    @ApiOperationSupport(order = 4)
+    @ApiOperationSupport(order = 3)
     @ApiOperation(value = "分页")
-    public R<Object> page(ArchiveFileVO queryVo){
+    public R<Object> page( ArchiveFileVO queryVo){
         if(queryVo.getNodeIds().isEmpty() || queryVo.getNodeIds().equals("")){
             return  R.data(null);
         }
@@ -103,4 +107,74 @@ public class ArchiveFileController extends BladeController {
 
         return R.data(this.archiveFileClient.selectArchiveFilePage(queryVo));
     }
+    /**
+     * 排序
+     */
+    @PostMapping("/batchUpdateSort")
+    @ApiOperationSupport(order = 4)
+    @ApiOperation(value = "排序")
+    public R<Boolean> batchUpdateSort(@RequestBody ArchiveFileVO vo){
+        try {
+            this.archiveFileClient.updateArchiveFileSort(vo);
+        } catch (Exception e) {
+            e.printStackTrace();
+            return R.data(false);
+        }
+        return R.data(true);
+    }
+    /**
+     * 未分盒的显示
+     */
+    @PostMapping("/pageByBoxName")
+    @ApiOperationSupport(order = 5)
+    @ApiOperation(value = "未分盒的显示")
+    public R<Object> pageByBoxName(ArchiveFileVO queryVo){
+        if(queryVo == null || queryVo.getNodeIds() == null || queryVo.getNodeIds().equals("")){
+            return  R.data(null);
+        }
+        List<String> ids = new ArrayList<>();
+        ids.add(queryVo.getNodeIds());
+        queryVo.setNodeIdArray(ids);
+        return R.data(this.archiveFileClient.selectArchiveFilePageByBoxName(queryVo));
+    }
+    /**
+     * 分盒盒号验证
+     */
+    @PostMapping("/getIsBoxName")
+    @ApiOperationSupport(order = 6)
+    @ApiOperation(value = "分盒盒号验证", notes = "传入boxName")
+    public R<String> getIsBoxName(@RequestParam String boxName) {
+        return R.data(this.archiveFileClient.isBoxName(boxName));
+    }
+    /**
+     * 设置分盒
+     */
+    @PostMapping("/allocation")
+    @ApiOperationSupport(order = 7)
+    @ApiOperation(value = "设置分盒", notes = "传入ids")
+    public R allocation(@RequestBody Map<String,Object> jsons) {
+        return R.status(this.archiveFileClient.updateArchiveFileByBoxName(jsons));
+    }
+
+    /**
+     * 已有盒号和案卷名称
+     */
+    @PostMapping("/getBoxNameAndBoxNumber")
+    @ApiOperationSupport(order = 8)
+    @ApiOperation(value = "未分盒的显示")
+    public R<Object> getBoxNameAndBoxNumber(@ApiParam(value = "树节点", required = true) @RequestParam String nodeId){
+        if(nodeId.isEmpty() || nodeId.equals("")){
+            return  R.data(null);
+        }
+        return R.data(this.archiveFileClient.selectBoxNameAndBoxNumber(nodeId));
+    }
+    /**
+     * 迁移文件
+     */
+    @PostMapping("/migrateFile")
+    @ApiOperationSupport(order = 9)
+    @ApiOperation(value = "迁移文件", notes = "传入ids")
+    public R migrateFile(@RequestParam String ids,@RequestParam String nodeId) {
+        return R.status(this.archiveFileClient.updateArchiveFileByNodeId(ids,nodeId));
+    }
 }

+ 35 - 0
blade-service/blade-business/src/main/java/org/springblade/business/feignClient/ArchiveFileClientImpl.java

@@ -1,5 +1,6 @@
 package org.springblade.business.feignClient;
 
+import com.alibaba.fastjson.JSONArray;
 import com.alibaba.fastjson.JSONObject;
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import lombok.AllArgsConstructor;
@@ -8,6 +9,9 @@ import org.springblade.business.service.IArchiveFileService;
 import org.springblade.business.vo.ArchiveFileVO;
 import org.springframework.web.bind.annotation.RestController;
 
+import java.util.List;
+import java.util.Map;
+
 
 @RestController
 @AllArgsConstructor
@@ -26,4 +30,35 @@ public class ArchiveFileClientImpl implements ArchiveFileClient {
         IPage<ArchiveFileVO> archiveFileVOIPage = this.iArchiveFileService.selectArchiveFilePage(archiveFile);
         return JSONObject.parseObject(JSONObject.toJSONString(archiveFileVOIPage));
     }
+    @Override
+    public JSONObject selectArchiveFilePageByBoxName(ArchiveFileVO archiveFile) {
+        IPage<ArchiveFileVO> archiveFileVOIPage = this.iArchiveFileService.selectArchiveFilePageByBoxName(archiveFile);
+        return JSONObject.parseObject(JSONObject.toJSONString(archiveFileVOIPage));
+    }
+    @Override
+    public void updateArchiveFileSort(ArchiveFileVO vo) {
+        this.iArchiveFileService.updateArchiveFileSort(vo.getList());
+    }
+
+    @Override
+    public boolean updateArchiveFileByBoxName(Map<String,Object> jsons) {
+        return  this.iArchiveFileService.updateArchiveFileByBoxName(jsons);
+    }
+
+    @Override
+    public String isBoxName(String boxName) {
+        return this.iArchiveFileService.isBoxName(boxName);
+    }
+
+    @Override
+    public JSONArray selectBoxNameAndBoxNumber(String nodeId) {
+        List<Object> mapList = this.iArchiveFileService.selectBoxNameAndBoxNumber(nodeId);
+
+        return JSONArray.parseArray(JSONArray.toJSONString(mapList));
+    }
+
+    @Override
+    public boolean updateArchiveFileByNodeId(String ids, String nodeId) {
+        return this.iArchiveFileService.updateArchiveFileByNodeId(ids,nodeId);
+    }
 }

+ 14 - 0
blade-service/blade-business/src/main/java/org/springblade/business/mapper/ArchiveFileMapper.java

@@ -22,6 +22,7 @@ import org.springblade.business.vo.ArchiveFileVO;
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import java.util.List;
+import java.util.Map;
 
 /**
  *  Mapper 接口
@@ -33,6 +34,7 @@ public interface ArchiveFileMapper extends BaseMapper<ArchiveFile> {
 
 	Integer selectArchiveFileCount(@Param("vo") ArchiveFileVO vo);
 
+	Integer selectArchiveFilePageByBoxNameCount(@Param("vo") ArchiveFileVO vo);
 	/**
 	 * 自定义分页
 	 */
@@ -48,4 +50,16 @@ public interface ArchiveFileMapper extends BaseMapper<ArchiveFile> {
 	 */
 	List<ArchiveFile> getDeleteDataByIds(@Param("ids")List<String> ids);
 
+	Boolean updateArchiveFileByBoxName(@Param("ids") List<Long> ids,@Param("boxName") String boxName,@Param("boxNumber") Integer boxNumber);
+	Boolean updateArchiveFileByBoxNameOne(@Param("boxName") String boxName,@Param("boxNumber") Integer boxNumber);
+	Integer isBoxName(@Param("boxName") String boxName);
+
+	/**
+	 * 自定义分页
+	 */
+	List<ArchiveFile> selectArchiveFilePageByBoxName(@Param("current") Integer current, @Param("size") Integer size, @Param("vo") ArchiveFileVO vo);
+
+	List<Object> selectBoxNameAndBoxNumber(String nodeId);
+
+	Integer updateArchiveFileByNodeId(List<Long> ids, String nodeId);
 }

+ 118 - 1
blade-service/blade-business/src/main/java/org/springblade/business/mapper/ArchiveFileMapper.xml

@@ -46,6 +46,9 @@
         <result column="ftime" property="ftime"/>
         <result column="utime" property="utime"/>
         <result column="del_time" property="delTime"/>
+        <result column="sort" property="sort"/>
+        <result column="box_name" property="boxName"/>
+        <result column="box_number" property="boxNumber"/>
     </resultMap>
     <update id="recoveryByIds">
         update u_archive_file set is_deleted = 0 where
@@ -117,7 +120,92 @@
                 cite_change_number like concat('%',#{vo.queryValue},'%')
             )
         </if>
-        order by create_time DESC
+        order by sort,create_time DESC
+    </select>
+
+    <select id="selectArchiveFilePageByBoxNameCount" resultType="java.lang.Integer">
+        select count(id) from u_archive_file where is_deleted = 0
+        <if test="vo.isApprovalValue != null and vo.isApprovalValue != ''">
+            and status = #{vo.isApprovalValue}
+        </if>
+        <if test="vo.isCertificationValue != null and vo.isCertificationValue != ''">
+            and is_certification = #{vo.isCertificationValue}
+        </if>
+        <if test="vo.projectId != null and vo.projectId != ''">
+            and project_id = #{vo.projectId}
+        </if>
+        <if test="vo.contractId != null and vo.contractId != ''">
+            and contract_id = #{vo.contractId}
+        </if>
+        <if test="vo.nodeIds != null and vo.nodeIds != ''">
+            and node_id in
+            <foreach collection="vo.nodeIdArray" item="nodeId" open="(" separator="," close=")">
+                #{nodeId}
+            </foreach>
+        </if>
+
+        <choose>
+            <when test="vo.boxName != null and vo.boxName != ''">
+                and  (box_name = #{vo.boxName} or box_name is null or box_name = '')
+            </when>
+            <otherwise>
+                and (box_name is null or box_name = '')
+            </otherwise>
+        </choose>
+
+        <if test="vo.queryValue != null and vo.queryValue != ''">
+            and (
+            file_name like concat('%',#{vo.queryValue},'%') or
+            file_number like concat('%',#{vo.queryValue},'%') or
+            duty_user like concat('%',#{vo.queryValue},'%') or
+            sheet_source like concat('%',#{vo.queryValue},'%') or
+            drawing_no like concat('%',#{vo.queryValue},'%') or
+            cite_change_number like concat('%',#{vo.queryValue},'%')
+            )
+        </if>
+        order by box_number,sort,create_time DESC
+    </select>
+    <select id="selectArchiveFilePageByBoxName" resultMap="archiveFileResultMap">
+        select * from u_archive_file where is_deleted = 0
+        <if test="vo.isApprovalValue != null and vo.isApprovalValue != ''">
+            and status = #{vo.isApprovalValue}
+        </if>
+        <if test="vo.isCertificationValue != null and vo.isCertificationValue != ''">
+            and is_certification = #{vo.isCertificationValue}
+        </if>
+        <if test="vo.projectId != null and vo.projectId != ''">
+            and project_id = #{vo.projectId}
+        </if>
+        <if test="vo.contractId != null and vo.contractId != ''">
+            and contract_id = #{vo.contractId}
+        </if>
+        <if test="vo.nodeIds != null and vo.nodeIds != ''">
+            and node_id in
+            <foreach collection="vo.nodeIdArray" item="nodeId" open="(" separator="," close=")">
+                #{nodeId}
+            </foreach>
+        </if>
+
+        <choose>
+            <when test="vo.boxName != null and vo.boxName != ''">
+                and (box_name = #{vo.boxName} or box_name is null or box_name = '')
+            </when>
+            <otherwise>
+                and (box_name is null or box_name = '')
+            </otherwise>
+        </choose>
+
+        <if test="vo.queryValue != null and vo.queryValue != ''">
+            and (
+            file_name like concat('%',#{vo.queryValue},'%') or
+            file_number like concat('%',#{vo.queryValue},'%') or
+            duty_user like concat('%',#{vo.queryValue},'%') or
+            sheet_source like concat('%',#{vo.queryValue},'%') or
+            drawing_no like concat('%',#{vo.queryValue},'%') or
+            cite_change_number like concat('%',#{vo.queryValue},'%')
+            )
+        </if>
+        order by box_number,sort,create_time DESC
     </select>
     <select id="getDeleteDataByIds" resultType="org.springblade.business.entity.ArchiveFile">
         select * from u_archive_file where id in
@@ -126,4 +214,33 @@
         </foreach>
     </select>
 
+    <select id="isBoxName" resultType="java.lang.Integer">
+        select count(id) from u_archive_file where is_deleted = 0 and box_name =  #{boxName}
+    </select>
+
+    <update id="updateArchiveFileByBoxName" >
+        update u_archive_file set box_name = #{boxName},box_number = #{boxNumber} where
+        id in
+        <foreach collection="ids" item="id" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </update>
+    <update id="updateArchiveFileByBoxNameOne" >
+        update u_archive_file set box_name = null,box_number = null where
+        box_name =  #{boxName} and box_number = #{boxNumber}
+    </update>
+
+    <select id="selectBoxNameAndBoxNumber" resultType="java.util.Map">
+        select box_name as boxName,box_number as boxNumber,group_concat(DISTINCT id ORDER BY id ASC SEPARATOR ',') as ids
+         from u_archive_file where node_id = #{nodeId} and box_number is not null
+         group by box_name order by box_number asc
+    </select>
+
+    <update id="updateArchiveFileByNodeId" >
+        update u_archive_file set node_id = #{nodeId} where
+        id in
+        <foreach collection="ids" item="id" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </update>
 </mapper>

+ 17 - 0
blade-service/blade-business/src/main/java/org/springblade/business/service/IArchiveFileService.java

@@ -16,12 +16,15 @@
  */
 package org.springblade.business.service;
 
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
 import org.springblade.business.entity.ArchiveFile;
 import org.springblade.business.vo.ArchiveFileVO;
 import org.springblade.core.mp.base.BaseService;
 import com.baomidou.mybatisplus.core.metadata.IPage;
 
 import java.util.List;
+import java.util.Map;
 
 /**
  *  服务类
@@ -36,6 +39,10 @@ public interface IArchiveFileService extends BaseService<ArchiveFile> {
 	 */
 	IPage<ArchiveFileVO> selectArchiveFilePage(ArchiveFileVO archiveFile);
 
+	/**
+	 * 自定义分页并且分盒
+	 */
+	IPage<ArchiveFileVO> selectArchiveFilePageByBoxName(ArchiveFileVO archiveFile);
 	/**
 	 * 恢复删除
 	 */
@@ -48,4 +55,14 @@ public interface IArchiveFileService extends BaseService<ArchiveFile> {
 
 
 	void saveArchiveFile(List<ArchiveFileVO> list);
+
+	void updateArchiveFileSort(List<ArchiveFileVO> list);
+
+	boolean updateArchiveFileByBoxName(Map<String,Object> jsons);
+
+	String isBoxName(String boxName);
+
+	List<Object> selectBoxNameAndBoxNumber(String nodeId);
+
+	boolean updateArchiveFileByNodeId(String ids, String nodeId);
 }

+ 74 - 0
blade-service/blade-business/src/main/java/org/springblade/business/service/impl/ArchiveFileServiceImpl.java

@@ -11,6 +11,7 @@ import org.springblade.business.service.IArchiveFileService;
 import org.springblade.core.mp.base.BaseServiceImpl;
 import org.springblade.core.mp.support.Condition;
 import org.springblade.core.mp.support.Query;
+import org.springblade.core.tool.utils.Func;
 import org.springblade.system.entity.DictBiz;
 import org.springblade.system.feign.IDictBizClient;
 import org.springframework.stereotype.Service;
@@ -18,6 +19,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
 
 import java.util.Arrays;
 import java.util.List;
+import java.util.Map;
 
 /**
  *  服务实现类
@@ -93,4 +95,76 @@ public class ArchiveFileServiceImpl extends BaseServiceImpl<ArchiveFileMapper, A
 		this.saveBatch(JSONArray.parseArray(JSONObject.toJSONString(list), ArchiveFile.class));
 	}
 
+	@Override
+	public void updateArchiveFileSort(List<ArchiveFileVO> list) {
+
+		this.updateBatchById(JSONArray.parseArray(JSONObject.toJSONString(list), ArchiveFile.class));
+	}
+
+	@Override
+	public boolean updateArchiveFileByBoxName(Map<String,Object> jsons) {
+		List<Object> list = (List< Object>) jsons.get("list");
+		for(int i = 0 ;i<list.size();i++){
+			Map<String,Object> map = (Map<String, Object>) list.get(i);
+			String ids = (String) map.get("ids");
+			String boxName = (String) map.get("boxName");
+			Integer boxNumber = (Integer) map.get("boxNumber");
+			if(ids == null || boxName == null || boxNumber == null){
+				continue;
+			}
+			baseMapper.updateArchiveFileByBoxNameOne(boxName,boxNumber);
+			baseMapper.updateArchiveFileByBoxName(Func.toLongList(ids),boxName,boxNumber);
+		}
+		return true;
+	}
+
+	@Override
+	public String isBoxName(String boxName) {
+		Integer integer = this.baseMapper.isBoxName(boxName);
+		if(integer > 0){
+			return boxName;
+		}
+		return "";
+	}
+
+	@Override
+	public List<Object> selectBoxNameAndBoxNumber(String nodeId) {
+		return this.baseMapper.selectBoxNameAndBoxNumber(nodeId);
+	}
+
+	@Override
+	public boolean updateArchiveFileByNodeId(String ids, String nodeId) {
+		try {
+			baseMapper.updateArchiveFileByNodeId(Func.toLongList(ids),nodeId);
+
+		} catch (Exception e) {
+			e.printStackTrace();
+			return false;
+		}
+		return true;
+	}
+
+	@Override
+	public IPage<ArchiveFileVO> selectArchiveFilePageByBoxName(ArchiveFileVO vo) {
+		Query query = new Query();
+		query.setCurrent(vo.getCurrent());
+		query.setSize(vo.getSize());
+		//设置分页
+		IPage<ArchiveFileVO> iPage = Condition.getPage(query);
+
+		//汇总
+		Integer total = this.baseMapper.selectArchiveFilePageByBoxNameCount(vo);
+		if(total == null){
+			total = 0;
+		}
+		//分页
+		int current = (vo.getCurrent() - 1) * vo.getSize();
+
+		List<ArchiveFile> pageList = this.baseMapper.selectArchiveFilePageByBoxName(current, vo.getSize(), vo);
+		//设置分页信息
+		iPage.setTotal(total);
+		List<ArchiveFileVO> pageVoList = JSONArray.parseArray(JSONObject.toJSONString(pageList), ArchiveFileVO.class);
+
+		return iPage.setRecords(pageVoList);
+	}
 }

+ 2 - 2
blade-service/blade-manager/src/main/java/org/springblade/manager/service/impl/ContractInfoServiceImpl.java

@@ -135,7 +135,7 @@ public class ContractInfoServiceImpl extends BaseServiceImpl<ContractInfoMapper,
     @Override
     public List<WbsTreeContractTreeAllVO> tree3(String contractId, Integer type) {
         List<WbsTreeContractTreeAllVO> wbsTreeContractVOS = baseMapper.tree5(Long.parseLong(contractId));
-        if (ObjectUtils.isNotEmpty(type) && type == 1) {
+//        if (ObjectUtils.isNotEmpty(type) && type == 1) {
             //获取所有已填报信息
             Map<String, Long> allTable = informationQueryClient.getTreeAllTable(contractId);
             Set<String> keySet = allTable.keySet();
@@ -152,7 +152,7 @@ public class ContractInfoServiceImpl extends BaseServiceImpl<ContractInfoMapper,
                     wtc.setSubmitCounts(0L);
                 }
             });
-        }
+//        }
         return buildWbsTreeByStreamByTreeAll(wbsTreeContractVOS);
     }