1
zj
2024-06-03 09206aedcfdf30050123e99f2af0a192ebad1de4
src/main/resources/mapper/StockMapper.xml
@@ -188,39 +188,6 @@
      <if test="stockType != null and stockType != '' ">
        and stock_type = #{stockType}
      </if>
      <if test="stockType != null and stockType != '' ">
        and stock_type = #{stockType}
      </if>
    </where>
    ORDER BY id ASC
  </select>
  <select id="dailyLimitQuery" resultMap="BaseResultMap" parameterType="map">
    SELECT
    <include refid="Base_Column_List" />
    from stock
    <where>
      is_show = ${show}
      <if test="keyWords != null and keyWords != '' ">
        and ( stock_spell like concat('%',#{keyWords},'%')
        or stock_name like concat('%',#{keyWords},'%')  )
      </if>
      <!--      <if test="stockPlate != null and stockPlate != '' ">-->
      <!--        and stock_plate = #{stockPlate}-->
      <!--      </if>-->
      <!--      <if test="stockPlate == null or stockPlate == '' ">-->
      <!--        and (stock_plate is null or stock_plate='' or stock_plate='η§‘εˆ›' or stock_plate='εˆ›δΈš' )-->
      <!--      </if>-->
      <if test="stockType != null and stockType != '' ">
        and stock_type = #{stockType}
        and increase_ratio &gt; 19.5
      </if>
      <if test="stockType != null and stockType != '' ">
        and stock_type = #{stockType}
      </if>
    </where>
    ORDER BY id ASC