<?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>
|