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

Commit 35487b7b authored by jiangxiulong's avatar jiangxiulong

退款订单优化展示

parent 181887b1
...@@ -22,6 +22,8 @@ public class RefundSearchParam implements Serializable { ...@@ -22,6 +22,8 @@ public class RefundSearchParam implements Serializable {
private String orderRefundCode; private String orderRefundCode;
private String orderCode;
private Integer status; private Integer status;
@ApiModelProperty(value = "页数", example = "0") @ApiModelProperty(value = "页数", example = "0")
......
...@@ -11,12 +11,12 @@ ...@@ -11,12 +11,12 @@
<div class="select-list"> <div class="select-list">
<ul> <ul>
<li> <li>
<label>票务订单ID:</label> <label>订单ID:</label>
<input type="text" name="orderTicketsId"/> <input type="text" name="orderTicketsId"/>
</li> </li>
<li> <li>
<label>退款编号:</label> <label>订单编号:</label>
<input type="text" name="orderRefundCode"/> <input type="text" name="orderCode"/>
</li> </li>
<li> <li>
<label>退款状态:</label> <label>退款状态:</label>
...@@ -197,19 +197,15 @@ ...@@ -197,19 +197,15 @@
}, },
{ {
field: 'orderRefundsId', field: 'orderRefundsId',
title: '退款id' title: '退款ID'
}, },
{ {
field: 'orderTicketsId', field: 'orderTicketsId',
title: '票务订单id' title: '订单ID'
}, },
{ {
field: 'orderRefundCode', field: 'orderCode',
title: '退款编号' title: '订单编号'
},
{
field: 'refundCode',
title: '退款中心退款编号'
}, },
{ {
field: 'price', field: 'price',
......
...@@ -354,7 +354,7 @@ public class KylinOrderRefundsServiceImpl extends ServiceImpl<KylinOrderRefundsM ...@@ -354,7 +354,7 @@ public class KylinOrderRefundsServiceImpl extends ServiceImpl<KylinOrderRefundsM
} }
pageInfoTmp = new PageInfo(voList); pageInfoTmp = new PageInfo(voList);
} catch (Exception e) { } catch (Exception e) {
return new PageInfo(); return new PageInfo(new ArrayList());
} }
return pageInfoTmp; return pageInfoTmp;
} }
......
...@@ -64,6 +64,8 @@ public class OrderRefundDao implements Serializable { ...@@ -64,6 +64,8 @@ public class OrderRefundDao implements Serializable {
private String updatedAt; private String updatedAt;
private String orderCode;
public void setStatusName(Integer status){ public void setStatusName(Integer status){
this.status=status; this.status=status;
switch (status){ switch (status){
......
...@@ -34,17 +34,18 @@ ...@@ -34,17 +34,18 @@
<result column="created_at" property="createdAt"/> <result column="created_at" property="createdAt"/>
</resultMap> </resultMap>
<select id="misRefundList" resultType="com.liquidnet.service.kylin.dao.OrderRefundDao" resultMap="misRefundListResult"> <select id="misRefundList" resultType="com.liquidnet.service.kylin.dao.OrderRefundDao" resultMap="misRefundListResult">
SELECT * SELECT a.*, b.order_code
FROM kylin_order_refunds FROM kylin_order_refunds AS a
JOIN kylin_order_tickets AS b ON a.order_tickets_id = b.order_tickets_id
<where> <where>
<if test="orderTicketsId!=''"> <if test="orderTicketsId!=''">
AND order_tickets_id = #{orderTicketsId} AND a.order_tickets_id = #{orderTicketsId}
</if> </if>
<if test="orderRefundCode!=''"> <if test="orderCode!=''">
AND order_refund_code = #{orderRefundCode} AND b.order_code = #{orderCode}
</if> </if>
<if test="status!=''"> <if test="status!=''">
AND status = #{status} AND a.status = #{status}
</if> </if>
</where> </where>
</select> </select>
......
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