|
@@ -49,10 +49,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="tableNum" column="table_num" />
|
|
<result property="tableNum" column="table_num" />
|
|
|
<result property="logo" column="logo" />
|
|
<result property="logo" column="logo" />
|
|
|
<result property="posName" column="pos_name" />
|
|
<result property="posName" column="pos_name" />
|
|
|
|
|
+ <result property="foodAmount" column="food_amount" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="selectPosOrderVo">
|
|
<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 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 from pos_order
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="selectPosOrderList" parameterType="PosOrder" resultMap="PosOrderResult">
|
|
<select id="selectPosOrderList" parameterType="PosOrder" resultMap="PosOrderResult">
|
|
@@ -170,6 +171,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="tableNum != null and tableNum != ''">table_num,</if>
|
|
<if test="tableNum != null and tableNum != ''">table_num,</if>
|
|
|
<if test="logo != null and logo != ''">logo,</if>
|
|
<if test="logo != null and logo != ''">logo,</if>
|
|
|
<if test="posName != null and posName != ''">pos_name,</if>
|
|
<if test="posName != null and posName != ''">pos_name,</if>
|
|
|
|
|
+ <if test="foodAmount != null">food_amount,</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="ddId != null">#{ddId},</if>
|
|
<if test="ddId != null">#{ddId},</if>
|
|
@@ -202,6 +204,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="tableNum != null and tableNum != ''">#{tableNum},</if>
|
|
<if test="tableNum != null and tableNum != ''">#{tableNum},</if>
|
|
|
<if test="logo != null and logo != ''">#{logo},</if>
|
|
<if test="logo != null and logo != ''">#{logo},</if>
|
|
|
<if test="posName != null and posName != ''">#{posName},</if>
|
|
<if test="posName != null and posName != ''">#{posName},</if>
|
|
|
|
|
+ <if test="foodAmount != null">#{foodAmount},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
@@ -240,6 +243,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="tableNum != null and tableNum != ''">table_num = #{tableNum},</if>
|
|
<if test="tableNum != null and tableNum != ''">table_num = #{tableNum},</if>
|
|
|
<if test="logo != null and logo != ''">logo = #{logo},</if>
|
|
<if test="logo != null and logo != ''">logo = #{logo},</if>
|
|
|
<if test="posName != null and posName != ''">pos_name = #{posName},</if>
|
|
<if test="posName != null and posName != ''">pos_name = #{posName},</if>
|
|
|
|
|
+ <if test="foodAmount != null">food_amount = #{foodAmount},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
where id = #{id}
|
|
where id = #{id}
|
|
|
</update>
|
|
</update>
|