select
            <include refid="WorkOrderSection_Column_List" />
        from swo_work_order_section
        where is_del = 0
        <if test="list != null and list.size > 0">
            AND  (start_code, finish_code) IN
            <foreach collection="list" item="item" index="index" open="(" close=")">
                <if test="index != 0">
                    <choose>
                        <when test="index % 1000 == 999"> ) OR (start_code, finish_code) IN ( </when>
                        <otherwise>,</otherwise>
                    </choose>
                </if>
                (
                #{item.startCode,jdbcType=VARCHAR},
                #{item.finishCode,jdbcType=VARCHAR}
                )
            </foreach>
        </if>

 

相关文章:

  • 2021-08-09
  • 2022-12-23
  • 2022-01-12
  • 2022-12-23
  • 2022-01-12
  • 2022-12-23
  • 2022-12-23
  • 2021-08-22
猜你喜欢
  • 2022-12-23
  • 2021-07-05
  • 2021-11-29
  • 2022-12-23
  • 2021-10-23
  • 2022-01-16
相关资源
相似解决方案