| | |
| | | <if test="req.type != null and req.type != ''"> |
| | | and `type` like concat('%',#{req.type},'%') |
| | | </if> |
| | | <if test="null != req.ids and req.ids.size()>0" > |
| | | <if test="null != req.ids and req.ids.size()>0 and type ==1"> |
| | | and firstCategory in |
| | | <foreach collection="req.ids" close=")" open="(" item="item" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="null != req.ids and req.ids.size()>0 and type ==2"> |
| | | and secondCategory in |
| | | <foreach collection="req.ids" close=")" open="(" item="item" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="null != req.ids and req.ids.size()>0 and type ==0"> |
| | | and firstCategory in |
| | | <foreach collection="req.ids" close=")" open="(" item="item" separator=","> |
| | | #{item} |