zyy
2025-10-30 e014dbe36e3c7d11d0ce55285f57507175a55039
trading-order-service/src/main/resources/mapper/dz/StockDzMapper.xml
@@ -15,7 +15,10 @@
        </if>
        <if test="keyWords != null and keyWords != '' ">
            AND (stock_spell LIKE #{keyWords} OR stock_name LIKE #{keyWords})
            AND (
            stock_spell LIKE CONCAT('%', #{keyWords}, '%')
            OR stock_name LIKE CONCAT('%', #{keyWords}, '%')
            )
        </if>
        <if test="orderBy != null">
@@ -38,7 +41,10 @@
            AND stock_type = #{stockType}
        </if>
        <if test="keyWords != null and keyWords != '' ">
            AND (stock_code LIKE #{keyWords} OR stock_name LIKE #{keyWords})
            AND (
            stock_code LIKE CONCAT('%', #{keyWords}, '%')
            OR stock_name LIKE CONCAT('%', #{keyWords}, '%')
            )
        </if>
        ORDER BY  add_time DESC
    </select>
@@ -75,7 +81,7 @@
            AND t.state = #{state}
        </if>
        <if test="stockCode != null and stockCode != '' ">
            AND t.symbol = #{stockCode}
            AND t.symbol LIKE CONCAT('%', #{stockCode}, '%')
        </if>
        <if test="stockType != null and stockType != '' ">
            AND s.stock_type = #{stockType}