|
|
@@ -46,7 +46,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="payType" column="pay_type" />
|
|
|
<result property="parentDdId" column="parent_dd_id" />
|
|
|
<result property="orderCategory" column="order_category" />
|
|
|
- <result property="tableNum" column="table_num" />
|
|
|
+ <result property="tableId" column="table_id" />
|
|
|
<result property="logo" column="logo" />
|
|
|
<result property="posName" column="pos_name" />
|
|
|
<result property="foodAmount" column="food_amount" />
|
|
|
@@ -57,7 +57,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectPosOrderVo">
|
|
|
- select id, dd_id, sh_id, md_id, cretim, shdz_id, user_id,sh_address, amount, remarks, state, type, delry_time,food,yh_id,yh_name,md_yh_id,md_yh_name,md_discount_amount,jvli,freight,dining_status,qs_id,pay_url,collect_payment,activity,md_activity,kefu_state,kefu_content,kefu_repeat,repeat_dd_id,sales_name,md_sales_name,sales_reduction,md_sales_reduction,points,points_reduction,sd_time,pay_type,parent_dd_id,order_category,table_num,logo,pos_name,food_amount,pick_up_num,is_accepted,is_display,display_time from pos_order
|
|
|
+ select id, dd_id, sh_id, md_id, cretim, shdz_id, user_id,sh_address, amount, remarks, state, type, delry_time,food,yh_id,yh_name,md_yh_id,md_yh_name,md_discount_amount,jvli,freight,dining_status,qs_id,pay_url,collect_payment,activity,md_activity,kefu_state,kefu_content,kefu_repeat,repeat_dd_id,sales_name,md_sales_name,sales_reduction,md_sales_reduction,points,points_reduction,sd_time,pay_type,parent_dd_id,order_category,table_id,logo,pos_name,food_amount,pick_up_num,is_accepted,is_display,display_time from pos_order
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectPosOrderList" parameterType="PosOrder" resultMap="PosOrderResult">
|
|
|
@@ -91,7 +91,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="payType != null"> and pay_type =#{payType}</if>
|
|
|
<if test="parentDdId != null and parentDdId != ''"> and parent_dd_id = #{parentDdId}</if>
|
|
|
<if test="orderCategory != null and orderCategory != ''"> and order_category = #{orderCategory}</if>
|
|
|
- <if test="tableNum != null and tableNum != ''"> and table_num = #{tableNum}</if>
|
|
|
+ <if test="tableId != null"> and table_id = #{tableId}</if>
|
|
|
<if test="logo != null and logo != ''"> and logo = #{logo}</if>
|
|
|
<if test="posName != null and posName != ''"> and pos_name = #{posName}</if>
|
|
|
and not (state=0 and collect_payment=0)
|
|
|
@@ -130,7 +130,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="payType != null"> and pay_type =#{payType}</if>
|
|
|
<if test="parentDdId != null and parentDdId != ''"> and parent_dd_id = #{parentDdId}</if>
|
|
|
<if test="orderCategory != null and orderCategory != ''"> and order_category = #{orderCategory}</if>
|
|
|
- <if test="tableNum != null and tableNum != ''"> and table_num = #{tableNum}</if>
|
|
|
+ <if test="tableId != null"> and table_id = #{tableId}</if>
|
|
|
<if test="logo != null and logo != ''"> and logo = #{logo}</if>
|
|
|
<if test="posName != null and posName != ''"> and pos_name = #{posName}</if>
|
|
|
</where>
|
|
|
@@ -172,7 +172,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="payType != null">pay_type,</if>
|
|
|
<if test="parentDdId != null and parentDdId != ''">parent_dd_id,</if>
|
|
|
<if test="orderCategory != null and orderCategory != ''">order_category,</if>
|
|
|
- <if test="tableNum != null and tableNum != ''">table_num,</if>
|
|
|
+ <if test="tableId != null">table_id,</if>
|
|
|
<if test="logo != null and logo != ''">logo,</if>
|
|
|
<if test="posName != null and posName != ''">pos_name,</if>
|
|
|
<if test="foodAmount != null">food_amount,</if>
|
|
|
@@ -209,7 +209,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="payType != null">#{payType},</if>
|
|
|
<if test="parentDdId != null and parentDdId != ''">#{parentDdId},</if>
|
|
|
<if test="orderCategory != null and orderCategory != ''">#{orderCategory},</if>
|
|
|
- <if test="tableNum != null and tableNum != ''">#{tableNum},</if>
|
|
|
+ <if test="tableId != null">#{tableId},</if>
|
|
|
<if test="logo != null and logo != ''">#{logo},</if>
|
|
|
<if test="posName != null and posName != ''">#{posName},</if>
|
|
|
<if test="foodAmount != null">#{foodAmount},</if>
|
|
|
@@ -252,7 +252,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="payType != null">pay_type = #{payType},</if>
|
|
|
<if test="parentDdId != null and parentDdId != ''">parent_dd_id = #{parentDdId},</if>
|
|
|
<if test="orderCategory != null and orderCategory != ''">order_category = #{orderCategory},</if>
|
|
|
- <if test="tableNum != null and tableNum != ''">table_num = #{tableNum},</if>
|
|
|
+ <if test="tableId != null">table_id = #{tableId},</if>
|
|
|
<if test="logo != null and logo != ''">logo = #{logo},</if>
|
|
|
<if test="posName != null and posName != ''">pos_name = #{posName},</if>
|
|
|
<if test="foodAmount != null">food_amount = #{foodAmount},</if>
|