chenrui
2025-04-08 4e5d5dbb194f097a19ad8ed0ebb8b0d2247230f3
basic-server/src/main/resources/mapper/StandardProductListMapper.xml
@@ -163,4 +163,23 @@
            #{item}
        </foreach>
    </update>
    <select id="standardProductListNoPage" resultType="com.ruoyi.basic.pojo.StandardProductList">
        SELECT * FROM standard_product_list
        <where>
            <if test="standardProductListDto.standardMethodListIds != null">
                AND standard_method_list_id IN
                 <foreach collection="standardProductListDto.standardMethodListIds" open="(" close=")" separator="," item="item">
                     #{item}
                 </foreach>
            </if>
            <if test="standardProductListDto.tree != null and standardProductListDto.tree != '' ">
                AND tree = #{standardProductListDto.tree}
            </if>
            <if test="standardProductListDto.state != null ">
                AND state = #{standardProductListDto.state}
            </if>
        </where>
        ORDER BY standard_method_list_id ASC
    </select>
</mapper>