<?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.MesRiderEvaluationMapper">
|
<resultMap id="BaseResultMap" type="com.oying.modules.message.domain.MesRiderEvaluation">
|
<id column="id" property="id"/>
|
<result column="order_id" property="orderId"/>
|
<result column="order_no" property="orderNo"/>
|
<result column="rider_id" property="riderId"/>
|
<result column="rider_name" property="riderName"/>
|
<result column="buyer_id" property="buyerId"/>
|
<result column="score" property="score"/>
|
<result column="content" property="content"/>
|
<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, order_no, rider_id, rider_name, buyer_id, score, content, create_by, create_time, update_by, update_time
|
</sql>
|
<insert id="addRiderEvaluation" parameterType="com.oying.modules.message.domain.myDto.MesRiderEvaluationDto">
|
INSERT INTO mes_rider_evaluation
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<if test="orderId != null">
|
order_id,
|
</if>
|
<if test="orderNo != null and orderNo != ''">
|
order_no,
|
</if>
|
<if test="riderId != null">
|
rider_id,
|
</if>
|
<if test="riderName != null and riderName != ''">
|
rider_name,
|
</if>
|
<if test="buyerId != null and buyerId != ''">
|
buyer_id,
|
</if>
|
<if test="score != null">
|
score,
|
</if>
|
<if test="content != null and content != ''">
|
content,
|
</if>
|
<if test="imgs != null and imgs != ''">
|
imgs,
|
</if>
|
</trim>
|
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
<if test="orderId != null">
|
#{orderId},
|
</if>
|
<if test="orderNo != null and orderNo != ''">
|
#{orderNo},
|
</if>
|
<if test="riderId != null">
|
#{riderId},
|
</if>
|
<if test="riderName != null and riderName != ''">
|
#{riderName},
|
</if>
|
<if test="buyerId != null and buyerId != ''">
|
#{buyerId},
|
</if>
|
<if test="score != null">
|
#{score},
|
</if>
|
<if test="content != null and content != ''">
|
#{content},
|
</if>
|
<if test="imgs != null and imgs != ''">
|
#{imgs},
|
</if>
|
</trim>
|
</insert>
|
|
<select id="findAll" resultMap="BaseResultMap">
|
select
|
<include refid="Base_Column_List"/>
|
from mes_rider_evaluation
|
<where>
|
</where>
|
order by id desc
|
</select>
|
</mapper>
|