Cui Zhi Feng
2024-10-23 2910bb2a5351c7aaf2e4e72f31c0e9c075dd7cbf
src/main/resources/mapper/flower/FlowerMarkupSpMapper.xml
@@ -33,6 +33,19 @@
                )
            )
        </if>
        <if test="condition.supplierName != null and condition.supplierName != ''">
            AND s.name LIKE concat('%', #{condition.supplierName},'%')
        </if>
        <if test="condition.isFee != null">
        <choose>
            <when test="condition.isFee == 'markup'">
                AND sp.fee > 0
            </when>
            <otherwise>
                AND (sp.fee is null or sp.fee = 0)
            </otherwise>
        </choose>
        </if>
        ORDER BY f.id
    </select>
@@ -68,6 +81,16 @@
            )
            )
        </if>
        <if test="condition.isFee != null">
            <choose>
                <when test="condition.isFee == 'markup'">
                    AND sp.fee > 0
                </when>
                <otherwise>
                    AND (sp.fee is null or sp.fee = 0)
                </otherwise>
            </choose>
        </if>
        ORDER BY f.id
    </select>
</mapper>