Browse Source

Revert "质检-资料查询"

This reverts commit 5803de21147618147dc07c048954a00f741f0253.
LHB 1 tháng trước cách đây
mục cha
commit
53484433a1

+ 1 - 2
blade-service-api/blade-manager-api/src/main/java/org/springblade/manager/vo/WbsTreeContractLazyVO.java

@@ -139,7 +139,6 @@ public class WbsTreeContractLazyVO implements Serializable {
     @ApiModelProperty(value = "是否完成日期填写1是2否")
     private Integer dateIsComplete;
 
-    @ApiModelProperty(value = "是否最近同步节点")
-    private Integer isSync;
+
 
 }

+ 0 - 16
blade-service/blade-user/src/main/java/org/springblade/system/user/service/impl/UserServiceImpl.java

@@ -761,19 +761,6 @@ public class UserServiceImpl extends BaseServiceImpl<UserMapper, User> implement
         if (cn.hutool.core.util.ObjectUtil.isNotEmpty(contractId)) {
             ContractInfo contractInfo = jdbcTemplate.query("SELECT contract_name,contract_type FROM m_contract_info WHERE id = " + contractId,
                     new BeanPropertyRowMapper<>(ContractInfo.class)).stream().findAny().orElse(null);
-            String contractExtendSql = "select ancestors from m_wbs_tree_contract_extend where type = " + tableOwner + " and is_sync = 1 and is_deleted = 0 and ancestors like concat( " + id + ",'%')";
-            List<String> ids = new ArrayList<>();
-            List<String> strings = null;
-            try {
-                strings = jdbcTemplate.queryForList(contractExtendSql, String.class);
-            } catch (DataAccessException e) {
-                e.printStackTrace();
-                //TODO 暂时忽略错误
-            }
-            if(CollectionUtil.isNotEmpty(strings)){
-                strings.forEach(f -> ids.addAll(Arrays.asList(f.split(","))));
-            }
-
             if (contractInfo != null) {
                 /* =========================== 施工合同段 =========================== */
                 if (new Integer(1).equals(contractInfo.getContractType())) {
@@ -910,9 +897,6 @@ public class UserServiceImpl extends BaseServiceImpl<UserMapper, User> implement
 
 //                            }
                         }
-                        if(CollectionUtil.isNotEmpty(ids)){
-                            lazyNodes.forEach(f -> f.setIsSync(ids.contains(f.getPKeyId()) ? 1 : 0));
-                        }
                         return lazyNodes;
                     }