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

Commit a301e849 authored by jiangxiulong's avatar jiangxiulong

演出订单

parent 1155f6f1
...@@ -16,8 +16,12 @@ public class PerformanceExpressSearchAdminParam { ...@@ -16,8 +16,12 @@ public class PerformanceExpressSearchAdminParam {
// 订单搜索 // 订单搜索
private String orderCode; private String orderCode;
private String orderTicketsId; private String orderTicketsId;
private String userMobile;
private String orderStatus; private String orderStatus;
private String userMobile;
private String expressStatus; private String expressStatus;
private String expressContacts;
private String expressPhone;
} }
...@@ -27,6 +27,14 @@ ...@@ -27,6 +27,14 @@
<label>购买人姓名:</label> <label>购买人姓名:</label>
<input type="text" name="userName"/> <input type="text" name="userName"/>
</li> </li>
<li>
<label>收货人电话:</label>
<input type="text" name="expressContacts"/>
</li>
<li>
<label>收货人姓名:</label>
<input type="text" name="expressPhone"/>
</li>
<li> <li>
<label>订单状态:</label> <label>订单状态:</label>
<select name="orderStatus" th:with="type=${@dict.getType('zhengzai_order_status')}"> <select name="orderStatus" th:with="type=${@dict.getType('zhengzai_order_status')}">
...@@ -87,24 +95,40 @@ ...@@ -87,24 +95,40 @@
} }
}, },
{ {
field: 'priceActual', field: 'priceExpress',
title: '总价格' title: '快递费'
},
{
field: 'number',
title: '购票量'
}, },
{ {
field: 'userId', field: '',
title: '用户ID' title: '快递方式',
formatter: function (value, row, index) {
if (row.expressType == 1) {
return "寄付";
} else {
return "到付";
}
}
}, },
{ {
field: 'userMobile', field: '',
title: '账户名' title: '购买用户',
formatter: function(value, row, index) {
var userId = row.userId;
var userMobile = row.userMobile;
var userName = row.userName;
return 'ID:'+userId+'<br>'+'姓名:'+userName+'<br>'+'手机号:'+userMobile;
}
}, },
{ {
field: 'userMobile', field: '',
title: '手机号' title: '收获用户',
formatter: function(value, row, index) {
console.log(row)
var expressContacts = row.expressContacts;
var expressAddress = row.expressAddress;
var expressPhone = row.expressPhone;
return '姓名:'+expressContacts+'<br>'+'手机号:'+expressPhone+'<br>'+'地址:'+expressPhone;
}
}, },
{ {
title: '操作', title: '操作',
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
</li> </li>
<li> <li>
<label>演出ID:</label> <label>演出ID:</label>
<input type="text" name="performanceId"/> <input type="text" name="performancesId"/>
</li> </li>
<li> <li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
......
...@@ -41,7 +41,6 @@ public class PerformancesExpressServiceImpl extends ServiceImpl<KylinPerformance ...@@ -41,7 +41,6 @@ public class PerformancesExpressServiceImpl extends ServiceImpl<KylinPerformance
Map<String, Object> map = BeanUtil.convertBeanToMap(performanceExpressSearchAdminParam); Map<String, Object> map = BeanUtil.convertBeanToMap(performanceExpressSearchAdminParam);
voList = performancesMapper.performanceExpressPerformanceList(map); voList = performancesMapper.performanceExpressPerformanceList(map);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace();
return null; return null;
} }
return voList; return voList;
...@@ -53,7 +52,6 @@ public class PerformancesExpressServiceImpl extends ServiceImpl<KylinPerformance ...@@ -53,7 +52,6 @@ public class PerformancesExpressServiceImpl extends ServiceImpl<KylinPerformance
Map<String, Object> map = BeanUtil.convertBeanToMap(performanceExpressSearchAdminParam); Map<String, Object> map = BeanUtil.convertBeanToMap(performanceExpressSearchAdminParam);
voList = kylinOrderTicketsMapper.performanceExpressPerformanceOrderList(map); voList = kylinOrderTicketsMapper.performanceExpressPerformanceOrderList(map);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace();
return null; return null;
} }
return voList; return voList;
......
...@@ -2,29 +2,24 @@ package com.liquidnet.service.kylin.dao; ...@@ -2,29 +2,24 @@ package com.liquidnet.service.kylin.dao;
import lombok.Data; import lombok.Data;
import java.math.BigDecimal;
@Data @Data
public class PerformanceExpressPerformanceOrderListAdminDao { public class PerformanceExpressPerformanceOrderListAdminDao {
String orderTicketsId; String orderTicketsId;
String sponsor;
String orderCode; String orderCode;
String title; Integer status;
String status; BigDecimal priceExpress;
String getTicketType;
String payType;
String paymentType;
String tied;
String price;
String number;
String priceMember;
String priceTotal;
String priceVoucher;
String priceActual;
String priceExpress;
String priceRefund;
String refundNumber;
String userId; String userId;
String userName; String userName;
String userMobile; String userMobile;
String express_contacts;
String express_address;
String express_phone;
Integer expressType;
} }
...@@ -219,7 +219,7 @@ ...@@ -219,7 +219,7 @@
kot.express_address, kot.express_address,
kot.express_phone, kot.express_phone,
kots.status kots.status,
kots.express_type kots.express_type
FROM kylin_order_tickets kot FROM kylin_order_tickets kot
...@@ -232,14 +232,13 @@ ...@@ -232,14 +232,13 @@
AND kots.pay_status = 1 AND kots.pay_status = 1
<if test="orderCode != null and orderCode != ''">AND kot.order_code = #{orderCode}</if> <if test="orderCode != null and orderCode != ''">AND kot.order_code = #{orderCode}</if>
<if test="orderTicketsId != null and orderTicketsId != ''">AND kot.order_tickets_id = #{orderTicketsId}</if> <if test="orderTicketsId != null and orderTicketsId != ''">AND kot.order_tickets_id = #{orderTicketsId}</if>
<if test="orderStatus!=null and orderStatus!=''">AND kots.status = #{orderStatus}</if>
<if test="userMobile != null and userMobile != ''">AND kot.user_mobile = #{userMobile}</if> <if test="userMobile != null and userMobile != ''">AND kot.user_mobile = #{userMobile}</if>
<if test="userName != null and userName != ''">AND kot.user_name like concat('%', #{userName}, '%')</if> <if test="userName != null and userName != ''">AND kot.user_name like concat('%', #{userName}, '%')</if>
<if test="orderCode != null and orderCode != ''">AND kot.order_code = #{orderCode}</if> <if test="expressContacts != null and expressContacts != ''">AND kot.express_contacts = like concat('%', #{expressContacts}, '%')</if>
<if test="expressContacts != null and expressContacts != ''">AND kot.express_contacts = #{expressContacts}</if>
<if test="expressPhone != null and expressPhone != ''">AND kot.express_phone = #{expressPhone}</if> <if test="expressPhone != null and expressPhone != ''">AND kot.express_phone = #{expressPhone}</if>
<if test="orderStatus!=null and orderStatus!=''">AND kots.status = #{orderStatus}</if>
</where> </where>
</select> </select>
</mapper> </mapper>
...@@ -463,8 +463,8 @@ ...@@ -463,8 +463,8 @@
<if test="title!=''"> <if test="title!=''">
AND title LIKE concat('%', #{title}, '%') AND title LIKE concat('%', #{title}, '%')
</if> </if>
<if test="performanceId!=''"> <if test="performancesId!=''">
AND performance_id = #{performanceId} AND performances_id = #{performancesId}
</if> </if>
</where> </where>
ORDER BY created_at DESC ORDER BY created_at DESC
......
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