<selectid="getByParam"resultMap="CrowdManageResult"parameterType="java.util.Map"> select <includerefid="Base_Column_List"/> from t_crowd_manage where 1=1 <iftest="crowd.name != null"> and name like concat('%',#{crowd.name, jdbcType=VARCHAR},'%') </if> <iftest="crowd.type != null"> and type = #{crowd.type, jdbcType=INTEGER} </if> <iftest="crowd.status != null"> and status = #{crowd.status, jdbcType=INTEGER} </if> <iftest="crowd.noStatus != null"> and status != #{crowd.noStatus, jdbcType=INTEGER} </if> <iftest="ids != null and ids.size() > 0"> and id in <foreachitem="id"collection="ids"open="("separator=","close=")"> #{id, jdbcType=BIGINT} </foreach> </if> order by update_time desc </select>