From 982313135d1c239fe3b20e4c5664781f92d40aca Mon Sep 17 00:00:00 2001 From: xin <1099200748@qq.com> Date: Thu, 31 Jul 2025 17:17:39 +0800 Subject: [PATCH] Merge branch 'master' into xin --- oying-system/src/main/resources/mapper/message/MesOrderEvaluationMapper.xml | 71 +++++++++++++++++++++++++++++++++++ 1 files changed, 71 insertions(+), 0 deletions(-) diff --git a/oying-system/src/main/resources/mapper/message/MesOrderEvaluationMapper.xml b/oying-system/src/main/resources/mapper/message/MesOrderEvaluationMapper.xml new file mode 100644 index 0000000..f03b56a --- /dev/null +++ b/oying-system/src/main/resources/mapper/message/MesOrderEvaluationMapper.xml @@ -0,0 +1,71 @@ +<?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.MesOrderEvaluationMapper"> + <resultMap id="BaseResultMap" type="com.oying.modules.message.domain.MesOrderEvaluation"> + <id column="id" property="id"/> + <result column="order_id" property="orderId"/> + <result column="buyer_id" property="buyerId"/> + <result column="order_no" property="orderNo"/> + <result column="shop_id" property="shopId"/> + <result column="shop_name" property="shopName"/> + <result column="rider_id" property="riderId"/> + <result column="rider_name" property="riderName"/> + <result column="goods_score" property="goodsScore"/> + <result column="goods_content" property="goodsContent"/> + <result column="goods_imgs" property="goodsImgs"/> + <result column="shop_score" property="shopScore"/> + <result column="shop_content" property="shopContent"/> + <result column="rider_score" property="riderScore"/> + <result column="rider_content" property="riderContent"/> + <result column="is_deleted" property="isDeleted"/> + <result column="create_by" property="createBy"/> + <result column="create_time" property="createTime"/> + <result column="update_by" property="updateBy"/> + <result column="update_time" property="updateTime"/> + </resultMap> + + <sql id="Base_Column_List"> + id, order_id, buyer_id, order_no, shop_id, shop_name, rider_id, rider_name, goods_score, goods_content, goods_imgs, shop_score, shop_content, rider_score, rider_content, is_deleted, create_by, create_time, update_by, update_time + </sql> + <insert id="addShopEvaluation" parameterType="com.oying.modules.message.domain.myDto.MesOrderEvaluationDto"> + INSERT INTO mes_order_evaluation + <trim prefix="(" suffix=")" suffixOverrides=","> + <if test="shopId != null"> + shop_id, + </if> + <if test="shopName != null and shopName != ''"> + shop_name, + </if> + <if test="shopScore != null"> + shop_score, + </if> + <if test="shopContent != null and shopContent != ''"> + shop_content, + </if> + </trim> + <trim prefix="VALUES (" suffix=")" suffixOverrides=","> + <if test="shopId != null"> + #{shopId}, + </if> + <if test="shopName != null and shopName != ''"> + #{shopName}, + </if> + <if test="shopScore != null"> + #{shopScore}, + </if> + <if test="shopContent != null and shopContent != ''"> + #{shopContent}, + </if> + </trim> + </insert> + + + <select id="findAll" resultMap="BaseResultMap"> + select + <include refid="Base_Column_List"/> + from mes_order_evaluation + <where> + </where> + order by id desc + </select> +</mapper> \ No newline at end of file -- Gitblit v1.9.3