Commit 8a811c4f authored by hezhen's avatar hezhen

123

parent 74c3ccf1
...@@ -15,12 +15,19 @@ ...@@ -15,12 +15,19 @@
<if test="status != null "> <if test="status != null ">
AND a.`status`= #{status} AND a.`status`= #{status}
</if> </if>
<if test="dataCompanyIds != null and dataCompanyIds.size > 0">
and b.id in
<foreach collection="dataCompanyIds" item="id" open="(" separator="," close=")">
#{id}
</foreach>
</if>
<if test="dataCorporationIds != null and dataCorporationIds.size > 0"> <if test="dataCorporationIds != null and dataCorporationIds.size > 0">
and b.company_id in and b.company_id in
<foreach collection="dataCorporationIds" item="id" open="(" separator="," close=")"> <foreach collection="dataCorporationIds" item="id" open="(" separator="," close=")">
#{id} #{id}
</foreach> </foreach>
</if> </if>
</where> </where>
order by a.upd_time DESC order by a.upd_time DESC
</select> </select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment