zj
2026-01-11 28701d9c708089cd64e3dc813ad1d9079de6528a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.nq.dao.StockAiMapper" >
 
  <sql id="Base_Column_List" >
    id, stock_type, stock_name, min_price, success_rate, expected_earning, cycle, status, create_date
  </sql>
 
  <select id="getStockAiList" resultType="com.nq.vo.stock.ai.StockAiVO">
    SELECT
    <include refid="Base_Column_List" />
    from stock_ai
    <where>
      <if test="stockType != null and stockType != ''">
        and stock_type = #{stockType}
      </if>
      <if test="status != null and status != ''">
        and status = #{status}
      </if>
      <if test="name != null and name != ''">
        and stock_name like concat('%',#{name},'%')
      </if>
    </where>
    ORDER BY create_date DESC
  </select>
</mapper>