|
@@ -45,7 +45,7 @@
|
|
|
<result column="tab_file_type" property="tabFileType"/>
|
|
|
<result column="is_cope_tab" property="isCopeTab"/>
|
|
|
<result column="is_tab_pdf" property="isTabPdf"/>
|
|
|
-
|
|
|
+ <result column="is_type_private_pid" property="isTypePrivatePid"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<resultMap id="resultMap2" type="org.springblade.manager.vo.WbsTreeContractVO">
|
|
@@ -73,27 +73,6 @@
|
|
|
<result column="contractIdRelation" property="contractIdRelation"/>
|
|
|
</resultMap>
|
|
|
|
|
|
-
|
|
|
- <insert id="insertWbsTreeContract1">
|
|
|
- INSERT INTO m_wbs_tree_contract(p_key_id, id, wbs_id, wbs_type, project_id, contract_id, contract_type,
|
|
|
- tenant_id, parent_id, ancestors, dept_category, dept_name, full_name, sort,
|
|
|
- remark, `type`,
|
|
|
- table_type, create_time, create_user, create_dept, update_user, update_time,
|
|
|
- `STATUS`, is_deleted,
|
|
|
- unique_code, partition_code, is_expernode, is_concrete, table_owner,
|
|
|
- major_data_type, init_table_name, is_link_table, excel_id)
|
|
|
- VALUES (#{snowId}, #{wbsTree.id}, #{wbsTree.wbsId}, #{wbsType}, #{wbsTree.projectId}, #{contractId}, 1,
|
|
|
- #{wbsTree.tenantId}, #{wbsTree.parentId}, #{wbsTree.ancestors},
|
|
|
- #{wbsTree.deptCategory}, #{wbsTree.deptName}, #{wbsTree.fullName}, #{wbsTree.sort}, #{wbsTree.remark},
|
|
|
- #{wbsTree.type},
|
|
|
- #{wbsTree.tableType}, #{wbsTree.createTime}, #{wbsTree.createUser}, #{wbsTree.createDept},
|
|
|
- #{wbsTree.updateUser}, #{wbsTree.updateTime},
|
|
|
- #{wbsTree.status}, #{wbsTree.isDeleted}, #{wbsTree.uniqueCode}, #{wbsTree.partitionCode},
|
|
|
- #{wbsTree.isExpernode}, #{wbsTree.isConcrete},
|
|
|
- #{wbsTree.tableOwner}, #{wbsTree.majorDataType}, #{wbsTree.initTableName}, #{wbsTree.isLinkTable},
|
|
|
- #{wbsTree.excelId})
|
|
|
- </insert>
|
|
|
-
|
|
|
<insert id="insertByCondition">
|
|
|
INSERT INTO m_wbs_tree_contract(p_key_id, id, wbs_id, wbs_type, project_id, contract_id, contract_type,
|
|
|
tenant_id, parent_id, ancestors, dept_category, dept_name, full_name, sort,
|
|
@@ -604,4 +583,13 @@
|
|
|
) group by id order by parent_id,`sort`
|
|
|
</select>
|
|
|
|
|
|
+ <select id="selectContractList" resultType="org.springblade.manager.entity.WbsTreeContract">
|
|
|
+ SELECT * FROM m_wbs_tree_contract WHERE id in
|
|
|
+ <foreach item="ids" collection="ids" open="(" close=")" separator=",">
|
|
|
+ #{ids}
|
|
|
+ </foreach>
|
|
|
+ AND project_id = #{projectId}
|
|
|
+ AND wbs_id = #{wbsId}
|
|
|
+ </select>
|
|
|
+
|
|
|
</mapper>
|