forked from integrated_whb/integrated_whb
三项制度库
parent
5d8f3acda0
commit
fe0dbc0ec8
|
@ -144,6 +144,7 @@
|
|||
<include refid="tableName"></include> f
|
||||
left join sys_user su on f.UPLOAD_USER = su.USER_ID
|
||||
left join bus_corp_info bci on bci.CORPINFO_ID = su.CORPINFO_ID
|
||||
left join bus_library_labels b ON b.BUS_TEXT_LIBRARY_ID = f.BUS_TEXT_LIBRARY_ID
|
||||
where f.ISDELETE = '0'
|
||||
<if test="pd.KEYWORDS != null and pd.KEYWORDS != ''"><!-- 关键词检索 -->
|
||||
and f.REMARKS LIKE CONCAT(CONCAT('%', #{pd.KEYWORDS}),'%')
|
||||
|
@ -166,12 +167,10 @@
|
|||
</foreach>)
|
||||
</if>
|
||||
<if test="pd.CATEGORY_ID != null and pd.CATEGORY_ID != ''">
|
||||
and (exists(select 1 from bus_library_labels b where b.BUS_TEXT_LIBRARY_ID = f.BUS_TEXT_LIBRARY_ID and b.CATEGORY_ID = #{pd.CATEGORY_ID})
|
||||
or exists(select 1 from bus_library_labels b where b.BUS_TEXT_LIBRARY_ID = f.BUS_TEXT_LIBRARY_ID and b.CATEGORY_ID = #{pd.TYPE_ONE}))
|
||||
and b.CATEGORY_ID in (#{pd.CATEGORY_ID}, #{pd.TYPE_ONE})
|
||||
</if>
|
||||
<if test="pd.plan != null and pd.plan != ''">
|
||||
and (exists(select 1 from bus_library_labels b where b.BUS_TEXT_LIBRARY_ID = f.BUS_TEXT_LIBRARY_ID and b.CATEGORY_ID = #{pd.plan})
|
||||
and exists(select 1 from bus_library_labels b where b.BUS_TEXT_LIBRARY_ID = f.BUS_TEXT_LIBRARY_ID and b.CATEGORY_ID = #{pd.TYPE_ONE}))
|
||||
and b.CATEGORY_ID in ( #{pd.plan}, #{pd.TYPE_ONE})
|
||||
</if>
|
||||
<if test="pd.CORPINFO_ID != null and pd.CORPINFO_ID != ''">
|
||||
and f.CORPINFO_ID = #{pd.CORPINFO_ID}
|
||||
|
|
|
@ -231,9 +231,6 @@
|
|||
from
|
||||
<include refid="tableName"></include> f
|
||||
where 1 =1
|
||||
<if test="CORPINFO_ID != null and CORPINFO_ID != ''"><!-- 检索 -->
|
||||
and f.CORPINFO_ID = #{CORPINFO_ID}
|
||||
</if>
|
||||
<if test="PARENT_ID != null and PARENT_ID != ''"><!-- 检索 -->
|
||||
and f.PARENT_ID = #{PARENT_ID}
|
||||
</if>
|
||||
|
|
Loading…
Reference in New Issue