|
@@ -45,10 +45,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="sdTime" column="sd_time" />
|
|
<result property="sdTime" column="sd_time" />
|
|
|
<result property="payType" column="pay_type" />
|
|
<result property="payType" column="pay_type" />
|
|
|
<result property="parentDdId" column="parent_dd_id" />
|
|
<result property="parentDdId" column="parent_dd_id" />
|
|
|
|
|
+ <result property="orderCategory" column="order_category" />
|
|
|
</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 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 from pos_order
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="selectPosOrderList" parameterType="PosOrder" resultMap="PosOrderResult">
|
|
<select id="selectPosOrderList" parameterType="PosOrder" resultMap="PosOrderResult">
|
|
@@ -81,6 +82,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="sdTime != null"> and sd_time = #{sdTime}</if>
|
|
<if test="sdTime != null"> and sd_time = #{sdTime}</if>
|
|
|
<if test="payType != null"> and pay_type =#{payType}</if>
|
|
<if test="payType != null"> and pay_type =#{payType}</if>
|
|
|
<if test="parentDdId != null and parentDdId != ''"> and parent_dd_id = #{parentDdId}</if>
|
|
<if test="parentDdId != null and parentDdId != ''"> and parent_dd_id = #{parentDdId}</if>
|
|
|
|
|
+ <if test="orderCategory != null and orderCategory != ''"> and order_category = #{orderCategory}</if>
|
|
|
and not (state=0 and collect_payment=0)
|
|
and not (state=0 and collect_payment=0)
|
|
|
</where>
|
|
</where>
|
|
|
order by id desc
|
|
order by id desc
|
|
@@ -116,6 +118,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="sdTime != null"> and sd_time =#{sdTime}</if>
|
|
<if test="sdTime != null"> and sd_time =#{sdTime}</if>
|
|
|
<if test="payType != null"> and pay_type =#{payType}</if>
|
|
<if test="payType != null"> and pay_type =#{payType}</if>
|
|
|
<if test="parentDdId != null and parentDdId != ''"> and parent_dd_id = #{parentDdId}</if>
|
|
<if test="parentDdId != null and parentDdId != ''"> and parent_dd_id = #{parentDdId}</if>
|
|
|
|
|
+ <if test="orderCategory != null and orderCategory != ''"> and order_category = #{orderCategory}</if>
|
|
|
</where>
|
|
</where>
|
|
|
order by kefu_state desc,cretim desc
|
|
order by kefu_state desc,cretim desc
|
|
|
</select>
|
|
</select>
|
|
@@ -154,6 +157,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="sdTime != null">sd_time,</if>
|
|
<if test="sdTime != null">sd_time,</if>
|
|
|
<if test="payType != null">pay_type,</if>
|
|
<if test="payType != null">pay_type,</if>
|
|
|
<if test="parentDdId != null and parentDdId != ''">parent_dd_id,</if>
|
|
<if test="parentDdId != null and parentDdId != ''">parent_dd_id,</if>
|
|
|
|
|
+ <if test="orderCategory != null and orderCategory != ''">order_category,</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>
|
|
@@ -182,6 +186,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="sdTime != null">#{sdTime},</if>
|
|
<if test="sdTime != null">#{sdTime},</if>
|
|
|
<if test="payType != null">#{payType},</if>
|
|
<if test="payType != null">#{payType},</if>
|
|
|
<if test="parentDdId != null and parentDdId != ''">#{parentDdId},</if>
|
|
<if test="parentDdId != null and parentDdId != ''">#{parentDdId},</if>
|
|
|
|
|
+ <if test="orderCategory != null and orderCategory != ''">#{orderCategory},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
@@ -216,6 +221,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="sdTime != null">sd_time = #{sdTime},</if>
|
|
<if test="sdTime != null">sd_time = #{sdTime},</if>
|
|
|
<if test="payType != null">pay_type = #{payType},</if>
|
|
<if test="payType != null">pay_type = #{payType},</if>
|
|
|
<if test="parentDdId != null and parentDdId != ''">parent_dd_id = #{parentDdId},</if>
|
|
<if test="parentDdId != null and parentDdId != ''">parent_dd_id = #{parentDdId},</if>
|
|
|
|
|
+ <if test="orderCategory != null and orderCategory != ''">order_category = #{orderCategory},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
where id = #{id}
|
|
where id = #{id}
|
|
|
</update>
|
|
</update>
|