|
@@ -7,7 +7,7 @@
|
|
|
insert into
|
|
|
bus_private_ordering(code,origin,destination,start_time,end_time,people_num,jdrq,people_all,budget_min,budget_max,language,nature_type,name,email,rhythm,hotel_scale,resources_needed,flight,remarks,uuid,order_type)
|
|
|
values
|
|
|
- (#{code},#{origin},#{destination},#{startTime},#{endTime},#{peopleNum},GETDATE(),#{peopleAll},#{budgetMin},#{budgetMax},#{language},#{natureType},#{name},#{email},#{rhythm},#{hotelScale},#{resourcesNeeded},#{flight},#{remarks},#{uuid},0)
|
|
|
+ (#{code},#{origin},#{destination},#{startTime},#{endTime},#{peopleNum},format(SYSDATETIME(),'yyyy-MM-dd hh:mm:ss'),#{peopleAll},#{budgetMin},#{budgetMax},#{language},#{natureType},#{name},#{email},#{rhythm},#{hotelScale},#{resourcesNeeded},#{flight},#{remarks},#{uuid},0)
|
|
|
</insert>
|
|
|
<!-- 查询私人订制 -->
|
|
|
<select id="getPrivate" resultType="PrivateOrder">
|
|
@@ -24,8 +24,24 @@
|
|
|
and code = #{code}
|
|
|
</if>
|
|
|
</select>
|
|
|
+ <!-- 查询私人订制 -->
|
|
|
+ <select id="getPrivateAll" resultType="PrivateOrder">
|
|
|
+ SELECT
|
|
|
+ *
|
|
|
+ FROM
|
|
|
+ ( SELECT *, ROW_NUMBER ( ) OVER ( ORDER BY ID ) AS RowId FROM bus_private_ordering ) AS b
|
|
|
+ WHERE
|
|
|
+ RowId BETWEEN #{page} AND #{limit}
|
|
|
+ <if test="uuid != null and uuid != ''">
|
|
|
+ and uuid = #{uuid}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
<!-- 删除私人订制 -->
|
|
|
<delete id="delPrivate" parameterType="PrivateOrder">
|
|
|
delete from bus_private_ordering where code = #{code} and uuid = #{uuid}
|
|
|
</delete>
|
|
|
+ <!-- 新增收藏 -->
|
|
|
+ <insert id="addCollection" parameterType="OrderingConllection">
|
|
|
+ insert into bus_collection(uuid,code,jdrq,ordering_uuid) values(#{uuid},#{code},format(SYSDATETIME(),'yyyy-MM-dd hh:mm:ss'),#{orderingUuid})
|
|
|
+ </insert>
|
|
|
</mapper>
|