项目库过滤掉平台件的数据(.xml)

This commit is contained in:
zhn
2023-09-14 09:45:41 +08:00
parent 5912979f4a
commit dc4093d66d
11 changed files with 37 additions and 16 deletions
@@ -27,7 +27,7 @@
FROM
project_library_base a
JOIN mysql.help_topic b ON b.help_topic_id < ( length( a.certification_engineer ) - length( REPLACE ( a.certification_engineer, ',', '' ) ) + 1 )) temp
WHERE user_id = #{userId}) a ON pm.project_id = a.id
WHERE user_id = #{userId} and platform is null) a ON pm.project_id = a.id
where pm.state = #{state}
</select>
@@ -133,7 +133,7 @@
left join project_name_info as pni on plb.project_name_id = pni.id
left join project_year_name_info as pyni on plb.year_name_id=pyni.id
) tmp_tb
where 1=1 and state = #{state}
where 1=1 and state = #{state} and plb.platform is null
<if test="projectName !=null and projectName !=''">
AND project_name LIKE CONCAT(CONCAT('%',#{projectName}),'%')
</if>
@@ -153,7 +153,7 @@
left join project_name_info as pni on plb.project_name_id = pni.id
left join project_year_name_info as pyni on plb.year_name_id=pyni.id
) tmp_tb
where 1=1 and id in
where 1=1 and plb.platform is null and id in
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
#{item}
</foreach>
@@ -175,7 +175,7 @@
left join project_name_info as pni on plb.project_name_id = pni.id
left join project_year_name_info as pyni on plb.year_name_id=pyni.id
) tmp_tb
where 1=1 and state = #{state}
where 1=1 and plb.platform is null and state = #{state}
and id in(
SELECT pm.id AS pm FROM params_manifest pm
JOIN ( SELECT id FROM
@@ -183,7 +183,7 @@
FROM
project_library_base a
JOIN mysql.help_topic b ON b.help_topic_id &lt; ( length( a.certification_engineer ) - length( REPLACE ( a.certification_engineer, ',', '' ) ) + 1 )) temp
WHERE user_id = #{userId}) a ON pm.project_id = a.id
WHERE user_id = #{userId} and platform is null) a ON pm.project_id = a.id
UNION
SELECT DISTINCT pcm.params_manifest_id AS pm FROM params_collect_manifest pcm WHERE sdt = #{userName} and state in('2','5')
@@ -211,7 +211,7 @@
left join project_name_info as pni on plb.project_name_id = pni.id
left join project_year_name_info as pyni on plb.year_name_id = pyni.id
) tmp_tb
where project_id = #{projectId}
where project_id = #{projectId} and plb.platform is null
</select>
<select id="labelListForProjectDetails" resultType="java.util.LinkedHashMap">
@@ -232,7 +232,7 @@
FROM
project_library_base a
JOIN mysql.help_topic b ON b.help_topic_id &lt; ( length( a.certification_engineer ) - length( REPLACE ( a.certification_engineer, ',', '' ) ) + 1 )) temp
WHERE user_id = #{userId}) a ON pm.project_id = a.id
WHERE user_id = #{userId} and platform is null) a ON pm.project_id = a.id
where pm.state = #{state}
</select>
</mapper>
@@ -34,6 +34,7 @@
<sql id="BaseQuerySql">
<where>
platform is null
<if test="paramsReportEO != null">
<if test="paramsReportEO.title !=null and paramsReportEO.title !=''">
AND title LIKE CONCAT(CONCAT('%',#{paramsReportEO.title}),'%')
@@ -30,6 +30,7 @@
<sql id="BaseQuerySql">
<where>
plb.platform is null
<if test="paramsReportExportHistoryEO != null">
<if test="paramsReportExportHistoryEO.projectName !=null and paramsReportExportHistoryEO.projectName !=''">
AND project_name LIKE CONCAT(CONCAT('%',#{paramsReportExportHistoryEO.projectName}),'%')
@@ -57,4 +58,4 @@
<include refid="BaseQuerySql"/>
order by export_time desc
</select>
</mapper>
</mapper>
@@ -138,6 +138,7 @@
JOIN project_year_name_info pyni ON pyni.id = plb.year_name_id
where plb.target_market =#{market}
and pni.project_name =#{car}
and plb.platform is null
GROUP BY plb.id
ORDER BY project_version asc
</select>
@@ -160,7 +161,7 @@
LEFT JOIN ota_manage_apply oma ON oma.project_version = plb.id
LEFT JOIN project_name_info pni ON pni.id = plb.project_name_id
LEFT JOIN project_year_name_info pyni ON pyni.project_name_id = pni.id
WHERE oma.vdr = #{vdr}
WHERE oma.vdr = #{vdr} and plb.platform is null
GROUP BY plb.id
</select>
@@ -108,7 +108,7 @@
LEFT JOIN project_name_info pni ON ( pni.id = plb.project_name_id )
LEFT JOIN project_year_name_info pyni ON ( pyni.id = plb.year_name_id )
WHERE
1=1
1=1 and plb.platform is null
<if test="params.id != null and params.id != null">
and pli.stand_id = #{params.id}
</if>
@@ -62,6 +62,7 @@
LEFT JOIN project_name_info pni ON pni.id = plb.project_name_id
LEFT JOIN project_year_name_info pyni ON pyni.id = plb.year_name_id
where
plb.platform is null
<!--<if test="ncrTrackVO.projectLibraryId != null and ncrTrackVO.projectLibraryId != ''">
plb.id =#{ncrTrackVO.projectLibraryId}
and
@@ -90,7 +91,7 @@
(pli.design_duty_id =#{ncrTrackVO.duty} or pli.prehomo_duty_id =#{ncrTrackVO.duty} or pli.verify_duty_id =#{ncrTrackVO.duty})
and
</if>-->
(
and(
design_flow_status =#{ncrTrackVO.inconformity}
or verify_flow_status =#{ncrTrackVO.inconformity}
)
@@ -161,6 +162,7 @@
LEFT JOIN project_name_info pni ON pni.id = plb.project_name_id
LEFT JOIN project_year_name_info pyni ON pyni.id = plb.year_name_id
where
<if test="ncrTrackVO.projectLibraryId != null and ncrTrackVO.projectLibraryId != ''">
plb.id =#{ncrTrackVO.projectLibraryId}
and
@@ -193,6 +195,7 @@
<foreach collection="list" index="index" item="item" open="(" close=")" separator=",">
#{item}
</foreach>
and plb.platform is null
order by pli.create_time desc
</select>
@@ -53,8 +53,9 @@
left join sys_user as studiouser on plb.studio_engineer=studiouser.id
left join project_year_name_info as pyni on plb.year_name_id=pyni.id
<where>
plb.platform is null
<if test="ids != null and ids !=''">
plb.id in
and plb.id in
<foreach collection="ids.split(',')" index="index" item="item" open="(" separator="," close=")">
#{item}
</foreach>
@@ -66,11 +66,12 @@
<include refid="select_item"/>
<where>
plb.platform is null
<if test="params.projectName != null and params.projectName != ''">
<!--搜索条件:项目名称,包含%,单独搜索-->
<choose>
<when test='params.projectName != null and params.projectName != "" and params.projectName.contains("%")'>
( pni.project_name like '%1%%' escape '1' or pni.project_name like '%1%%' escape '1')
and ( pni.project_name like '%1%%' escape '1' or pni.project_name like '%1%%' escape '1')
</when>
<otherwise>
<!--(pni.project_name like concat('%',#{params.projectName},'%') or pyni.year_name like concat('%',#{params.projectName},'%'))-->
@@ -134,7 +135,10 @@
<include refid="select_item"/>
<where>
plb.platform is null
and(
parent_id = '' or parent_id is null
)
</where>
order by plb.create_time desc
</select>
@@ -206,6 +210,7 @@
<include refid="select_item"/>
<where>
plb.platform is null
<if test="projectLibraryBase.projectName != null and projectLibraryBase.projectName != ''">
<!--搜索条件:项目名称,包含%,单独搜索-->
<choose>
@@ -273,8 +278,9 @@
<select id="queryById" resultType="com.jero.modules.project.entity.ProjectLibraryBase">
<include refid="select_item"/>
<where>
plb.platform is null
<if test="id != null and id != '' ">
plb.id=#{id}
and plb.id=#{id}
</if>
</where>
order by plb.create_time desc
@@ -288,7 +294,7 @@
LEFT JOIN project_name_info pni ON plb.project_name_id = pni.id
LEFT JOIN project_year_name_info pyni ON plb.year_name_id = pyni.id
WHERE
plb.id = #{projectLibraryId}
plb.id = #{projectLibraryId} and platform is null
</select>
<select id="getListByIds" resultType="com.jero.modules.project.entity.ProjectLibraryBase">
@@ -298,6 +304,7 @@
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
#{item}
</foreach>
and plb.platform is null
order by plb.create_time desc
</select>
</mapper>
@@ -34,7 +34,9 @@
LEFT JOIN project_name_info AS pni ON plb.project_name_id = pni.id
LEFT JOIN project_year_name_info AS pyni ON plb.year_name_id = pyni.id
LEFT JOIN sys_dict_item AS sdi ON sdi.item_value = plb.target_market
where plb.parent_id = #{parentId}
where plb.platform is null and(
plb.parent_id = #{parentId}
or plb.id = #{id}
)
</select>
</mapper>
@@ -118,6 +118,7 @@
left join project_laws_inventory pli on pi.project_laws_inventory_id = pli.id
LEFT JOIN buss_document_library bdl ON pi.buss_document_library_id = bdl.id
<where>
plb.platform is null
<if test="params.queryType != 'issuedProcess'">
and pi.id IN (
SELECT
@@ -223,6 +224,7 @@
<foreach collection="params.flowTypeList" index="index" item="item" open="(" separator="," close=")">
#{item}
</foreach>
and plb.platform is null
union
SELECT
pi.id,
@@ -321,6 +323,7 @@
<foreach collection="params.qdqrFlowTypeValue" index="index" item="item" open="(" separator="," close=")">
#{item}
</foreach>
and plb.platform is null
)temp
<include refid="BaseQuerySql"/>
order by
@@ -467,6 +470,7 @@
<foreach collection="params.flowTypeList" index="index" item="item" open="(" separator="," close=")">
#{item}
</foreach>
and plb.platform is null
union
SELECT
pi.id,
@@ -537,6 +541,7 @@
<foreach collection="params.qdqrFlowTypeValue" index="index" item="item" open="(" separator="," close=")">
#{item}
</foreach>
and plb.platform is null
<if test="params.mobileProcessing == 0">
union
SELECT