You've already forked FrameTour-BE
修改
This commit is contained in:
@ -153,6 +153,33 @@
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
<update id="updateOrder">
|
||||
update `order`
|
||||
<set>
|
||||
<if test="remark!= null and remark!= ''">
|
||||
remark = #{remark},
|
||||
</if>
|
||||
<if test="refundReason!= null and refundReason!= ''">
|
||||
refund_reason = #{refundReason},
|
||||
</if>
|
||||
<if test="refundStatus!= null ">
|
||||
refund_status = #{refundStatus},
|
||||
</if>
|
||||
<if test="status!= null ">
|
||||
`status` = #{status},
|
||||
</if>
|
||||
<if test="refundAt!= null ">
|
||||
refund_at = #{refundAt},
|
||||
</if>
|
||||
<if test="payAt!= null ">
|
||||
pay_at = #{payAt},
|
||||
</if>
|
||||
<if test="cancelAt!= null ">
|
||||
cancel_at = #{cancelAt},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
<delete id="deleteById">
|
||||
delete from `order` where id = #{id}
|
||||
</delete>
|
||||
@ -345,4 +372,10 @@
|
||||
and o.status = 1
|
||||
limit 1
|
||||
</select>
|
||||
<select id="get" resultType="com.ycwl.basic.model.pc.order.entity.OrderEntity">
|
||||
select * from `order` where id = #{id}
|
||||
</select>
|
||||
<select id="getOrderItem" resultType="com.ycwl.basic.model.pc.order.entity.OrderItemEntity">
|
||||
select * from order_item where id = #{id}
|
||||
</select>
|
||||
</mapper>
|
@ -36,7 +36,7 @@
|
||||
<if test="isBuy!=null">is_buy = #{isBuy}, </if>
|
||||
<if test="orderId!=null">order_id = #{orderId}, </if>
|
||||
</set>
|
||||
where member_id = #{memberId} and face_id = #{faceId} and type = #{type}
|
||||
where member_id = #{memberId} and face_id = #{faceId} and `type` = #{type}
|
||||
</update>
|
||||
<delete id="deleteById">
|
||||
delete from source where id = #{id}
|
||||
|
Reference in New Issue
Block a user