<?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="cc.mrbird.febs.mall.mapper.MallGoodsCommentMapper">
|
|
<select id="getCommentListInPage" resultType="cc.mrbird.febs.mall.vo.AdminMallGoodsCommentVo">
|
select a.*,
|
b.name memberName,
|
c.order_no orderNo
|
from mall_goods_comment a
|
left join mall_member b on a.member_id = b.id
|
left join mall_order_info c on a.order_id = c.id
|
<where>
|
<if test="record != null">
|
<if test="record.goodsName != null and record.goodsName != ''">
|
and a.goods_name like CONCAT('%', CONCAT(#{record.goodsName}, '%'))
|
</if>
|
<if test="record.name != null and record.name != ''">
|
and b.name like CONCAT('%', CONCAT(#{record.name}, '%'))
|
</if>
|
</if>
|
</where>
|
order by a.created_time desc
|
</select>
|
|
</mapper>
|