zj
2024-06-03 287ac389edd047696d956afafdb855a93830bc0c
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?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.StockSubscribeMapper">
 
    <resultMap id="BaseResultMap" type="com.nq.pojo.StockSubscribe">
            <id property="newlistId" column="newlist_id" jdbcType="INTEGER"/>
            <result property="name" column="name" jdbcType="VARCHAR"/>
            <result property="code" column="code" jdbcType="VARCHAR"/>
            <result property="price" column="price" jdbcType="VARCHAR"/>
            <result property="orderNumber" column="order_number" jdbcType="BIGINT"/>
            <result property="zt" column="zt" jdbcType="TINYINT"/>
            <result property="isLock" column="isLock" jdbcType="TINYINT"/>
            <result property="subscribeTime" column="subscribe_time" jdbcType="TIMESTAMP"/>
            <result property="subscriptionTime" column="subscription_time" jdbcType="TIMESTAMP"/>
            <result property="type" column="type" jdbcType="INTEGER"/>
    </resultMap>
 
    <sql id="Base_Column_List">
        newlist_id,name,code,
        price,order_number,zt,is_lock,
        subscribe_time,subscription_time,type
    </sql>
<!--    <select id="listByAdmin"  resultMap="BaseResultMap" parameterType="map">-->
<!--        select-->
<!--        <include refid="Base_Column_List"/>-->
<!--        from stock_subscribe-->
<!--        <where>-->
<!--        <if test="type != null">-->
<!--            and type = #{type}-->
<!--        </if>-->
<!--        <if test="zt != null">-->
<!--            and zt = #{zt}-->
<!--        </if>-->
<!--        <if test="code != null and code != ''">-->
<!--                and code like '%${mohu}%'-->
<!--        </if>-->
<!--        <if test="name != null and name !=''">-->
<!--            and name = like concat('%',#{name},'%')-->
<!--        </if>-->
<!--        </where>-->
 
 
<!--    </select>-->
</mapper>