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