|
|
@@ -50,10 +50,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="logo" column="logo" />
|
|
|
<result property="posName" column="pos_name" />
|
|
|
<result property="foodAmount" column="food_amount" />
|
|
|
+ <result property="pickUpNum" column="pick_up_num" />
|
|
|
+ <result property="isAccepted" column="is_accepted" />
|
|
|
+ <result property="isDisplay" column="is_display" />
|
|
|
+ <result property="displayTime" column="display_time" />
|
|
|
</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 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_num,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">
|
|
|
@@ -172,6 +176,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="logo != null and logo != ''">logo,</if>
|
|
|
<if test="posName != null and posName != ''">pos_name,</if>
|
|
|
<if test="foodAmount != null">food_amount,</if>
|
|
|
+ <if test="pickUpNum != null">pick_up_num,</if>
|
|
|
+ <if test="isAccepted != null">is_accepted,</if>
|
|
|
+ <if test="isDisplay != null">is_display,</if>
|
|
|
+ <if test="displayTime != null">display_time,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="ddId != null">#{ddId},</if>
|
|
|
@@ -205,6 +213,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="logo != null and logo != ''">#{logo},</if>
|
|
|
<if test="posName != null and posName != ''">#{posName},</if>
|
|
|
<if test="foodAmount != null">#{foodAmount},</if>
|
|
|
+ <if test="pickUpNum != null">#{pickUpNum},</if>
|
|
|
+ <if test="isAccepted != null">#{isAccepted},</if>
|
|
|
+ <if test="isDisplay != null">#{isDisplay},</if>
|
|
|
+ <if test="displayTime != null">#{displayTime},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -244,6 +256,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<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>
|
|
|
+ <if test="pickUpNum != null">pick_up_num = #{pickUpNum},</if>
|
|
|
+ <if test="isAccepted != null">is_accepted = #{isAccepted},</if>
|
|
|
+ <if test="isDisplay != null">is_display = #{isDisplay},</if>
|
|
|
+ <if test="displayTime != null">display_time = #{displayTime},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|