订单评价回显问题

This commit is contained in:
sxu 2025-05-08 14:25:14 +08:00
parent b25009c986
commit 980fbe39ea
2 changed files with 20 additions and 15 deletions

View File

@ -57,6 +57,9 @@ public class MenuEvaluaOrder extends BaseEntity {
@ApiModelProperty(value = "档口或店铺id") @ApiModelProperty(value = "档口或店铺id")
private Long shopstallId; private Long shopstallId;
@ApiModelProperty(value = "档口或店铺名称")
private String stallName;
/** 展示状态(1-展示,2-不展示) */ /** 展示状态(1-展示,2-不展示) */
@Excel(name = "展示状态(1-展示,2-不展示)") @Excel(name = "展示状态(1-展示,2-不展示)")
@ApiModelProperty(value = "展示状态(1-展示,2-不展示)") @ApiModelProperty(value = "展示状态(1-展示,2-不展示)")

View File

@ -11,6 +11,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="reply" column="reply" /> <result property="reply" column="reply" />
<result property="replyTime" column="reply_time" /> <result property="replyTime" column="reply_time" />
<result property="shopstallId" column="shopstall_id" /> <result property="shopstallId" column="shopstall_id" />
<result property="stallName" column="stall_name" />
<result property="showFlag" column="show_flag" /> <result property="showFlag" column="show_flag" />
<result property="delFlag" column="del_flag" /> <result property="delFlag" column="del_flag" />
<result property="revision" column="revision" /> <result property="revision" column="revision" />
@ -22,31 +23,32 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap> </resultMap>
<sql id="selectMenuEvaluaOrderVo"> <sql id="selectMenuEvaluaOrderVo">
select evalua_id, ord_id, star_level, description, reply, reply_time, select meo.evalua_id, meo.ord_id, meo.star_level, meo.description, meo.reply, meo.reply_time,
shopstall_id, show_flag, del_flag, revision, order_evalua_type, meo.shopstall_id, meo.show_flag, meo.del_flag, meo.revision, meo.order_evalua_type,
create_by, create_time, update_by, update_time meo.create_by, meo.create_time, meo.update_by, meo.update_time, ast.stall_name
from menu_evalua_order from menu_evalua_order meo
left join alloc_stall ast on meo.shopstall_id = ast.stall_id
</sql> </sql>
<select id="selectMenuEvaluaOrderList" parameterType="com.bonus.canteen.core.menu.domain.MenuEvaluaOrder" resultMap="MenuEvaluaOrderResult"> <select id="selectMenuEvaluaOrderList" parameterType="com.bonus.canteen.core.menu.domain.MenuEvaluaOrder" resultMap="MenuEvaluaOrderResult">
<include refid="selectMenuEvaluaOrderVo"/> <include refid="selectMenuEvaluaOrderVo"/>
<where> <where>
<if test="evaluaId != null "> and evalua_id = #{evaluaId}</if> <if test="evaluaId != null "> and meo.evalua_id = #{evaluaId}</if>
<if test="ordId != null "> and ord_id = #{ordId}</if> <if test="ordId != null "> and meo.ord_id = #{ordId}</if>
<if test="starLevel != null "> and star_level = #{starLevel}</if> <if test="starLevel != null "> and meo.star_level = #{starLevel}</if>
<if test="description != null and description != ''"> and description = #{description}</if> <if test="description != null and description != ''"> and meo.description = #{description}</if>
<if test="reply != null and reply != ''"> and reply = #{reply}</if> <if test="reply != null and reply != ''"> and meo.reply = #{reply}</if>
<if test="replyTime != null "> and reply_time = #{replyTime}</if> <if test="replyTime != null "> and meo.reply_time = #{replyTime}</if>
<if test="shopstallId != null "> and shopstall_id = #{shopstallId}</if> <if test="shopstallId != null "> and meo.shopstall_id = #{shopstallId}</if>
<if test="showFlag != null "> and show_flag = #{showFlag}</if> <if test="showFlag != null "> and meo.show_flag = #{showFlag}</if>
<if test="revision != null "> and revision = #{revision}</if> <if test="revision != null "> and meo.revision = #{revision}</if>
<if test="orderEvaluaType != null "> and order_evalua_type = #{orderEvaluaType}</if> <if test="orderEvaluaType != null "> and meo.order_evalua_type = #{orderEvaluaType}</if>
</where> </where>
</select> </select>
<select id="selectMenuEvaluaOrderById" parameterType="Long" resultMap="MenuEvaluaOrderResult"> <select id="selectMenuEvaluaOrderById" parameterType="Long" resultMap="MenuEvaluaOrderResult">
<include refid="selectMenuEvaluaOrderVo"/> <include refid="selectMenuEvaluaOrderVo"/>
where ord_id = #{orderId} where meo.ord_id = #{orderId}
</select> </select>
<insert id="insertMenuEvaluaOrder" parameterType="com.bonus.canteen.core.menu.dto.MenuEvaluaOrderAddDTO" useGeneratedKeys="true" keyProperty="evaluaId"> <insert id="insertMenuEvaluaOrder" parameterType="com.bonus.canteen.core.menu.dto.MenuEvaluaOrderAddDTO" useGeneratedKeys="true" keyProperty="evaluaId">