leomon
6 days ago 6017102b1d6affc7255e9f2df6f9e45e0b1a75fb
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
<?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.oying.modules.message.mapper.MesCustomerCommentMsgMapper">
    <resultMap id="BaseResultMap" type="com.oying.modules.message.domain.MesCustomerCommentMsg">
        <id column="id" property="id"/>
        <result column="msg_record_id" property="msgRecordId"/>
        <result column="shop_id" property="shopId"/>
        <result column="order_id" property="orderId"/>
        <result column="order_no" property="orderNo"/>
        <result column="buyer_id" property="buyerId"/>
        <result column="buyer_name" property="buyerName"/>
        <result column="evaluation_id" property="evaluationId"/>
        <result column="replied" property="replied"/>
        <result column="create_by" property="createBy"/>
        <result column="create_time" property="createTime"/>
        <result column="update_by" property="updateBy"/>
        <result column="update_time" property="updateTime"/>
        <result column="comment_time" property="commentTime"/>
        <result column="comment_content" property="commentContent"/>
        <result column="reply_content" property="replyContent"/>
        <result column="ext_jump_url" property="extJumpUrl"/>
        <result column="int_jump_path" property="intJumpPath"/>
    </resultMap>
 
    <sql id="Base_Column_List">
        id, msg_record_id, shop_id, order_id, order_no, buyer_id, buyer_name, evaluation_id, replied, create_by, create_time, update_by, update_time, comment_time, comment_content, reply_content, ext_jump_url, int_jump_path
    </sql>
    <sql id="CustomerCommentMsg_Column_List">
        id, shop_id, order_no, buyer_id, buyer_name, replied, comment_time, comment_content, reply_content
    </sql>
 
 
    <select id="findAll" resultMap="BaseResultMap">
        SELECT
        <include refid="Base_Column_List"/>
        FROM mes_customer_comment_msg
        <where>
        </where>
        ORDER BY id DESC
    </select>
 
    <select id="listCustomerComment" resultType="com.oying.modules.message.domain.myDto.MesCustomerCommentMsgDTO"
            parameterType="java.lang.Long">
        SELECT
            <include refid="CustomerCommentMsg_Column_List"/>
        FROM mes_customer_comment_msg
        WHERE shop_id = #{shopId}
        ORDER BY id DESC
    </select>
</mapper>