zxl
3 天以前 b76f0174ce81d7639bf33cc10e67cb6b9e85de3f
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?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="cn.lili.modules.lmk.mapper.PriceChangeMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="cn.lili.modules.lmk.domain.vo.PriceChangeVO">
        <id column="id" property="id"/>
        <result column="store_id" property="storeId" />
        <result column="goods_id" property="goodsId" />
        <result column="sku_id" property="skuId" />
        <result column="previous_price" property="previousPrice" />
        <result column="current_price" property="currentPrice" />
        <result column="previous_commission" property="previousCommission" />
        <result column="current_commission" property="currentCommission" />
        <result column="operator_name" property="operatorName" />
        <result column="operator_id" property="operatorId" />
        <result column="examine_status" property="examineStatus" />
        <result column="operator_type" property="operatorType" />
    </resultMap>
 
 
 
 
 
 
 
    <select id="getById" resultMap="BaseResultMap">
        SELECT
            LPC.store_id,
            LPC.goods_id,
            LPC.sku_id,
            LPC.previous_price,
            LPC.current_price,
            LPC.previous_commission,
            LPC.current_commission,
            LPC.operator_name,
            LPC.operator_id,
            LPC.examine_status,
            LPC.operator_type,
            LPC.id
        FROM
            lmk_price_change LPC
        WHERE
            LPC.id = #{id} AND LPC.delete_flag = 0
    </select>
 
 
    <select id="getPage" resultMap="BaseResultMap">
        SELECT
            LPC.store_id,
            LPC.goods_id,
            LPC.sku_id,
            LPC.previous_price,
            LPC.current_price,
            LPC.previous_commission,
            LPC.current_commission,
            LPC.operator_name,
            LPC.operator_id,
            LPC.examine_status,
            LPC.operator_type,
            LPC.id
        FROM
            lmk_price_change LPC
        WHERE
            LPC.delete_flag = 0
    </select>
 
</mapper>