netty
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
<sql id="Base_Column_List">
|
||||
id, master_id, order_id, ref_order_id, total_amount, product_id, cover_img, is_sku,pack_fee,is_pack,is_gift,pending_at,
|
||||
sku_id, name, sale_price, number, total_number, refund_number, category_id, status,
|
||||
type, merchant_id, shop_id, created_at, updated_at, user_id, table_id,pack_fee,trade_day,uuid,,sku_name
|
||||
type, merchant_id, shop_id, created_at, updated_at, user_id, table_id,pack_fee,trade_day,uuid,sku_name
|
||||
</sql>
|
||||
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
@@ -46,6 +46,11 @@
|
||||
from tb_cashier_cart
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<select id="selectByShopIdAndTableId" resultType="com.chaozhanggui.system.cashierservice.entity.TbCashierCart">
|
||||
select
|
||||
<include refid="Base_Column_List"/>
|
||||
from tb_cashier_cart where shop_id = #{shopId} and table_id = #{tableId} and status='create'
|
||||
</select>
|
||||
<select id="selectALlByMasterId" resultType="com.chaozhanggui.system.cashierservice.entity.TbCashierCart">
|
||||
select
|
||||
<include refid="Base_Column_List"/>
|
||||
@@ -351,6 +356,11 @@
|
||||
update tb_cashier_cart set status = #{status} where table_id = #{tableId} and status = 'create'
|
||||
</update>
|
||||
|
||||
<update id="updateStatusById">
|
||||
update tb_cashier_cart set status = #{status} where id = #{id}
|
||||
</update>
|
||||
|
||||
|
||||
<select id="selectByOrderId" resultMap="BaseResultMap">
|
||||
select * from tb_cashier_cart where order_id=#{orderId}
|
||||
<if test="status != null">
|
||||
|
||||
Reference in New Issue
Block a user