|
@@ -13,9 +13,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="createTime" column="create_time" />
|
|
<result property="createTime" column="create_time" />
|
|
<result property="stationId" column="station_id" />
|
|
<result property="stationId" column="station_id" />
|
|
<result property="stationName" column="station_name" />
|
|
<result property="stationName" column="station_name" />
|
|
|
|
+ <result property="orderNo" column="order_no" />
|
|
</resultMap>
|
|
</resultMap>
|
|
<sql id="selectCustomerPointsRecordVo">
|
|
<sql id="selectCustomerPointsRecordVo">
|
|
- select id, union_id, customer_name, record_type, integral, create_time, station_id, station_name from customer_points_record
|
|
|
|
|
|
+ select id, union_id, customer_name, record_type, integral, create_time, station_id, d.dept_name as station_name,order_no
|
|
|
|
+ from customer_points_record p join sys_dept d on p.station_id = d.dept_id
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectCustomerPointsRecordList" parameterType="CustomerPointsRecord" resultMap="CustomerPointsRecordResult">
|
|
<select id="selectCustomerPointsRecordList" parameterType="CustomerPointsRecord" resultMap="CustomerPointsRecordResult">
|
|
@@ -51,7 +53,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="integral != null">integral,</if>
|
|
<if test="integral != null">integral,</if>
|
|
<if test="createTime != null">create_time,</if>
|
|
<if test="createTime != null">create_time,</if>
|
|
<if test="stationId != null">station_id,</if>
|
|
<if test="stationId != null">station_id,</if>
|
|
- <if test="stationName != null">station_name,</if>
|
|
|
|
|
|
+ <if test="orderNo != null">order_no,</if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="unionId != null">#{unionId},</if>
|
|
<if test="unionId != null">#{unionId},</if>
|
|
@@ -60,7 +62,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="integral != null">#{integral},</if>
|
|
<if test="integral != null">#{integral},</if>
|
|
<if test="createTime != null">#{createTime},</if>
|
|
<if test="createTime != null">#{createTime},</if>
|
|
<if test="stationId != null">#{stationId},</if>
|
|
<if test="stationId != null">#{stationId},</if>
|
|
- <if test="stationName != null">#{stationName},</if>
|
|
|
|
|
|
+ <if test="orderNo != null">#{orderNo},</if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -73,7 +75,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="integral != null">integral = #{integral},</if>
|
|
<if test="integral != null">integral = #{integral},</if>
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
<if test="stationId != null">station_id = #{stationId},</if>
|
|
<if test="stationId != null">station_id = #{stationId},</if>
|
|
- <if test="stationName != null">station_name = #{stationName},</if>
|
|
|
|
|
|
+ <if test="orderNo != null">order_no = #{orderNo},</if>
|
|
</trim>
|
|
</trim>
|
|
where id = #{id}
|
|
where id = #{id}
|
|
</update>
|
|
</update>
|