Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
C
chinafrica
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
chinafrica
Commits
e9c2c47b
提交
e9c2c47b
authored
8月 13, 2020
作者:
吴德鹏
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改订单详情bug
上级
0026d770
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
132 行增加
和
132 行删除
+132
-132
TbCfOrderListDao.xml
.../src/main/resources/com/platform/dao/TbCfOrderListDao.xml
+132
-132
没有找到文件。
platform-admin/src/main/resources/com/platform/dao/TbCfOrderListDao.xml
浏览文件 @
e9c2c47b
...
@@ -3,123 +3,122 @@
...
@@ -3,123 +3,122 @@
<mapper
namespace=
"com.platform.dao.TbCfOrderListDao"
>
<mapper
namespace=
"com.platform.dao.TbCfOrderListDao"
>
<resultMap
type=
"com.platform.entity.TbCfOrderListEntity"
id=
"tbCfOrderListMap"
>
<resultMap
type=
"com.platform.entity.TbCfOrderListEntity"
id=
"tbCfOrderListMap"
>
<result
property=
"orderId"
column=
"order_id"
/>
<result
property=
"orderId"
column=
"order_id"
/>
<result
property=
"orderNo"
column=
"order_no"
/>
<result
property=
"orderNo"
column=
"order_no"
/>
<result
property=
"userName"
column=
"user_name"
/>
<result
property=
"userName"
column=
"user_name"
/>
<result
property=
"orderTime"
column=
"order_time"
/>
<result
property=
"orderTime"
column=
"order_time"
/>
<result
property=
"realityPay"
column=
"reality_pay"
/>
<result
property=
"realityPay"
column=
"reality_pay"
/>
<result
property=
"itemsPrice"
column=
"items_price"
/>
<result
property=
"itemsPrice"
column=
"items_price"
/>
<result
property=
"deliveryAddress"
column=
"delivery_address"
/>
<result
property=
"deliveryAddress"
column=
"delivery_address"
/>
<result
property=
"deliveryName"
column=
"delivery_name"
/>
<result
property=
"deliveryName"
column=
"delivery_name"
/>
<result
property=
"deliveryPhone"
column=
"delivery_phone"
/>
<result
property=
"deliveryPhone"
column=
"delivery_phone"
/>
<result
property=
"payWayCode"
column=
"pay_way_code"
/>
<result
property=
"payWayCode"
column=
"pay_way_code"
/>
<result
property=
"orderStatus"
column=
"order_status"
/>
<result
property=
"orderStatus"
column=
"order_status"
/>
<result
property=
"payId"
column=
"pay_id"
/>
<result
property=
"payId"
column=
"pay_id"
/>
<result
property=
"tax"
column=
"tax"
/>
<result
property=
"tax"
column=
"tax"
/>
<result
property=
"fee"
column=
"fee"
/>
<result
property=
"fee"
column=
"fee"
/>
<result
property=
"couponId"
column=
"coupon_id"
/>
<result
property=
"couponId"
column=
"coupon_id"
/>
<result
property=
"couponTitle"
column=
"coupon_title"
/>
<result
property=
"couponTitle"
column=
"coupon_title"
/>
<result
property=
"deliveryFlag"
column=
"delivery_flag"
/>
<result
property=
"deliveryFlag"
column=
"delivery_flag"
/>
</resultMap>
</resultMap>
<!--查询订单列表-->
<!--查询订单列表-->
<select
id=
"queryOrderList"
resultType=
"com.platform.entity.TbCfOrderListEntity"
>
<select
id=
"queryOrderList"
resultType=
"com.platform.entity.TbCfOrderListEntity"
>
select
select
o.order_id,
o.order_id,
o.order_no,
o.order_no,
o.user_name,
o.user_name,
o.order_time,
o.order_time,
o.reality_pay,
o.reality_pay,
o.delivery_name,
o.delivery_name,
o.delivery_phone,
o.delivery_phone,
o.delivery_address,
o.delivery_address,
f.pay_way_code,
f.pay_way_code,
o.order_status,
o.order_status,
o.pay_id,
o.pay_id,
o.tax,
o.tax,
o.fee,
o.fee,
c.coupon_id,
c.coupon_id,
c.coupon_title,
c.coupon_title,
o.delivery_flag
o.delivery_flag
from tb_cf_order o
from tb_cf_order o
LEFT JOIN tb_cf_finance f on f.order_id=o.order_id
LEFT JOIN tb_cf_finance f on f.order_id=o.order_id
LEFT JOIN tb_cf_user_info u on u.user_id=o.user_id
LEFT JOIN tb_cf_user_info u on u.user_id=o.user_id
LEFT JOIN tb_cf_coupon c on c.coupon_id=o.coupon_id
LEFT JOIN tb_cf_coupon c on c.coupon_id=o.coupon_id
WHERE 1=1 and o.enable_flag=1
WHERE 1=1 and o.enable_flag=1
<if
test=
"name != null and name.trim() != ''"
>
<if
test=
"name != null and name.trim() != ''"
>
AND o.order_no LIKE concat('%',#{name},'%')
AND o.order_no LIKE concat('%',#{name},'%')
</if>
</if>
<if
test=
"userName != null and userName.trim() != ''"
>
<if
test=
"userName != null and userName.trim() != ''"
>
AND o.user_name LIKE concat('%',#{userName},'%')
AND o.user_name LIKE concat('%',#{userName},'%')
</if>
</if>
<if
test=
"orderStatus != null and orderStatus.trim() != ''"
>
<if
test=
"orderStatus != null and orderStatus.trim() != ''"
>
AND o.order_status LIKE concat('%',#{orderStatus},'%')
AND o.order_status LIKE concat('%',#{orderStatus},'%')
</if>
</if>
<if
test=
"start != null and start.trim() != '' "
>
<if
test=
"start != null and start.trim() != '' "
>
AND o.order_time
<![CDATA[>=]]>
CONCAT('', #{start},' 00:00:00')
AND o.order_time
<![CDATA[>=]]>
CONCAT('', #{start},' 00:00:00')
</if>
</if>
<if
test=
"end != null and end.trim() != '' "
>
<if
test=
"end != null and end.trim() != '' "
>
AND o.order_time
<![CDATA[<=]]>
CONCAT('', #{end},' 23:59:59')
AND o.order_time
<![CDATA[<=]]>
CONCAT('', #{end},' 23:59:59')
</if>
</if>
<if
test=
"payWayCode != null and payWayCode.trim() != ''"
>
<if
test=
"payWayCode != null and payWayCode.trim() != ''"
>
AND f.pay_way_code =#{payWayCode}
AND f.pay_way_code =#{payWayCode}
</if>
</if>
<if
test=
"deliveryFlag != null and deliveryFlag.trim() != ''"
>
<if
test=
"deliveryFlag != null and deliveryFlag.trim() != ''"
>
AND o.delivery_flag =#{deliveryFlag}
AND o.delivery_flag =#{deliveryFlag}
</if>
</if>
<if
test=
"payStatus != null and payStatus.trim() != ''"
>
AND o.pay_status =#{payStatus}
</if>
<choose>
<when
test=
"sidx != null and sidx.trim() != ''"
>
order by ${sidx} ${order}
</when>
<otherwise>
order by order_id desc
</otherwise>
</choose>
<if
test=
"offset != null and limit != null"
>
limit #{offset}, #{limit}
</if>
</select>
<!--查询总记录数-->
<select
id=
"queryTotal"
resultType=
"int"
>
select count(*)
from tb_cf_order o
LEFT JOIN tb_cf_finance f on f.order_id=o.order_id
LEFT JOIN tb_cf_user_info u on u.user_id=o.user_id
LEFT JOIN tb_cf_coupon c on c.coupon_id=o.coupon_id
WHERE 1=1 and o.enable_flag=1
<if
test=
"name != null and name.trim() != ''"
>
AND o.order_no LIKE concat('%',#{name},'%')
</if>
<if
test=
"userName != null and userName.trim() != ''"
>
AND o.user_name LIKE concat('%',#{userName},'%')
</if>
<if
test=
"orderStatus != null and orderStatus.trim() != ''"
>
AND o.order_status LIKE concat('%',#{orderStatus},'%')
</if>
<if
test=
"start != null and start.trim() != '' "
>
AND o.order_time
<![CDATA[>=]]>
CONCAT('', #{start},' 00:00:00')
</if>
<if
test=
"end != null and end.trim() != '' "
>
AND o.order_time
<![CDATA[<=]]>
CONCAT('', #{end},' 23:59:59')
</if>
<if
test=
"payWayCode != null and payWayCode.trim() != ''"
>
AND f.pay_way_code =#{payWayCode}
</if>
<if
test=
"deliveryFlag != null and deliveryFlag.trim() != ''"
>
AND o.delivery_flag =#{deliveryFlag}
</if>
<if
test=
"payStatus != null and payStatus.trim() != ''"
>
<if
test=
"payStatus != null and payStatus.trim() != ''"
>
AND o.pay_status =#{payStatus}
AND o.pay_status =#{payStatus}
</if>
</if>
</select>
<choose>
<when
test=
"sidx != null and sidx.trim() != ''"
>
order by ${sidx} ${order}
</when>
<otherwise>
order by order_id desc
</otherwise>
</choose>
<if
test=
"offset != null and limit != null"
>
limit #{offset}, #{limit}
</if>
</select>
<!--查询代购订单列表-->
<!--查询总记录数-->
<select
id=
"queryOrderDeliveryList"
resultType=
"com.platform.vo.DeliveryOrderVo"
>
<select
id=
"queryTotal"
resultType=
"int"
>
select count(*)
from tb_cf_order o
LEFT JOIN tb_cf_finance f on f.order_id=o.order_id
LEFT JOIN tb_cf_user_info u on u.user_id=o.user_id
LEFT JOIN tb_cf_coupon c on c.coupon_id=o.coupon_id
WHERE 1=1 and o.enable_flag=1
<if
test=
"name != null and name.trim() != ''"
>
AND o.order_no LIKE concat('%',#{name},'%')
</if>
<if
test=
"userName != null and userName.trim() != ''"
>
AND o.user_name LIKE concat('%',#{userName},'%')
</if>
<if
test=
"orderStatus != null and orderStatus.trim() != ''"
>
AND o.order_status LIKE concat('%',#{orderStatus},'%')
</if>
<if
test=
"start != null and start.trim() != '' "
>
AND o.order_time
<![CDATA[>=]]>
CONCAT('', #{start},' 00:00:00')
</if>
<if
test=
"end != null and end.trim() != '' "
>
AND o.order_time
<![CDATA[<=]]>
CONCAT('', #{end},' 23:59:59')
</if>
<if
test=
"payWayCode != null and payWayCode.trim() != ''"
>
AND f.pay_way_code =#{payWayCode}
</if>
<if
test=
"deliveryFlag != null and deliveryFlag.trim() != ''"
>
AND o.delivery_flag =#{deliveryFlag}
</if>
<if
test=
"payStatus != null and payStatus.trim() != ''"
>
AND o.pay_status =#{payStatus}
</if>
</select>
<!--查询代购订单列表-->
<select
id=
"queryOrderDeliveryList"
resultType=
"com.platform.vo.DeliveryOrderVo"
>
select
select
r.order_item_id ordersId,
r.order_item_id ordersId,
o.order_id,
o.order_id,
...
@@ -128,7 +127,7 @@
...
@@ -128,7 +127,7 @@
i.item_img,
i.item_img,
i.item_title,
i.item_title,
r.item_num,
r.item_num,
i.item_p
rice,
g.discount_price itemP
rice,
i.item_sku,
i.item_sku,
i.source_item_id,
i.source_item_id,
r.delivery_flag,
r.delivery_flag,
...
@@ -139,12 +138,13 @@
...
@@ -139,12 +138,13 @@
from tb_cf_item_order_r r
from tb_cf_item_order_r r
LEFT JOIN tb_cf_order o on o.order_id=r.order_id
LEFT JOIN tb_cf_order o on o.order_id=r.order_id
LEFT JOIN tb_cf_item_detail i on i.item_id = r.item_id
LEFT JOIN tb_cf_item_detail i on i.item_id = r.item_id
LEFT JOIN tb_cf_station_item g on i.goods_id=g.item_id
LEFT JOIN tb_cf_platform_order p on p.relative_id =r.order_item_id
LEFT JOIN tb_cf_platform_order p on p.relative_id =r.order_item_id
LEFT JOIN tb_cf_coupon c on c.coupon_id =o.coupon_id
LEFT JOIN tb_cf_coupon c on c.coupon_id =o.coupon_id
where r.order_id=#{orderId}
where r.order_id=#{orderId}
</select>
</select>
<!--查询代购订单列表总记录数-->
<!--查询代购订单列表总记录数-->
<select
id=
"queryOrderDeliveryTotal"
resultType=
"int"
>
<select
id=
"queryOrderDeliveryTotal"
resultType=
"int"
>
select count( *)
select count( *)
from tb_cf_item_order_r r
from tb_cf_item_order_r r
LEFT JOIN tb_cf_order o on o.order_id=r.order_id
LEFT JOIN tb_cf_order o on o.order_id=r.order_id
...
@@ -154,8 +154,8 @@
...
@@ -154,8 +154,8 @@
where r.order_id=#{orderId}
where r.order_id=#{orderId}
</select>
</select>
<!--订单详情页数据 -->
<!--订单详情页数据 -->
<select
id=
"queryorderBasic"
resultType=
"com.platform.vo.OrderBasicVo"
>
<select
id=
"queryorderBasic"
resultType=
"com.platform.vo.OrderBasicVo"
>
select
select
o.items_price ,
o.items_price ,
o.order_id,
o.order_id,
...
@@ -184,8 +184,8 @@
...
@@ -184,8 +184,8 @@
</select>
</select>
<!--查询总记录数-->
<!--查询总记录数-->
<select
id=
"queryOrderTotal"
resultType=
"int"
>
<select
id=
"queryOrderTotal"
resultType=
"int"
>
select count( distinct i.order_id)
select count( distinct i.order_id)
from tb_cf_order o
from tb_cf_order o
INNER JOIN tb_cf_item_order_r i on o.order_id=i.order_id
INNER JOIN tb_cf_item_order_r i on o.order_id=i.order_id
...
@@ -193,7 +193,7 @@
...
@@ -193,7 +193,7 @@
INNER JOIN tb_cf_user_info u on u.user_id=o.user_id
INNER JOIN tb_cf_user_info u on u.user_id=o.user_id
WHERE 1=1 and i.enable_flag=1 and f.pay_way_code!='null'
WHERE 1=1 and i.enable_flag=1 and f.pay_way_code!='null'
</select>
</select>
<select
id=
"totalPay"
>
<select
id=
"totalPay"
>
select sum(o.reality_pay)
select sum(o.reality_pay)
from tb_cf_order o
from tb_cf_order o
left join tb_cf_item_order_r i on o.order_id=i.order_id
left join tb_cf_item_order_r i on o.order_id=i.order_id
...
@@ -204,11 +204,11 @@
...
@@ -204,11 +204,11 @@
WHERE 1=1 and f.pay_way_code!='null'
WHERE 1=1 and f.pay_way_code!='null'
</select>
</select>
<update
id=
"closeOrder"
>
<update
id=
"closeOrder"
>
update tb_cf_order set order_status=60 where order_id=#{orderId}
update tb_cf_order set order_status=60 where order_id=#{orderId}
</update>
</update>
<select
id=
"getMemoOrder"
resultType=
"com.platform.vo.OrderBasicVo"
>
<select
id=
"getMemoOrder"
resultType=
"com.platform.vo.OrderBasicVo"
>
select
select
order_id,
order_id,
remark_info,
remark_info,
...
@@ -216,14 +216,14 @@
...
@@ -216,14 +216,14 @@
from tb_cf_order where order_id=#{orderId}
from tb_cf_order where order_id=#{orderId}
</select>
</select>
<update
id=
"saveOrUpdatemMemoOrder"
parameterType=
"com.platform.vo.OrderBasicVo"
>
<update
id=
"saveOrUpdatemMemoOrder"
parameterType=
"com.platform.vo.OrderBasicVo"
>
update
update
tb_cf_order
tb_cf_order
<set>
<set>
<if
test=
"orderId != null"
>
order_id = #{orderId},
</if>
<if
test=
"orderId != null"
>
order_id = #{orderId},
</if>
<if
test=
"remarkInfo != null"
>
remark_info= #{remarkInfo},
</if>
<if
test=
"remarkInfo != null"
>
remark_info= #{remarkInfo},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime},
</if>
</set>
</set>
where order_id=#{orderId}
where order_id=#{orderId}
</update>
</update>
</mapper>
</mapper>
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论