feat:查询座位信息
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
<result column="available_all_ticket_quantity" property="availableAllTicketQuantity" />
|
||||
<result column="sale_time" property="saleTime" />
|
||||
<result column="project_id" property="projectId" />
|
||||
<result column="sold_out" property="soldOut"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
@@ -53,7 +54,8 @@
|
||||
available_ticket_quantity,
|
||||
available_all_ticket_quantity,
|
||||
sale_time,
|
||||
project_id
|
||||
project_id,
|
||||
sold_out
|
||||
</sql>
|
||||
|
||||
<insert id="insert" useGeneratedKeys="true" keyColumn="id" keyProperty="id" parameterType="com.xiang.xservice.fwd.entity.pojo.FPerformSeatInfo">
|
||||
@@ -126,7 +128,10 @@
|
||||
sale_time,
|
||||
</if>
|
||||
<if test="null != projectId ">
|
||||
project_id
|
||||
project_id,
|
||||
</if>
|
||||
<if test="null != soldOut ">
|
||||
sold_out
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
@@ -197,7 +202,10 @@
|
||||
#{saleTime},
|
||||
</if>
|
||||
<if test="null != projectId ">
|
||||
#{projectId}
|
||||
#{projectId},
|
||||
</if>
|
||||
<if test="null != soldOut ">
|
||||
#{soldOut},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
@@ -209,7 +217,7 @@
|
||||
status, max_sell_stock, sold_stock, left_stock, able_sale_quantity,
|
||||
ash_show, ash_show_desc, selectable, display,
|
||||
available_ticket_quantity, available_all_ticket_quantity,
|
||||
sale_time, project_id
|
||||
sale_time, project_id, sold_out
|
||||
)
|
||||
VALUES
|
||||
<foreach collection="list" item="item" separator=",">
|
||||
@@ -219,7 +227,7 @@
|
||||
#{item.status}, #{item.maxSellStock}, #{item.soldStock}, #{item.leftStock}, #{item.ableSaleQuantity},
|
||||
#{item.ashShow}, #{item.ashShowDesc}, #{item.selectable}, #{item.display},
|
||||
#{item.availableTicketQuantity}, #{item.availableAllTicketQuantity},
|
||||
#{item.saleTime}, #{item.projectId}
|
||||
#{item.saleTime}, #{item.projectId}, #{item.soldOut}
|
||||
)
|
||||
</foreach>
|
||||
|
||||
@@ -251,7 +259,8 @@
|
||||
<if test="null != availableTicketQuantity ">available_ticket_quantity = #{availableTicketQuantity},</if>
|
||||
<if test="null != availableAllTicketQuantity ">available_all_ticket_quantity = #{availableAllTicketQuantity},</if>
|
||||
<if test="null != saleTime ">sale_time = #{saleTime},</if>
|
||||
<if test="null != projectId ">project_id = #{projectId}</if>
|
||||
<if test="null != projectId ">project_id = #{projectId},</if>
|
||||
<if test="null != soldOut">sold_out = #{soldOut}</if>
|
||||
</set>
|
||||
WHERE id = #{id}
|
||||
</update>
|
||||
@@ -269,5 +278,10 @@
|
||||
from fwd_perform_seat_info
|
||||
where seat_plan_id = #{seatId} and perform_id = #{performId} and project_id = #{projectId}
|
||||
</select>
|
||||
<select id="getPerformSeatByProjectId" resultType="com.xiang.xservice.fwd.entity.pojo.FPerformSeatInfo">
|
||||
select <include refid="Base_Column_List"/>
|
||||
from fwd_perform_seat_info
|
||||
where project_id = #{projectId}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user