|
@@ -94,18 +94,16 @@ id_,title_,content_,sender_id,recipient_id,status_,del_flag,create_by,create_tim
|
|
|
<![CDATA[
|
|
|
select * from base_message_notice a
|
|
|
LEFT JOIN base_message_notice_company b ON a.id_ = b.notice_id
|
|
|
- LEFT JOIN base_company_info c ON b.company_id = c.id_
|
|
|
]]>
|
|
|
<where>
|
|
|
and a.del_flag = false
|
|
|
<if test="searchParams.title != null">
|
|
|
and a.title_ like #{searchParams.title}
|
|
|
</if>
|
|
|
- <if test="searchParams.companyId != null">
|
|
|
- and b.company_id = #{searchParams.companyId}
|
|
|
- </if>
|
|
|
- <if test="searchParams.companyCode != null">
|
|
|
- and c.code_ like #{searchParams.companyCode}
|
|
|
+ <if test="searchParams.companyIds != null">
|
|
|
+ <foreach collection="searchParams.companyIds" item="companyId" open=" and b.company_id in(" close=")" separator=",">
|
|
|
+ #{companyId}
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
</where>
|
|
|
<foreach item="sort" collection="sortList" open="order by" separator=",">
|
|
@@ -116,18 +114,16 @@ id_,title_,content_,sender_id,recipient_id,status_,del_flag,create_by,create_tim
|
|
|
<![CDATA[
|
|
|
select a.id_,a.title_,a.create_time from base_message_notice a
|
|
|
LEFT JOIN base_message_notice_company b ON a.id_ = b.notice_id
|
|
|
- LEFT JOIN base_company_info c ON b.company_id = c.id_
|
|
|
]]>
|
|
|
<where>
|
|
|
and a.del_flag = false
|
|
|
<if test="searchParams.title != null">
|
|
|
and a.title_ like #{searchParams.title}
|
|
|
</if>
|
|
|
- <if test="searchParams.companyId != null">
|
|
|
- and b.company_id like #{searchParams.companyId}
|
|
|
- </if>
|
|
|
- <if test="searchParams.companyCode != null">
|
|
|
- and c.code_ like #{searchParams.companyCode}
|
|
|
+ <if test="searchParams.companyIds != null">
|
|
|
+ <foreach collection="searchParams.companyIds" item="companyId" open=" and b.company_id in(" close=")" separator=",">
|
|
|
+ #{companyId}
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
</where>
|
|
|
<foreach item="sort" collection="sortList" open="order by" separator=",">
|