|
@@ -183,6 +183,9 @@
|
|
|
<if test="vo.projectId != null and vo.projectId != ''">
|
|
|
and matc.project_id = #{vo.projectId}
|
|
|
</if>
|
|
|
+ <if test="vo.contractId != null and vo.contractId != ''">
|
|
|
+ and uaa.contract_id = #{vo.contractId}
|
|
|
+ </if>
|
|
|
<if test="vo.searchType == 1 and vo.queryValue != null and vo.queryValue != ''">
|
|
|
and uaa.name like concat('%',#{vo.queryValue},'%')
|
|
|
</if>
|
|
@@ -231,6 +234,9 @@
|
|
|
</foreach>
|
|
|
) matc left join u_archives_auto uaa on matc.id = uaa.node_id left join u_archive_file uaf on uaa.id = uaf.archive_id
|
|
|
where uaa.is_deleted = 0
|
|
|
+ <if test="vo.contractId != null and vo.contractId != ''">
|
|
|
+ and uaa.contract_id = #{vo.contractId}
|
|
|
+ </if>
|
|
|
<if test="vo.searchType == 1 and vo.queryValue != null and vo.queryValue != ''">
|
|
|
and uaa.name like concat('%',#{vo.queryValue},'%')
|
|
|
</if>
|
|
@@ -311,6 +317,14 @@
|
|
|
<select id="getCarrierTypeByDict" resultType="org.springblade.system.entity.DictBiz">
|
|
|
SELECT * FROM blade_dict_biz WHERE code = 'storage_type' AND parent_id > 0 AND tenant_id = 000000
|
|
|
</select>
|
|
|
+ <select id="getUserRoleName" resultType="java.lang.String">
|
|
|
+ SELECT br.role_name
|
|
|
+ FROM blade_role br
|
|
|
+ WHERE br.id = (
|
|
|
+ SELECT role_id FROM m_project_assignment_user
|
|
|
+ WHERE project_id = #{projectId} AND contract_id = #{contractId} AND user_id = #{userId}
|
|
|
+ )
|
|
|
+ </select>
|
|
|
|
|
|
|
|
|
<update id="splitFiles" >
|