记得上下班打卡 | git大法好,push需谨慎

Commit 7b639ae5 authored by jiangxiulong's avatar jiangxiulong

运单信息

parent f2758142
......@@ -376,30 +376,35 @@
field: 'mailno',
title: '运单信息',
formatter: function (value, row) {
let sendExpressTypeName = "";
if (row.sendExpressType == 1) {
sendExpressTypeName = "上门取件";
} else if (row.sendExpressType == 2) {
sendExpressTypeName = "自主发货";
} else {
sendExpressTypeName = "未知";
}
if (row.type == 3 && null != value) {
let sendExpressTypeName = "";
if (row.sendExpressType == 1) {
sendExpressTypeName = "上门取件";
} else if (row.sendExpressType == 2) {
sendExpressTypeName = "自主发货";
} else {
sendExpressTypeName = "未知";
}
let expressStatusName = "";
if (row.expressStatus == 1) {
expressStatusName = "下单失败";
} else if (row.expressStatus == 2) {
expressStatusName = "已下单";
} else if (row.expressStatus == 3) {
expressStatusName = "已取消";
} else if (row.expressStatus == 80) {
expressStatusName = "已签收";
} else if (row.expressStatus == 8000) {
expressStatusName = "已签收";
let expressStatusName = "";
if (row.expressStatus == 1) {
expressStatusName = '<span style="color: red">下单失败</span>';
} else if (row.expressStatus == 2) {
expressStatusName = "已下单";
} else if (row.expressStatus == 3) {
expressStatusName = "已取消";
} else if (row.expressStatus == 80) {
expressStatusName = "已签收";
} else if (row.expressStatus == 8000) {
expressStatusName = "已签收";
} else {
expressStatusName = "运输中";
}
return value + '<br>' + sendExpressTypeName + '<br>' + expressStatusName + '<br>' + row.remark
} else {
expressStatusName = "运输中";
return "";
}
return value + '<br>' + sendExpressTypeName + '<br>' + expressStatusName + '<br>' + row.remark
}
},
{
......
......@@ -81,55 +81,55 @@
<select id="misRefundList" resultType="com.liquidnet.service.kylin.dao.OrderRefundDao" resultMap="misRefundListResult">
select t.*, b.order_code, b.performance_title, b.get_ticket_type from
(select a.*, d.mailno, d.send_express_type,d.remark,d.express_status
from kylin_order_refunds a
LEFT JOIN kylin_order_express AS d ON d.order_refunds_id = a.order_refunds_id
<where>
<if test="expressStatus != '' and expressStatus != 70 and expressStatus != 80">AND oe.express_status =
${expressStatus}
</if>
<if test="expressStatus == 70">AND (oe.express_status > 3 AND oe.express_status != 80 AND oe.express_status
!= 8000)
</if>
<if test="expressStatus == 80">AND (oe.express_status = 80 OR oe.express_status = 8000)</if>
<if test="orderTicketsId!=''">
AND a.order_tickets_id = #{orderTicketsId}
</if>
<if test="type!='' and type != 4">
AND a.type = #{type}
</if>
<if test="type!='' and type == 4">
AND a.type = 0
</if>
<choose>
<when test="roleType!=''">
<if test="roleType == 1">
AND a.type = 3 AND a.status = 1
(select a.*, d.mailno, d.send_express_type,d.remark,d.express_status
from kylin_order_refunds a
LEFT JOIN kylin_order_express AS d ON d.order_refunds_id = a.order_refunds_id
<where>
<if test="expressStatus != '' and expressStatus != 70 and expressStatus != 80">AND d.express_status =
${expressStatus}
</if>
<if test="expressStatus == 70">AND (d.express_status > 3 AND d.express_status != 80 AND d.express_status
!= 8000)
</if>
<if test="expressStatus == 80">AND (d.express_status = 80 OR d.express_status = 8000)</if>
<if test="orderTicketsId!=''">
AND a.order_tickets_id = #{orderTicketsId}
</if>
<if test="type!='' and type != 4">
AND a.type = #{type}
</if>
<if test="type!='' and type == 4">
AND a.type = 0
</if>
<choose>
<when test="roleType!=''">
<if test="roleType == 1">
AND a.type = 3 AND a.status = 1
</if>
<if test="roleType == 2">
<if test="statusStr == '9'">
AND a.status = 9
</if>
<if test="roleType == 2">
<if test="statusStr == '9'">
AND a.status = 9
</if>
<if test="statusStr != '1'">
AND a.status = 1 AND a.type != 3
</if>
<if test="statusStr != '1' and statusStr != '9'">
AND (a.status = 9 OR (a.status = 1 AND a.type != 3)
</if>
<if test="statusStr != '1'">
AND a.status = 1 AND a.type != 3
</if>
</when>
<otherwise>
<if test="status!=''">
AND a.status IN
<foreach collection="statusStr" item="status" index="index" open="(" close=")" separator=",">
${status}
</foreach>
<if test="statusStr != '1' and statusStr != '9'">
AND (a.status = 9 OR (a.status = 1 AND a.type != 3)
</if>
</otherwise>
</choose>
</where>
ORDER BY a.mid DESC
) t
</if>
</when>
<otherwise>
<if test="status!=''">
AND a.status IN
<foreach collection="statusStr" item="status" index="index" open="(" close=")" separator=",">
${status}
</foreach>
</if>
</otherwise>
</choose>
</where>
ORDER BY a.mid DESC
) t
JOIN kylin_order_tickets AS b ON t.order_tickets_id = b.order_tickets_id
JOIN kylin_order_ticket_relations AS c ON t.order_tickets_id = c.order_id
<where>
......@@ -143,7 +143,7 @@
AND b.get_ticket_type = #{getTicketType}
</if>
</where>
ORDER BY b.mid DESC
ORDER BY t.mid DESC
</select>
<select id="selectRefundingCount" resultType="java.lang.Integer">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment