记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董敬伟
liquidnet-bus-v1
Commits
8af7c317
Commit
8af7c317
authored
Jun 07, 2021
by
jiangxiulong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善列表 详情 提交
parent
93f51ec4
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
477 additions
and
302 deletions
+477
-302
KylinOrderRefundBatchesPerformanceVo.java
...ce/kylin/dto/vo/KylinOrderRefundBatchesPerformanceVo.java
+27
-0
KylinOrderRefundBatchesVo.java
...idnet/service/kylin/dto/vo/KylinOrderRefundBatchesVo.java
+5
-0
KylinOrderRefundBatchAdminController.java
.../zhengzai/kylin/KylinOrderRefundBatchAdminController.java
+20
-2
applyView.html
.../resources/templates/zhengzai/kylin/refund/applyView.html
+0
-1
applyView.html
...urces/templates/zhengzai/kylin/refundBatch/applyView.html
+30
-11
details.html
...sources/templates/zhengzai/kylin/refundBatch/details.html
+22
-2
refundBatch.html
...ces/templates/zhengzai/kylin/refundBatch/refundBatch.html
+8
-4
KylinRefundPerformancesAdminServiceImpl.java
...service/impl/KylinRefundPerformancesAdminServiceImpl.java
+31
-3
OrderRefundBatchDao.java
.../com/liquidnet/service/kylin/dao/OrderRefundBatchDao.java
+32
-0
KylinOrderRefundBatches.java
...quidnet/service/kylin/entity/KylinOrderRefundBatches.java
+6
-0
KylinOrderTicketsMapper.java
...quidnet/service/kylin/mapper/KylinOrderTicketsMapper.java
+1
-1
KylinOrderTicketsMapper.xml
...iquidnet.service.kylin.mapper/KylinOrderTicketsMapper.xml
+3
-3
db_kylin_structure.sql
.../liquidnet-service-kylin-impl/docu/db_kylin_structure.sql
+292
-275
No files found.
liquidnet-bus-api/liquidnet-service-kylin-api/src/main/java/com/liquidnet/service/kylin/dto/vo/KylinOrderRefundBatchesPerformanceVo.java
0 → 100644
View file @
8af7c317
package
com
.
liquidnet
.
service
.
kylin
.
dto
.
vo
;
import
com.liquidnet.service.kylin.dto.vo.partner.KylinPerformanceMisVo
;
import
io.swagger.annotations.ApiModel
;
import
com.liquidnet.service.kylin.dao.PerformanceOrderStatisticalDao
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.List
;
/**
* <p>
* refund batches返回给前端的数据字段
* </p>
*
* @author jiangxiulong
* @since 2021-05-31 11:19 上午
*/
@Data
@ApiModel
public
class
KylinOrderRefundBatchesPerformanceVo
implements
Serializable
{
private
KylinPerformanceMisVo
kylinPerformanceMisVo
;
private
List
<
PerformanceOrderStatisticalDao
>
performanceOrderStatisticalDao
;
}
liquidnet-bus-api/liquidnet-service-kylin-api/src/main/java/com/liquidnet/service/kylin/dto/vo/KylinOrderRefundBatchesVo.java
View file @
8af7c317
...
...
@@ -5,6 +5,7 @@ import io.swagger.annotations.ApiModelProperty;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.time.LocalDateTime
;
/**
...
...
@@ -29,6 +30,10 @@ public class KylinOrderRefundBatchesVo implements Serializable {
@ApiModelProperty
(
value
=
"状态"
)
private
Integer
status
;
private
Integer
totalNum
;
private
BigDecimal
totalAlipay
;
private
BigDecimal
totalWepay
;
@ApiModelProperty
(
value
=
"添加时间"
)
private
LocalDateTime
createdAt
;
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/java/com/liquidnet/client/admin/web/controller/zhengzai/kylin/KylinOrderRefundBatchAdminController.java
View file @
8af7c317
...
...
@@ -4,18 +4,24 @@ import com.github.pagehelper.PageInfo;
import
com.liquidnet.client.admin.common.core.controller.BaseController
;
import
com.liquidnet.client.admin.common.core.domain.AjaxResult
;
import
com.liquidnet.client.admin.common.core.page.TableDataInfo
;
import
com.liquidnet.client.admin.zhengzai.kylin.service.impl.KylinPerformancesAdminServiceImpl
;
import
com.liquidnet.client.admin.zhengzai.kylin.service.impl.KylinRefundPerformancesAdminServiceImpl
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.kylin.dao.OrderRefundBatchDao
;
import
com.liquidnet.service.kylin.dao.PerformanceOrderStatisticalDao
;
import
com.liquidnet.service.kylin.dto.param.RefundBatchApplyParam
;
import
com.liquidnet.service.kylin.dto.param.RefundBatchSearchParam
;
import
com.liquidnet.service.kylin.dto.vo.KylinOrderRefundBatchesPerformanceVo
;
import
com.liquidnet.service.kylin.dto.vo.KylinOrderRefundBatchesVo
;
import
com.liquidnet.service.kylin.dto.vo.partner.KylinPerformanceMisVo
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.ui.ModelMap
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
/**
* <p>
* 后台按演出批量退款 服务实现类
...
...
@@ -34,6 +40,9 @@ public class KylinOrderRefundBatchAdminController extends BaseController {
@Autowired
private
KylinRefundPerformancesAdminServiceImpl
kylinRefundPerformancesAdminServiceImpl
;
@Autowired
private
KylinPerformancesAdminServiceImpl
kylinPerformancesService
;
@RequiresPermissions
(
"kylin:refundBatch:view"
)
@GetMapping
()
public
String
operlog
()
...
...
@@ -65,8 +74,16 @@ public class KylinOrderRefundBatchAdminController extends BaseController {
@PostMapping
(
"applyPerformance"
)
@ResponseBody
public
String
applyPerformance
(
RefundBatchSearchParam
refundBatchSearchParam
)
{
return
"error"
;
public
KylinOrderRefundBatchesPerformanceVo
applyPerformance
(
RefundBatchApplyParam
refundBatchApplyParam
)
{
String
performancesId
=
refundBatchApplyParam
.
getTargetId
();
//获取演出详情
KylinPerformanceMisVo
performanceMisVo
=
kylinPerformancesService
.
performanceDetails
(
performancesId
);
List
<
PerformanceOrderStatisticalDao
>
result
=
kylinPerformancesService
.
getPerformanceOrderStatisticalList
(
performancesId
);
KylinOrderRefundBatchesPerformanceVo
kylinOrderRefundBatchesPerformanceVo
=
new
KylinOrderRefundBatchesPerformanceVo
();
kylinOrderRefundBatchesPerformanceVo
.
setKylinPerformanceMisVo
(
performanceMisVo
);
kylinOrderRefundBatchesPerformanceVo
.
setPerformanceOrderStatisticalDao
(
result
);
return
kylinOrderRefundBatchesPerformanceVo
;
}
@RequiresPermissions
(
"kylin:refundBatch:apply"
)
...
...
@@ -81,6 +98,7 @@ public class KylinOrderRefundBatchAdminController extends BaseController {
return
error
(
"申请退款失败"
);
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
error
(
e
.
getMessage
());
}
}
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/kylin/refund/applyView.html
View file @
8af7c317
...
...
@@ -91,7 +91,6 @@
var
data
=
$
(
'#form-post-add'
).
serializeArray
();
data
.
push
({
"ticketEntityIds"
:
rows
.
join
()});
data
.
push
({
"name"
:
"ticketEntityIds"
,
"value"
:
rows
});
console
.
log
(
111
)
$
.
operate
.
save
(
prefix
+
"/apply"
,
data
);
}
}
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/kylin/refundBatch/applyView.html
View file @
8af7c317
...
...
@@ -9,13 +9,13 @@
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label is-required"
>
演出id:
</label>
<div
class=
"col-sm-8"
>
<input
th:value=
"67689474263547904"
class=
"form-control"
type=
"text"
name=
"targetId"
id=
"targetId"
required
>
<input
class=
"form-control"
type=
"text"
name=
"targetId"
id=
"targetId"
required
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
演出名称:
</label>
<div
class=
"col-sm-8"
>
<input
th:value=
"0"
class=
"form-control"
type=
"text"
name=
"title"
>
<input
class=
"form-control"
type=
"text"
name=
"title"
>
</div>
</div>
<div
class=
"form-group"
>
...
...
@@ -27,9 +27,9 @@
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
备注:
</label>
<label
class=
"col-sm-3 control-label
layui-required is-required
"
>
备注:
</label>
<div
class=
"col-sm-8"
>
<textarea
name=
"reason"
class=
"form-control
"
></textarea>
<textarea
name=
"reason"
maxlength=
"500"
class=
"form-control layui-required"
rows=
"3
"
></textarea>
</div>
</div>
</form>
...
...
@@ -48,16 +48,28 @@
type
:
"post"
,
dataType
:
"json"
,
data
:
{
"
performances
Id"
:
function
()
{
"
target
Id"
:
function
()
{
return
$
.
common
.
trim
(
$
(
"#targetId"
).
val
());
}
},
beforeSend
:
function
()
{
$
.
modal
.
loading
(
"正在查询
订单
,请稍后..."
);
$
.
modal
.
loading
(
"正在查询
演出
,请稍后..."
);
},
success
:
function
(
result
)
{
var
options
=
{
data
:
result
.
orderTicketEntitiesVo
,
pagination
:
false
,
columns
:
[{
checkbox
:
true
},
{
field
:
'orderTicketEntitiesId'
,
title
:
'票种数据'
},
]
};
$
.
table
.
init
(
options
);
$
.
modal
.
closeLoading
();
console
.
log
(
result
)
}
};
$
.
ajax
(
config
)
...
...
@@ -68,10 +80,17 @@
});
function
submitHandler
()
{
if
(
$
.
validate
.
form
())
{
$
.
operate
.
save
(
prefix
+
"/apply"
,
$
(
'#form-post-add'
).
serialize
());
}
}
var
reason
=
$
(
'#form-post-add'
).
find
(
"[name='reason']"
).
val
();
var
targetId
=
$
(
'#form-post-add'
).
find
(
"[name='targetId']"
).
val
();
if
(
!
targetId
||
!
reason
)
{
layer
.
msg
(
"请完善数据"
);
return
false
;
}
if
(
$
.
validate
.
form
())
{
var
data
=
$
(
'#form-post-add'
).
serializeArray
();
$
.
operate
.
save
(
prefix
+
"/apply"
,
data
);
}
}
</script>
</body>
</html>
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/kylin/refundBatch/details.html
View file @
8af7c317
...
...
@@ -7,12 +7,32 @@
<div
class=
"wrapper wrapper-content animated fadeInRight ibox-content"
>
<form
class=
"form-horizontal m-t"
id=
"signupForm"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 control-label"
>
批量
退款id:
</label>
<label
class=
"col-sm-2 control-label"
>
演出
退款id:
</label>
<div
class=
"form-control-static"
th:text=
"${KylinOrderRefundsBatchVo.refundBatchId}"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 control-label"
>
批量提交时间:
</label>
<label
class=
"col-sm-2 control-label"
>
演出id:
</label>
<div
class=
"form-control-static"
th:text=
"${KylinOrderRefundsBatchVo.targetId}"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 control-label"
>
应退款总票数:
</label>
<div
class=
"form-control-static"
th:text=
"${KylinOrderRefundsBatchVo.totalNum}"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 control-label"
>
应退款支付宝总金额:
</label>
<div
class=
"form-control-static"
th:text=
"${KylinOrderRefundsBatchVo.totalAlipay}"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 control-label"
>
应退款微信总金额:
</label>
<div
class=
"form-control-static"
th:text=
"${KylinOrderRefundsBatchVo.totalWepay}"
>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 control-label"
>
提交时间:
</label>
<div
class=
"form-control-static"
th:text=
"${KylinOrderRefundsBatchVo.createdAt}"
>
</div>
</div>
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/kylin/refundBatch/refundBatch.html
View file @
8af7c317
...
...
@@ -160,14 +160,18 @@
field
:
'refundBatchId'
,
title
:
'退款id'
},
{
field
:
'status'
,
title
:
'状态'
},
{
field
:
'targetId'
,
title
:
'演出id'
},
{
field
:
'performancesInfo.title'
,
title
:
'演出名称'
},
{
field
:
'statusName'
,
title
:
'状态'
},
{
field
:
'createdAt'
,
title
:
'申请时间'
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/kylin/service/impl/KylinRefundPerformancesAdminServiceImpl.java
View file @
8af7c317
...
...
@@ -10,16 +10,20 @@ import com.liquidnet.commons.lang.util.IDGenerator;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.kylin.constant.KylinTableStatusConst
;
import
com.liquidnet.service.kylin.dao.OrderRefundBatchDao
;
import
com.liquidnet.service.kylin.dao.OrderRefundDao
;
import
com.liquidnet.service.kylin.dto.param.RefundBatchApplyParam
;
import
com.liquidnet.service.kylin.dto.param.RefundBatchSearchParam
;
import
com.liquidnet.service.kylin.dto.vo.KylinOrderRefundBatchesVo
;
import
com.liquidnet.service.kylin.entity.KylinOrderRefundBatches
;
import
com.liquidnet.service.kylin.entity.KylinPerformances
;
import
com.liquidnet.service.kylin.mapper.KylinOrderRefundBatchesMapper
;
import
com.liquidnet.service.kylin.mapper.KylinOrderTicketsMapper
;
import
com.liquidnet.service.kylin.mapper.KylinPerformancesMapper
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.math.BigDecimal
;
import
java.time.LocalDateTime
;
import
java.util.HashMap
;
import
java.util.List
;
...
...
@@ -43,6 +47,9 @@ public class KylinRefundPerformancesAdminServiceImpl {
@Autowired
private
KylinOrderRefundBatchesMapper
kylinOrderRefundBatchesMapper
;
@Autowired
private
KylinPerformancesMapper
kylinPerformancesMapper
;
@Autowired
private
KylinRefundExecuteServiceImpl
kylinRefundExecuteServiceImpl
;
...
...
@@ -52,15 +59,15 @@ public class KylinRefundPerformancesAdminServiceImpl {
public
Boolean
refundBatchApply
(
RefundBatchApplyParam
refundBatchApplyParam
)
throws
Exception
{
String
targetId
=
refundBatchApplyParam
.
getTargetId
();
HashMap
<
String
,
Object
>
priceNum
=
kylinOrderTicketsMapper
.
getPriceNum
(
targetId
);
Integer
totalNum
=
0
;
if
(
null
!=
priceNum
)
{
double
totalPrice
=
Double
.
parseDouble
(
priceNum
.
get
(
"total_price"
).
toString
());
Integer
totalNum
=
Integer
.
parseInt
(
priceNum
.
get
(
"total_num"
).
toString
());
totalNum
=
Integer
.
parseInt
(
priceNum
.
get
(
"total_num"
).
toString
());
if
(
totalPrice
<=
0
||
totalNum
<=
0
)
throw
new
Exception
(
"当前演出暂无需要退款的订单,请确认后重试!"
);
}
else
{
throw
new
Exception
(
"当前演出暂无需要退款的订单,请确认后重试!"
);
}
// 汇总退款
/*String[] paymentTypeAlipayArray = {"APPALIPAY", "WAPALIPAY", "alipay"};
double totalRefundAlipay = kylinOrderTicketsMapper.getTotalPrice(targetId, "price_actual", paymentTypeAlipayArray);
...
...
@@ -69,6 +76,11 @@ public class KylinRefundPerformancesAdminServiceImpl {
double totalPriceExpressAlipay = kylinOrderTicketsMapper.getTotalPrice(targetId, "price_express", paymentTypeAlipayArray);
double totalPriceExpressWepay = kylinOrderTicketsMapper.getTotalPrice(targetId, "price_express", paymentTypeWepayArray);*/
String
[]
paymentTypeAlipayArray
=
{
"APPALIPAY"
,
"WAPALIPAY"
,
"alipay"
};
Double
totalAlipay
=
kylinOrderTicketsMapper
.
getTotalPrice
(
targetId
,
"price_actual"
,
paymentTypeAlipayArray
);
String
[]
paymentTypeWepayArray
=
{
"APPWEPAY"
,
"APPLETWEPAY"
,
"WAPWEPAY"
,
"JSWEPAY"
,
"wepay"
};
Double
totalWepay
=
kylinOrderTicketsMapper
.
getTotalPrice
(
targetId
,
"price_actual"
,
paymentTypeWepayArray
);
KylinOrderRefundBatches
refundBatchesInfo
=
kylinOrderRefundBatchesMapper
.
selectOne
(
new
QueryWrapper
<
KylinOrderRefundBatches
>().
eq
(
"target_id"
,
targetId
).
orderByDesc
(
"refund_batch_id"
)
);
...
...
@@ -82,8 +94,15 @@ public class KylinRefundPerformancesAdminServiceImpl {
KylinOrderRefundBatches
createData
=
new
KylinOrderRefundBatches
();
createData
.
setRefundBatchId
(
refundBatchId
);
createData
.
setTargetId
(
targetId
);
createData
.
setCreatedAt
(
LocalDateTime
.
now
());
createData
.
setStatus
(
KylinTableStatusConst
.
STATUS_APPLY
);
createData
.
setTotalNum
(
totalNum
);
if
(
null
!=
totalAlipay
)
{
createData
.
setTotalAlipay
(
BigDecimal
.
valueOf
(
totalAlipay
));
}
if
(
null
!=
totalWepay
)
{
createData
.
setTotalWepay
(
BigDecimal
.
valueOf
(
totalWepay
));
}
createData
.
setCreatedAt
(
LocalDateTime
.
now
());
int
resNum
=
kylinOrderRefundBatchesMapper
.
insert
(
createData
);
if
(
resNum
>
0
)
{
...
...
@@ -168,6 +187,7 @@ public class KylinRefundPerformancesAdminServiceImpl {
new
UpdateWrapper
<
KylinOrderRefundBatches
>()
.
eq
(
"refund_batch_id"
,
orderRefundId
)
);
KylinOrderRefundBatchesVo
kylinOrderRefundBatchesVo
=
new
KylinOrderRefundBatchesVo
();
BeanUtils
.
copyProperties
(
data
,
kylinOrderRefundBatchesVo
);
...
...
@@ -179,6 +199,14 @@ public class KylinRefundPerformancesAdminServiceImpl {
try
{
PageHelper
.
startPage
(
refundBatchSearchParam
.
getPageNum
(),
refundBatchSearchParam
.
getPageSize
());
List
<
OrderRefundBatchDao
>
voList
=
kylinOrderRefundBatchesMapper
.
misRefundBatchList
(
BeanUtil
.
convertBeanToMap
(
refundBatchSearchParam
));
for
(
OrderRefundBatchDao
item
:
voList
)
{
KylinPerformances
info
=
kylinPerformancesMapper
.
selectOne
(
new
UpdateWrapper
<
KylinPerformances
>()
.
eq
(
"performances_id"
,
item
.
getTargetId
())
);
item
.
setPerformancesInfo
(
info
);
item
.
setStatusName
(
item
.
getStatus
());
}
pageInfoTmp
=
new
PageInfo
(
voList
);
}
catch
(
Exception
e
)
{
return
null
;
...
...
liquidnet-bus-do/liquidnet-service-kylin-do/src/main/java/com/liquidnet/service/kylin/dao/OrderRefundBatchDao.java
View file @
8af7c317
package
com
.
liquidnet
.
service
.
kylin
.
dao
;
import
com.liquidnet.service.kylin.entity.KylinPerformances
;
import
lombok.Data
;
import
java.io.Serializable
;
...
...
@@ -13,10 +14,41 @@ public class OrderRefundBatchDao implements Serializable {
private
String
targetId
;
private
Integer
status
;
private
String
statusName
;
private
LocalDateTime
executorAt
;
private
LocalDateTime
createdAt
;
private
LocalDateTime
updatedAt
;
private
KylinPerformances
performancesInfo
;
public
void
setStatusName
(
Integer
status
){
this
.
status
=
status
;
switch
(
status
){
case
1
:
this
.
statusName
=
"申请退款"
;
break
;
case
2
:
this
.
statusName
=
"取消退款"
;
break
;
case
3
:
this
.
statusName
=
"运营驳回审核"
;
break
;
case
4
:
this
.
statusName
=
"运营通过审核"
;
break
;
case
5
:
this
.
statusName
=
"财务驳回审核"
;
break
;
case
6
:
this
.
statusName
=
"财务通过审核"
;
break
;
default
:
this
.
statusName
=
"其他"
;
break
;
}
}
}
liquidnet-bus-do/liquidnet-service-kylin-do/src/main/java/com/liquidnet/service/kylin/entity/KylinOrderRefundBatches.java
View file @
8af7c317
...
...
@@ -2,6 +2,8 @@ package com.liquidnet.service.kylin.entity;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
java.math.BigDecimal
;
import
java.time.LocalDateTime
;
import
java.io.Serializable
;
import
lombok.Data
;
...
...
@@ -39,6 +41,10 @@ public class KylinOrderRefundBatches implements Serializable {
*/
private
Integer
status
;
private
Integer
totalNum
;
private
BigDecimal
totalAlipay
;
private
BigDecimal
totalWepay
;
private
LocalDateTime
createdAt
;
private
LocalDateTime
updatedAt
;
...
...
liquidnet-bus-do/liquidnet-service-kylin-do/src/main/java/com/liquidnet/service/kylin/mapper/KylinOrderTicketsMapper.java
View file @
8af7c317
...
...
@@ -22,7 +22,7 @@ public interface KylinOrderTicketsMapper extends BaseMapper<KylinOrderTickets> {
HashMap
<
String
,
Object
>
getPriceNum
(
String
targetId
);
// 查询微信、支付宝对应的订单金额、快递费金额
Double
getTotalPrice
(
String
targetId
,
String
selectFields
,
String
[]
paymentType
);
Double
getTotalPrice
(
@Param
(
"targetId"
)
String
targetId
,
@Param
(
"selectFields"
)
String
selectFields
,
@Param
(
"paymentType"
)
String
[]
paymentType
);
// 获取订单和购票信息
List
<
KylinOrderTickets
>
getOrderList
(
@Param
(
"targetId"
)
String
targetId
,
@Param
(
"mid"
)
int
mid
,
@Param
(
"limitNum"
)
int
limitNum
);
...
...
liquidnet-bus-do/liquidnet-service-kylin-do/src/main/resources/com.liquidnet.service.kylin.mapper/KylinOrderTicketsMapper.xml
View file @
8af7c317
...
...
@@ -38,19 +38,19 @@
</where>
LIMIT 1
</select>
<select
id=
"getTotalPrice"
resultType=
"java.lang.Double"
>
<select
id=
"getTotalPrice"
parameterType=
"java.lang.String"
resultType=
"java.lang.Double"
>
SELECT SUM(${selectFields})
FROM kylin_order_tickets AS o
JOIN kylin_order_ticket_relations AS r ON r.order_id = o.order_tickets_id
JOIN kylin_order_ticket_status AS s ON s.order_id = o.order_tickets_id
<where>
r.performance_id=
#
{targetId}
r.performance_id=
$
{targetId}
AND s.status=1
AND s.pay_status=1
AND o.coupon_type='no'
AND o.payment_type IN
<foreach
collection=
"paymentType"
item=
"payment_type"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{payment_type}
'${payment_type}'
</foreach>
</where>
</select>
...
...
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/docu/db_kylin_structure.sql
View file @
8af7c317
create
database
if
not
exists
ln_scene
character
set
utf8mb4
collate
utf8mb4_unicode_ci
;
database
if
not
exists
ln_scene
character
set
utf8mb4
collate
utf8mb4_unicode_ci
;
-- >>------------------------------------------------------------------------------------
use
ln_scene
;
ln_scene
;
SET
NAMES
utf8mb4
;
-- 轮播图
...
...
@@ -16,16 +16,16 @@ CREATE TABLE `kylin_banners`
`target_type`
smallint
NOT
NULL
DEFAULT
0
COMMENT
'跳转类型(由接口提供)'
,
`target_obj`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'跳转目标 id/url等'
,
`is_online`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'是否上线展示 0下线 1上线'
,
`online_start_time`
timestamp
NULL
DEFAULT
NULL
COMMENT
'上线开始时间'
,
`online_end_time`
timestamp
NULL
DEFAULT
NULL
COMMENT
'上线结束时间'
,
`online_start_time`
timestamp
NULL
DEFAULT
NULL
COMMENT
'上线开始时间'
,
`online_end_time`
timestamp
NULL
DEFAULT
NULL
COMMENT
'上线结束时间'
,
`promotion_type`
tinyint
NOT
NULL
DEFAULT
1
COMMENT
'推广类型 1全国 2省份'
,
`banners_sort`
int
NOT
NULL
DEFAULT
0
COMMENT
'排序 越大越靠前'
,
`remarks`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'备注'
,
`is_deleted`
tinyint
NOT
NULL
DEFAULT
1
COMMENT
'是否删除 0已删除 1正常'
,
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_banners_banners_id_index`
(
`banners_id`
),
KEY
`kylin_banners_banners_name_index`
(
`banners_name`
),
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_banners_banners_id_index`
(
`banners_id`
),
KEY
`kylin_banners_banners_name_index`
(
`banners_name`
),
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'轮播图'
;
...
...
@@ -38,10 +38,10 @@ CREATE TABLE `kylin_banners_relations`
`banners_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'banners_id'
,
`field_id`
int
NOT
NULL
DEFAULT
0
COMMENT
'展示位置id/推广省份code'
,
`field_id_type`
tinyint
NOT
NULL
DEFAULT
1
COMMENT
'关联字段类型 1展示位置(由接口提供) 2推广省份(由接口提供)'
,
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_banners_relations_banners_relations_id_index`
(
`banners_relations_id`
),
KEY
`kylin_banners_relations_banners_id_index`
(
`banners_id`
),
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_banners_relations_banners_relations_id_index`
(
`banners_relations_id`
),
KEY
`kylin_banners_relations_banners_id_index`
(
`banners_id`
),
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'轮播图 展示位置/推广省份 关联表'
;
...
...
@@ -50,7 +50,7 @@ CREATE TABLE `kylin_banners_relations`
drop
TABLE
if
exists
`kylin_fields`
;
CREATE
TABLE
`kylin_fields`
(
`mid`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`mid`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`fields_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'fields_id'
,
`name`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'场地名称'
,
`name_eng`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'英文名'
,
...
...
@@ -61,17 +61,17 @@ CREATE TABLE `kylin_fields`
`latitude`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'维度'
,
`phone`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'联系电话'
,
`description`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'描述'
,
`province_id`
int
(
255
)
NOT
NULL
DEFAULT
0
COMMENT
'省id'
,
`province_id`
int
(
255
)
NOT
NULL
DEFAULT
0
COMMENT
'省id'
,
`province_name`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'省名称'
,
`city_id`
int
(
11
)
NOT
NULL
DEFAULT
0
COMMENT
'城市id'
,
`city_id`
int
(
11
)
NOT
NULL
DEFAULT
0
COMMENT
'城市id'
,
`city_name`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'城市名称'
,
`district_id`
int
(
11
)
NOT
NULL
DEFAULT
0
COMMENT
'县id'
,
`district_id`
int
(
11
)
NOT
NULL
DEFAULT
0
COMMENT
'县id'
,
`district_name`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'县名称'
,
`refuse_message`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'拒绝理由'
,
`comment`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'comment'
,
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_fields_uid_index`
(
`fields_id`
),
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_fields_uid_index`
(
`fields_id`
),
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'场地数据'
;
...
...
@@ -79,16 +79,16 @@ CREATE TABLE `kylin_fields`
drop
TABLE
if
exists
`kylin_field_status`
;
CREATE
TABLE
`kylin_field_status`
(
`mid`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`mid`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`field_status_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'field_status_id'
,
`field_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'场地关联id'
,
`valid_status`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'认证状态 0未认证 1已认证 2被拒绝'
,
`is_display`
tinyint
NOT
NULL
DEFAULT
1
COMMENT
'是否显示 0不显示 1显示'
,
`is_business`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'是否营业 0不营业 1营业中'
,
`change_status`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'审核状态 0待审核 1已审核 2被拒绝'
,
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_field_status_uid_index`
(
`field_status_id`
),
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_field_status_uid_index`
(
`field_status_id`
),
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'场地状态'
;
...
...
@@ -96,12 +96,12 @@ CREATE TABLE `kylin_field_status`
drop
TABLE
if
exists
`kylin_field_relations`
;
CREATE
TABLE
`kylin_field_relations`
(
`mid`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`mid`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`field_relations_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'field_relations_id'
,
`field_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'场地关联id'
,
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_field_relations_uid_index`
(
`field_relations_id`
),
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_field_relations_uid_index`
(
`field_relations_id`
),
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'场地关系'
;
...
...
@@ -111,16 +111,16 @@ CREATE TABLE `kylin_field_relations`
drop
TABLE
if
exists
`kylin_performances`
;
CREATE
TABLE
`kylin_performances`
(
`mid`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`mid`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`performances_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'performances_id'
,
`title`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'演出名称'
,
`type`
tinyint
NOT
NULL
DEFAULT
3
COMMENT
'1音乐节 2演唱会 3小型演出 4展览 6舞台剧 101音乐节 102小型演出(livehouse演出) 103巡演'
,
`img_poster`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'演出海报'
,
`province_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'省id'
,
`province_name`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'省名称'
,
`city_id`
int
(
11
)
NOT
NULL
DEFAULT
0
COMMENT
'城市id'
,
`city_id`
int
(
11
)
NOT
NULL
DEFAULT
0
COMMENT
'城市id'
,
`city_name`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'城市名称'
,
`district_id`
int
(
11
)
NOT
NULL
DEFAULT
0
COMMENT
'县id'
,
`district_id`
int
(
11
)
NOT
NULL
DEFAULT
0
COMMENT
'县id'
,
`district_name`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'县名称'
,
`approval_url`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'批文地址'
,
`notice`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'演出公告'
,
...
...
@@ -136,11 +136,11 @@ CREATE TABLE `kylin_performances`
`time_end`
datetime
NOT
NULL
DEFAULT
'2000-01-01 12:00:00'
COMMENT
'演出结束时间'
,
`audit_time`
datetime
NOT
NULL
DEFAULT
'2000-01-01 12:00:00'
COMMENT
'提审时间'
,
`reject_txt`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'拒绝理由'
,
`sort`
int
(
11
)
NOT
NULL
DEFAULT
0
COMMENT
'权重 高则在上'
,
`sort`
int
(
11
)
NOT
NULL
DEFAULT
0
COMMENT
'权重 高则在上'
,
`comment`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'comment'
,
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_performances_uid_index`
(
`performances_id`
),
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_performances_uid_index`
(
`performances_id`
),
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'演出'
;
...
...
@@ -148,7 +148,7 @@ CREATE TABLE `kylin_performances`
drop
TABLE
if
exists
`kylin_performance_status`
;
CREATE
TABLE
`kylin_performance_status`
(
`mid`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`mid`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`performance_status_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'performance_status_id'
,
`performance_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'演出关联id'
,
`is_show`
tinyint
NOT
NULL
DEFAULT
1
COMMENT
'是否显示 0全部用户可见 1白名单可见 2任何不显示'
,
...
...
@@ -159,12 +159,12 @@ CREATE TABLE `kylin_performance_status`
`sync_damai`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'是否同步大麦 0不关联 1关联'
,
`audit_status`
tinyint
NOT
NULL
DEFAULT
-
1
COMMENT
'-1未提交审核,0提交审核,1审核通过,2审核拒绝'
,
`is_true_name`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'是否实名 0不需要 1需要'
,
`limit_count`
int
(
11
)
NOT
NULL
DEFAULT
0
COMMENT
'限购张数 0无限 (开启实名 则实名限购 未开始为账号限购)'
,
`limit_count_member`
int
(
11
)
NOT
NULL
DEFAULT
0
COMMENT
'会员限购张数 0无限 (开启实名 则实名限购 未开始为账号限购)'
,
`limit_count`
int
(
11
)
NOT
NULL
DEFAULT
0
COMMENT
'限购张数 0无限 (开启实名 则实名限购 未开始为账号限购)'
,
`limit_count_member`
int
(
11
)
NOT
NULL
DEFAULT
0
COMMENT
'会员限购张数 0无限 (开启实名 则实名限购 未开始为账号限购)'
,
`is_recommend`
tinyint
(
255
)
NOT
NULL
DEFAULT
0
COMMENT
'是否推荐 0否 1是'
,
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_performance_status_uid_index`
(
`performance_status_id`
),
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_performance_status_uid_index`
(
`performance_status_id`
),
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'演出状态'
;
...
...
@@ -172,7 +172,7 @@ CREATE TABLE `kylin_performance_status`
drop
TABLE
if
exists
`kylin_performance_relations`
;
CREATE
TABLE
`kylin_performance_relations`
(
`mid`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`mid`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`performance_relations_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'performance_relations_id'
,
`performance_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'演出关联id'
,
`copy_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'复制来源演出id'
,
...
...
@@ -181,9 +181,9 @@ CREATE TABLE `kylin_performance_relations`
`road_show_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'巡演id'
,
`project_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'专题id'
,
`video_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'视频id'
,
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`performance_relations_uid_index`
(
`performance_relations_id`
),
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`performance_relations_uid_index`
(
`performance_relations_id`
),
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'演出状态'
;
...
...
@@ -191,7 +191,7 @@ CREATE TABLE `kylin_performance_relations`
drop
TABLE
if
exists
`kylin_performance_distributions`
;
CREATE
TABLE
`kylin_performance_distributions`
(
`mid`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`mid`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`performance_distributions_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'performance_distributions_id'
,
`ticket_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'票关联id'
,
`ticket_scale`
varchar
(
5
)
NOT
NULL
DEFAULT
'0'
COMMENT
'演出票提单位%'
,
...
...
@@ -201,9 +201,9 @@ CREATE TABLE `kylin_performance_distributions`
`second_agent_scale_money`
varchar
(
5
)
NOT
NULL
DEFAULT
'0'
COMMENT
'1级现金奖励占比'
,
`second_agent_scale_barter`
varchar
(
5
)
NOT
NULL
DEFAULT
'0'
COMMENT
'2级积分奖励占比'
,
`comment`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'comment'
,
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_performance_distributions_uid_index`
(
`performance_distributions_id`
),
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_performance_distributions_uid_index`
(
`performance_distributions_id`
),
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'演出状态'
;
...
...
@@ -213,7 +213,7 @@ CREATE TABLE `kylin_performance_distributions`
drop
TABLE
if
exists
`kylin_ticket_times`
;
CREATE
TABLE
`kylin_ticket_times`
(
`mid`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`mid`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`ticket_times_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'ticket_times_id'
,
`title`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'标题'
,
`type`
tinyint
NOT
NULL
DEFAULT
1
COMMENT
'状态 1单日票 2通票'
,
...
...
@@ -221,9 +221,9 @@ CREATE TABLE `kylin_ticket_times`
`use_start`
datetime
NOT
NULL
DEFAULT
'2000-01-01 12:00:00'
COMMENT
'售票开始时间'
,
`use_end`
datetime
NOT
NULL
DEFAULT
'2000-01-01 12:00:00'
COMMENT
'售票结束时间'
,
`comment`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'comment'
,
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_ticket_times_uid_index`
(
`ticket_times_id`
),
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_ticket_times_uid_index`
(
`ticket_times_id`
),
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'场次'
;
...
...
@@ -232,13 +232,13 @@ CREATE TABLE `kylin_ticket_times`
drop
TABLE
if
exists
`kylin_ticket_time_relation`
;
CREATE
TABLE
`kylin_ticket_time_relation`
(
`mid`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`mid`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`ticket_time_relation_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'ticket_time_relation_id'
,
`times_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'场次id'
,
`performance_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'关联演出id'
,
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_ticket_time_relation_uid_index`
(
`ticket_time_relation_id`
),
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_ticket_time_relation_uid_index`
(
`ticket_time_relation_id`
),
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'场次关联'
;
...
...
@@ -247,7 +247,7 @@ CREATE TABLE `kylin_ticket_time_relation`
drop
TABLE
if
exists
`kylin_tickets`
;
CREATE
TABLE
`kylin_tickets`
(
`mid`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`mid`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`tickets_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'tickets_id'
,
`title`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'票名称'
,
`type`
tinyint
NOT
NULL
DEFAULT
1
COMMENT
'票类型 1单日票 2通票'
,
...
...
@@ -258,18 +258,18 @@ CREATE TABLE `kylin_tickets`
`describes`
varchar
(
500
)
NOT
NULL
DEFAULT
''
COMMENT
'票种描述'
,
`describe_express`
varchar
(
500
)
NOT
NULL
DEFAULT
''
COMMENT
'快递票类型说明'
,
`describe_electronic`
varchar
(
500
)
NOT
NULL
DEFAULT
''
COMMENT
'电子票票类型说明'
,
`advance_minute_member`
int
(
11
)
NOT
NULL
DEFAULT
5
COMMENT
'会员提前购买分钟数'
,
`advance_minute_member`
int
(
11
)
NOT
NULL
DEFAULT
5
COMMENT
'会员提前购买分钟数'
,
`time_start`
datetime
NOT
NULL
DEFAULT
'2030-01-01 12:00:00'
COMMENT
'售卖开始时间'
,
`time_end`
datetime
NOT
NULL
DEFAULT
'2030-01-01 12:00:00'
COMMENT
'售卖结束时间'
,
`time_end_express`
datetime
NOT
NULL
DEFAULT
'2030-01-01 12:00:00'
COMMENT
'快递票结束时间'
,
`use_start`
datetime
NOT
NULL
DEFAULT
'2030-01-01 12:00:00'
COMMENT
'适用开始时间'
,
`use_end`
datetime
NOT
NULL
DEFAULT
'2030-01-01 12:00:00'
COMMENT
'适用结束时间'
,
`pay_countdown_minute`
int
(
11
)
NOT
NULL
DEFAULT
5
COMMENT
'支付倒计时时间'
,
`sale_remind_minute`
int
(
11
)
NOT
NULL
DEFAULT
60
COMMENT
'开票提醒倒计时(分钟数)'
,
`pay_countdown_minute`
int
(
11
)
NOT
NULL
DEFAULT
5
COMMENT
'支付倒计时时间'
,
`sale_remind_minute`
int
(
11
)
NOT
NULL
DEFAULT
60
COMMENT
'开票提醒倒计时(分钟数)'
,
`comment`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'comment'
,
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_tickets_uid_index`
(
`tickets_id`
),
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_tickets_uid_index`
(
`tickets_id`
),
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'票'
;
...
...
@@ -277,34 +277,34 @@ CREATE TABLE `kylin_tickets`
drop
TABLE
if
exists
`kylin_ticket_status`
;
CREATE
TABLE
`kylin_ticket_status`
(
`mid`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`mid`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`ticket_status_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'ticket_status_id'
,
`ticket_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'票关联id'
,
`is_student`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'是否学生票 0否 1是'
,
`is_electronic`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'是否电子票 0否 1是'
,
`is_express`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'是否快递票 0否 1是'
,
`status`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'票状态 -2新建 -1删除;0未提交;1审核中;2审核中(自动在售);3审核通过;4审核未通过;6在售;7停售;8售罄;9未开始;10已结束'
,
`counts`
int
(
11
)
NOT
NULL
DEFAULT
1
COMMENT
'可验证次数'
,
`counts`
int
(
11
)
NOT
NULL
DEFAULT
1
COMMENT
'可验证次数'
,
`status_exchange`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'兑换状态 6可兑换 7不可兑换'
,
`is_show_code`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'是否显示二维码 0否 1是'
,
`qr_code_show_time`
datetime
NOT
NULL
DEFAULT
'2030-01-01 12:00:00'
COMMENT
'二维码显示时间'
,
`is_lack_register`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'是否开启缺票登记 0否 1是'
,
`total_general`
int
(
11
)
NOT
NULL
DEFAULT
0
COMMENT
'总库存'
,
`total_exchange`
int
(
11
)
NOT
NULL
DEFAULT
0
COMMENT
'总兑换库存'
,
`surplus_general`
int
(
11
)
NOT
NULL
DEFAULT
0
COMMENT
'剩余库存'
,
`surplus_exchange`
int
(
11
)
NOT
NULL
DEFAULT
0
COMMENT
'剩余兑换库存'
,
`total_general`
int
(
11
)
NOT
NULL
DEFAULT
0
COMMENT
'总库存'
,
`total_exchange`
int
(
11
)
NOT
NULL
DEFAULT
0
COMMENT
'总兑换库存'
,
`surplus_general`
int
(
11
)
NOT
NULL
DEFAULT
0
COMMENT
'剩余库存'
,
`surplus_exchange`
int
(
11
)
NOT
NULL
DEFAULT
0
COMMENT
'剩余兑换库存'
,
`express_type`
tinyint
NOT
NULL
DEFAULT
1
COMMENT
'1寄付 2到付'
,
`is_true_name`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'是否实名 0不需要 1需要'
,
`limit_count`
int
(
11
)
NOT
NULL
DEFAULT
0
COMMENT
'限购张数 0无限 (开启实名 则实名限购 未开始为账号限购)'
,
`member_limit_count`
int
(
11
)
NOT
NULL
DEFAULT
0
COMMENT
'会员限购张数 0无限 (开启实名 则实名限购 未开始为账号限购)'
,
`limit_count`
int
(
11
)
NOT
NULL
DEFAULT
0
COMMENT
'限购张数 0无限 (开启实名 则实名限购 未开始为账号限购)'
,
`member_limit_count`
int
(
11
)
NOT
NULL
DEFAULT
0
COMMENT
'会员限购张数 0无限 (开启实名 则实名限购 未开始为账号限购)'
,
`is_transfer`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'是否开启转赠 0关闭 1开启'
,
`is_exclusive`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'是否会员专属 0不是 1是'
,
`is_member`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'是否关联会员 0不是 1是'
,
`is_agent`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'是否关联代理 0不是 1是'
,
`sync_damai`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'是否同步大麦 0不关联 1关联'
,
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_ticket_status_uid_index`
(
`ticket_status_id`
),
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_ticket_status_uid_index`
(
`ticket_status_id`
),
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'票'
;
...
...
@@ -312,13 +312,13 @@ CREATE TABLE `kylin_ticket_status`
drop
TABLE
if
exists
`kylin_ticket_relations`
;
CREATE
TABLE
`kylin_ticket_relations`
(
`mid`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`mid`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`ticket_relations_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'ticket_relations_id'
,
`ticket_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'票关联id'
,
`times_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'关联场次id'
,
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`ticket_relations_uid_index`
(
`ticket_relations_id`
),
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`ticket_relations_uid_index`
(
`ticket_relations_id`
),
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'票'
;
...
...
@@ -327,15 +327,15 @@ CREATE TABLE `kylin_ticket_relations`
drop
TABLE
if
exists
`kylin_road_shows`
;
CREATE
TABLE
`kylin_road_shows`
(
`mid`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`mid`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`road_shows_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'road_shows_id'
,
`title`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'封面图'
,
`img_poster`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'巡演封面图'
,
`status`
tinyint
NOT
NULL
DEFAULT
1
COMMENT
'状态 0停用 1启用'
,
`comment`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'comment'
,
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_road_shows_uid_index`
(
`road_shows_id`
),
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_road_shows_uid_index`
(
`road_shows_id`
),
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'巡演'
;
...
...
@@ -345,7 +345,7 @@ CREATE TABLE `kylin_road_shows`
drop
TABLE
if
exists
`kylin_lack_registers`
;
CREATE
TABLE
`kylin_lack_registers`
(
`mid`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`mid`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`lack_registers_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'lack_registers_id'
,
`ticket_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'票种id'
,
`user_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'用户id'
,
...
...
@@ -353,9 +353,9 @@ CREATE TABLE `kylin_lack_registers`
`user_mobile`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'用户手机号'
,
`send_status`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'是否发送短信'
,
`ip_address`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'IP 地址'
,
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_lack_registers_uid_index`
(
`lack_registers_id`
),
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_lack_registers_uid_index`
(
`lack_registers_id`
),
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'缺票登记'
;
...
...
@@ -364,18 +364,18 @@ CREATE TABLE `kylin_lack_registers`
drop
TABLE
if
exists
`kylin_projects`
;
CREATE
TABLE
`kylin_projects`
(
`mid`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
`mid`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
`projects_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'projects_id'
,
`title`
varchar
(
255
)
COLLATE
utf8_unicode_ci
NOT
NULL
DEFAULT
''
COMMENT
'专题名称'
,
`time_limit`
int
(
11
)
DEFAULT
NULL
COMMENT
'限购时间 单位分钟'
,
`status`
tinyint
(
4
)
NOT
NULL
DEFAULT
'0'
COMMENT
'0下线 1上线'
,
`open_performance`
tinyint
(
4
)
NOT
NULL
DEFAULT
'0'
COMMENT
'是否开启 推荐演出'
,
`open_goods`
tinyint
(
4
)
NOT
NULL
DEFAULT
'0'
COMMENT
'是否开启 推荐商品'
,
`open_tied`
tinyint
(
4
)
NOT
NULL
DEFAULT
'0'
COMMENT
'是否开启 推荐搭售'
,
`time_limit`
int
(
11
)
DEFAULT
NULL
COMMENT
'限购时间 单位分钟'
,
`status`
tinyint
(
4
)
NOT
NULL
DEFAULT
'0'
COMMENT
'0下线 1上线'
,
`open_performance`
tinyint
(
4
)
NOT
NULL
DEFAULT
'0'
COMMENT
'是否开启 推荐演出'
,
`open_goods`
tinyint
(
4
)
NOT
NULL
DEFAULT
'0'
COMMENT
'是否开启 推荐商品'
,
`open_tied`
tinyint
(
4
)
NOT
NULL
DEFAULT
'0'
COMMENT
'是否开启 推荐搭售'
,
`comment`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'comment'
,
`created_at`
datetime
NULL
DEFAULT
NULL
,
`updated_at`
datetime
NULL
DEFAULT
NULL
,
KEY
`kylin_projects_uid_index`
(
`projects_id`
),
`created_at`
datetime
NULL
DEFAULT
NULL
,
`updated_at`
datetime
NULL
DEFAULT
NULL
,
KEY
`kylin_projects_uid_index`
(
`projects_id`
),
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'专题'
;
...
...
@@ -383,24 +383,24 @@ CREATE TABLE `kylin_projects`
drop
TABLE
if
exists
`kylin_project_relations`
;
CREATE
TABLE
`kylin_project_relations`
(
`mid`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
`mid`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
`project_relations_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'project_relations_id'
,
`project_id`
int
(
11
)
NOT
NULL
DEFAULT
'0'
COMMENT
'专题id'
,
`type`
int
(
11
)
NOT
NULL
DEFAULT
'0'
COMMENT
'关联类型 1演出 2商品 3限时商品'
,
`project_id`
int
(
11
)
NOT
NULL
DEFAULT
'0'
COMMENT
'专题id'
,
`type`
int
(
11
)
NOT
NULL
DEFAULT
'0'
COMMENT
'关联类型 1演出 2商品 3限时商品'
,
`target_name`
varchar
(
255
)
COLLATE
utf8_unicode_ci
NOT
NULL
DEFAULT
''
COMMENT
'关联名称 关联'
,
`target_id`
int
(
11
)
NOT
NULL
DEFAULT
'0'
COMMENT
'关联id'
,
`item_id`
int
(
11
)
NOT
NULL
DEFAULT
'0'
COMMENT
'搭售款式id'
,
`target_id`
int
(
11
)
NOT
NULL
DEFAULT
'0'
COMMENT
'关联id'
,
`item_id`
int
(
11
)
NOT
NULL
DEFAULT
'0'
COMMENT
'搭售款式id'
,
`item_name`
varchar
(
255
)
COLLATE
utf8_unicode_ci
NOT
NULL
DEFAULT
''
COMMENT
'搭售款式名称'
,
`tied_price`
decimal
(
8
,
2
)
NOT
NULL
DEFAULT
'0.00'
COMMENT
'搭售价格'
,
`is_limit`
tinyint
(
4
)
NOT
NULL
DEFAULT
'0'
COMMENT
'是否限购'
,
`limit_num`
int
(
11
)
NOT
NULL
DEFAULT
'0'
COMMENT
'限购数量 0不限购'
,
`created_at`
datetime
NULL
DEFAULT
NULL
,
`updated_at`
datetime
NULL
DEFAULT
NULL
,
`is_limit`
tinyint
(
4
)
NOT
NULL
DEFAULT
'0'
COMMENT
'是否限购'
,
`limit_num`
int
(
11
)
NOT
NULL
DEFAULT
'0'
COMMENT
'限购数量 0不限购'
,
`created_at`
datetime
NULL
DEFAULT
NULL
,
`updated_at`
datetime
NULL
DEFAULT
NULL
,
PRIMARY
KEY
(
`mid`
),
KEY
`kylin_project_relations_uid_index`
(
`project_relations_id`
),
KEY
`kylin_project_relations_project_id_index`
(
`project_id`
),
KEY
`kylin_project_relations_target_id_index`
(
`target_id`
),
KEY
`kylin_project_relations_item_id_index`
(
`item_id`
)
KEY
`kylin_project_relations_uid_index`
(
`project_relations_id`
),
KEY
`kylin_project_relations_project_id_index`
(
`project_id`
),
KEY
`kylin_project_relations_target_id_index`
(
`target_id`
),
KEY
`kylin_project_relations_item_id_index`
(
`item_id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'专题关系'
;
...
...
@@ -410,40 +410,40 @@ drop TABLE if exists `kylin_order_tickets`;
CREATE
TABLE
`kylin_order_tickets`
(
`mid`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
`order_tickets_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'order_tickets_id'
,
`user_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'用户id'
,
`user_name`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'用户昵称'
,
`user_mobile`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'用户手机号'
,
`performance_title`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'演出名称'
,
`order_code`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'订单号'
,
`pay_code`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'支付单号'
,
`qr_code`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'二维码地址'
,
`order_type`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'下单方式'
,
`order_source`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'下单来源'
,
`order_version`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'下单版本'
,
`number`
int
(
32
)
NOT
NULL
DEFAULT
0
COMMENT
'数量'
,
`price`
decimal
(
8
,
2
)
NOT
NULL
DEFAULT
'0.00'
COMMENT
'单价'
,
`price_member`
decimal
(
8
,
2
)
NOT
NULL
DEFAULT
'0.00'
COMMENT
'会员单价'
,
`price_total`
decimal
(
8
,
2
)
NOT
NULL
DEFAULT
'0.00'
COMMENT
'应付价格'
,
`price_voucher`
decimal
(
8
,
2
)
NOT
NULL
DEFAULT
'0.00'
COMMENT
'优惠价格'
,
`price_actual`
decimal
(
8
,
2
)
NOT
NULL
DEFAULT
'0.00'
COMMENT
'实付价格'
,
`price_express`
decimal
(
8
,
2
)
NOT
NULL
DEFAULT
'0.00'
COMMENT
'快递价格'
,
`price_refund`
decimal
(
8
,
2
)
NOT
NULL
DEFAULT
'0.00'
COMMENT
'退款价格'
,
`refund_number`
int
(
32
)
NOT
NULL
DEFAULT
0
COMMENT
'退款张数'
,
`pay_type`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'选择支付方式'
,
`payment_type`
varchar
(
255
)
NULL
DEFAULT
''
COMMENT
'实际支付方式'
,
`time_pay`
varchar
(
255
)
NULL
DEFAULT
''
COMMENT
'支付时间'
,
`express_contacts`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'收货人'
,
`express_address`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'收货地址'
,
`express_phone`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'收货人联系方式'
,
`coupon_type`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'券使用类别'
,
`get_ticket_type`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'取票方式 电子票electronic快递票express'
,
`get_ticket_describe`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'直播用取票观演码,隔开'
,
`pay_countdown_minute`
int
(
32
)
NOT
NULL
DEFAULT
15
COMMENT
'订单过期时间(分钟)'
,
`comment`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'comment'
,
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_order_tickets_uid_index`
(
`order_tickets_id`
),
`order_tickets_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'order_tickets_id'
,
`user_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'用户id'
,
`user_name`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'用户昵称'
,
`user_mobile`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'用户手机号'
,
`performance_title`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'演出名称'
,
`order_code`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'订单号'
,
`pay_code`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'支付单号'
,
`qr_code`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'二维码地址'
,
`order_type`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'下单方式'
,
`order_source`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'下单来源'
,
`order_version`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'下单版本'
,
`number`
int
(
32
)
NOT
NULL
DEFAULT
0
COMMENT
'数量'
,
`price`
decimal
(
8
,
2
)
NOT
NULL
DEFAULT
'0.00'
COMMENT
'单价'
,
`price_member`
decimal
(
8
,
2
)
NOT
NULL
DEFAULT
'0.00'
COMMENT
'会员单价'
,
`price_total`
decimal
(
8
,
2
)
NOT
NULL
DEFAULT
'0.00'
COMMENT
'应付价格'
,
`price_voucher`
decimal
(
8
,
2
)
NOT
NULL
DEFAULT
'0.00'
COMMENT
'优惠价格'
,
`price_actual`
decimal
(
8
,
2
)
NOT
NULL
DEFAULT
'0.00'
COMMENT
'实付价格'
,
`price_express`
decimal
(
8
,
2
)
NOT
NULL
DEFAULT
'0.00'
COMMENT
'快递价格'
,
`price_refund`
decimal
(
8
,
2
)
NOT
NULL
DEFAULT
'0.00'
COMMENT
'退款价格'
,
`refund_number`
int
(
32
)
NOT
NULL
DEFAULT
0
COMMENT
'退款张数'
,
`pay_type`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'选择支付方式'
,
`payment_type`
varchar
(
255
)
NULL
DEFAULT
''
COMMENT
'实际支付方式'
,
`time_pay`
varchar
(
255
)
NULL
DEFAULT
''
COMMENT
'支付时间'
,
`express_contacts`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'收货人'
,
`express_address`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'收货地址'
,
`express_phone`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'收货人联系方式'
,
`coupon_type`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'券使用类别'
,
`get_ticket_type`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'取票方式 电子票electronic快递票express'
,
`get_ticket_describe`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'直播用取票观演码,隔开'
,
`pay_countdown_minute`
int
(
32
)
NOT
NULL
DEFAULT
15
COMMENT
'订单过期时间(分钟)'
,
`comment`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'comment'
,
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_order_tickets_uid_index`
(
`order_tickets_id`
),
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'订单'
;
...
...
@@ -452,18 +452,18 @@ drop TABLE if exists `kylin_order_ticket_relations`;
CREATE
TABLE
`kylin_order_ticket_relations`
(
`mid`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
`order_ticket_relations_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'order_ticket_relations_id'
,
`order_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'订单id'
,
`transfer_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'转增订单id'
,
`live_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'关联直播id'
,
`performance_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'演出id'
,
`time_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'场次id'
,
`ticket_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'票id'
,
`agent_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'分销代理id'
,
`is_member`
int
NOT
NULL
DEFAULT
0
COMMENT
'购买者是否是会员'
,
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_order_ticket_relations_uid_index`
(
`order_ticket_relations_id`
),
`order_ticket_relations_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'order_ticket_relations_id'
,
`order_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'订单id'
,
`transfer_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'转增订单id'
,
`live_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'关联直播id'
,
`performance_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'演出id'
,
`time_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'场次id'
,
`ticket_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'票id'
,
`agent_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'分销代理id'
,
`is_member`
int
NOT
NULL
DEFAULT
0
COMMENT
'购买者是否是会员'
,
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_order_ticket_relations_uid_index`
(
`order_ticket_relations_id`
),
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'订单关系'
;
...
...
@@ -472,16 +472,16 @@ drop TABLE if exists `kylin_order_ticket_status`;
CREATE
TABLE
`kylin_order_ticket_status`
(
`mid`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
`order_ticket_status_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'order_ticket_status_id'
,
`order_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'订单id'
,
`express_type`
tinyint
NOT
NULL
DEFAULT
1
COMMENT
'快递方式 1寄付 2到付'
,
`is_student`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'是否学生票 1是 2否'
,
`transfer_status`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'转移状态,0未转移,1收到他人转赠,2已转赠给他人'
,
`status`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'订单状态:0待付款,1已付款,2已关闭,3正在退款,4已退款, 5待关闭 6部分退款'
,
`pay_status`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'支付状态:0未支付 1已支付 2支付失败'
,
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_order_ticket_status_uid_index`
(
`order_ticket_status_id`
),
`order_ticket_status_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'order_ticket_status_id'
,
`order_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'订单id'
,
`express_type`
tinyint
NOT
NULL
DEFAULT
1
COMMENT
'快递方式 1寄付 2到付'
,
`is_student`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'是否学生票 1是 2否'
,
`transfer_status`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'转移状态,0未转移,1收到他人转赠,2已转赠给他人'
,
`status`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'订单状态:0待付款,1已付款,2已关闭,3正在退款,4已退款, 5待关闭 6部分退款'
,
`pay_status`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'支付状态:0未支付 1已支付 2支付失败'
,
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_order_ticket_status_uid_index`
(
`order_ticket_status_id`
),
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'订单状态'
;
...
...
@@ -492,24 +492,24 @@ drop TABLE if exists `kylin_order_ticket_entities`;
CREATE
TABLE
`kylin_order_ticket_entities`
(
`mid`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
`order_ticket_entities_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'order_ticket_entities_id'
,
`order_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'订单详情关联id'
,
`ticket_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'票务id'
,
`user_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'用户id'
,
`performance_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'演出id'
,
`time_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'场次id'
,
`enter_type`
int
(
11
)
NOT
NULL
DEFAULT
1
COMMENT
'入场人证件类型 1大陆身份证 2港澳通行证 3台胞证 4护照 5军官证'
,
`enter_name`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'入场人姓名'
,
`enter_mobile`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'入场人联系电话'
,
`enter_id_code`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'入场人证件号'
,
`status`
int
(
11
)
NOT
NULL
DEFAULT
0
COMMENT
'出票状态: 0未出票 1已出票'
,
`sys_damai`
int
(
11
)
NOT
NULL
DEFAULT
0
COMMENT
'大麦同步状态: 0不同步 1待同步 2同步完成 3同步失败'
,
`check_client`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'出票端 例如 pda 验票app android/ios 大麦出票'
,
`is_payment`
int
(
11
)
NOT
NULL
DEFAULT
0
COMMENT
'支付状态: 0未支付 1已支付 2退款中 3已退款 '
,
`comment`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'comment'
,
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_order_ticket_entities_uid_index`
(
`order_ticket_entities_id`
),
`order_ticket_entities_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'order_ticket_entities_id'
,
`order_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'订单详情关联id'
,
`ticket_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'票务id'
,
`user_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'用户id'
,
`performance_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'演出id'
,
`time_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'场次id'
,
`enter_type`
int
(
11
)
NOT
NULL
DEFAULT
1
COMMENT
'入场人证件类型 1大陆身份证 2港澳通行证 3台胞证 4护照 5军官证'
,
`enter_name`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'入场人姓名'
,
`enter_mobile`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'入场人联系电话'
,
`enter_id_code`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'入场人证件号'
,
`status`
int
(
11
)
NOT
NULL
DEFAULT
0
COMMENT
'出票状态: 0未出票 1已出票'
,
`sys_damai`
int
(
11
)
NOT
NULL
DEFAULT
0
COMMENT
'大麦同步状态: 0不同步 1待同步 2同步完成 3同步失败'
,
`check_client`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'出票端 例如 pda 验票app android/ios 大麦出票'
,
`is_payment`
int
(
11
)
NOT
NULL
DEFAULT
0
COMMENT
'支付状态: 0未支付 1已支付 2退款中 3已退款 '
,
`comment`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'comment'
,
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_order_ticket_entities_uid_index`
(
`order_ticket_entities_id`
),
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'订单详情'
;
...
...
@@ -519,15 +519,15 @@ drop TABLE if exists `kylin_buy_notice`;
CREATE
TABLE
`kylin_buy_notice`
(
`mid`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
`buy_notice_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'buy_notice_id'
,
`title`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'标题'
,
`img_url`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'图片地址'
,
`message`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'内容'
,
`status`
tinyint
NOT
NULL
DEFAULT
1
COMMENT
'状态 1可用 0弃用'
,
`sort`
int
(
10
)
NOT
NULL
DEFAULT
0
COMMENT
'排序 大在上'
,
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_buy_notice_uid_index`
(
`buy_notice_id`
),
`buy_notice_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'buy_notice_id'
,
`title`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'标题'
,
`img_url`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'图片地址'
,
`message`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'内容'
,
`status`
tinyint
NOT
NULL
DEFAULT
1
COMMENT
'状态 1可用 0弃用'
,
`sort`
int
(
10
)
NOT
NULL
DEFAULT
0
COMMENT
'排序 大在上'
,
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_buy_notice_uid_index`
(
`buy_notice_id`
),
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'购票须知表'
;
...
...
@@ -537,15 +537,15 @@ drop TABLE if exists `kylin_check_user`;
CREATE
TABLE
`kylin_check_user`
(
`mid`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
`check_user_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'check_user_id'
,
`name`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'姓名'
,
`mobile`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'手机号'
,
`pwd`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'密码'
,
`status`
tinyint
NOT
NULL
DEFAULT
1
COMMENT
'是否可用 0否 1是'
,
`merchant_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'merchantId 第三方id'
,
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_check_user_uid_index`
(
`check_user_id`
),
`check_user_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'check_user_id'
,
`name`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'姓名'
,
`mobile`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'手机号'
,
`pwd`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'密码'
,
`status`
tinyint
NOT
NULL
DEFAULT
1
COMMENT
'是否可用 0否 1是'
,
`merchant_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'merchantId 第三方id'
,
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_check_user_uid_index`
(
`check_user_id`
),
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'验票用户表'
;
...
...
@@ -555,14 +555,14 @@ drop TABLE if exists `kylin_check_user_performances`;
CREATE
TABLE
`kylin_check_user_performances`
(
`mid`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
`check_user_performance_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'check_user_performance_id'
,
`performance_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'演出id'
,
`check_user_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'check_user_id'
,
`status`
tinyint
NOT
NULL
DEFAULT
1
COMMENT
'状态 1可用 0不可'
,
`can_down_time`
datetime
NULL
DEFAULT
NULL
COMMENT
'可下载时间'
,
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_check_user_uid_index`
(
`check_user_id`
),
`check_user_performance_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'check_user_performance_id'
,
`performance_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'演出id'
,
`check_user_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'check_user_id'
,
`status`
tinyint
NOT
NULL
DEFAULT
1
COMMENT
'状态 1可用 0不可'
,
`can_down_time`
datetime
NULL
DEFAULT
NULL
COMMENT
'可下载时间'
,
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_check_user_uid_index`
(
`check_user_id`
),
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
'验票用户可看演出表'
;
...
...
@@ -572,7 +572,7 @@ CREATE TABLE `kylin_check_user_performances`
drop
TABLE
if
exists
`express_batches`
;
CREATE
TABLE
`express_batches`
(
`id`
int
unsigned
NOT
NULL
AUTO_INCREMENT
,
`id`
int
unsigned
NOT
NULL
AUTO_INCREMENT
,
`admin_id`
int
NOT
NULL
DEFAULT
'0'
COMMENT
'管理员'
,
`order_id`
int
NOT
NULL
DEFAULT
'0'
COMMENT
'订单Id,订阅前查询'
,
`order_type`
varchar
(
30
)
CHARACTER
SET
utf8
COLLATE
utf8_unicode_ci
NOT
NULL
COMMENT
'订单类型 order_product 商品订单 , order_ticket 票务订单, order_integration 积分订单'
,
...
...
@@ -584,19 +584,23 @@ CREATE TABLE `express_batches`
`import_time`
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'导入时间'
,
`batch`
int
NOT
NULL
DEFAULT
'0'
COMMENT
'导入批次'
,
`reason`
varchar
(
200
)
CHARACTER
SET
utf8
COLLATE
utf8_unicode_ci
DEFAULT
NULL
COMMENT
'失败原因'
,
`created_at`
timestamp
NULL
DEFAULT
NULL
,
`updated_at`
timestamp
NULL
DEFAULT
NULL
,
`created_at`
timestamp
NULL
DEFAULT
NULL
,
`updated_at`
timestamp
NULL
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
),
KEY
`express_batches_batch_index`
(
`batch`
),
KEY
`express_batches_company_index`
(
`company`
),
KEY
`express_batches_number_index`
(
`number`
),
KEY
`express_batches_order_code_index`
(
`order_code`
),
KEY
`express_batches_order_type_index`
(
`order_type`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
34781
DEFAULT
CHARSET
=
utf8
COLLATE
=
utf8_unicode_ci
ROW_FORMAT
=
DYNAMIC
;
KEY
`express_batches_batch_index`
(
`batch`
),
KEY
`express_batches_company_index`
(
`company`
),
KEY
`express_batches_number_index`
(
`number`
),
KEY
`express_batches_order_code_index`
(
`order_code`
),
KEY
`express_batches_order_type_index`
(
`order_type`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
34781
DEFAULT
CHARSET
=
utf8
COLLATE
=
utf8_unicode_ci
ROW_FORMAT
=
DYNAMIC
;
drop
TABLE
if
exists
`express_logs`
;
CREATE
TABLE
`express_logs`
(
`id`
int
unsigned
NOT
NULL
AUTO_INCREMENT
,
`id`
int
unsigned
NOT
NULL
AUTO_INCREMENT
,
`order_id`
int
NOT
NULL
COMMENT
'订单id'
,
`order_type`
varchar
(
50
)
CHARACTER
SET
utf8
COLLATE
utf8_unicode_ci
NOT
NULL
DEFAULT
''
COMMENT
'订单类型 order_product 商品订单 , order_ticket 票务订单'
,
`admin_id`
int
NOT
NULL
DEFAULT
'0'
COMMENT
'修改人id'
,
...
...
@@ -604,26 +608,34 @@ CREATE TABLE `express_logs`
`name`
varchar
(
50
)
CHARACTER
SET
utf8
COLLATE
utf8_unicode_ci
NOT
NULL
DEFAULT
''
COMMENT
'快递联系人'
,
`mobile`
varchar
(
20
)
CHARACTER
SET
utf8
COLLATE
utf8_unicode_ci
NOT
NULL
DEFAULT
''
COMMENT
'快递联系电话'
,
`address`
varchar
(
200
)
CHARACTER
SET
utf8
COLLATE
utf8_unicode_ci
NOT
NULL
DEFAULT
''
COMMENT
'快递收货地址'
,
`created_at`
timestamp
NULL
DEFAULT
NULL
,
`updated_at`
timestamp
NULL
DEFAULT
NULL
,
`created_at`
timestamp
NULL
DEFAULT
NULL
,
`updated_at`
timestamp
NULL
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
487
DEFAULT
CHARSET
=
utf8
COLLATE
=
utf8_unicode_ci
ROW_FORMAT
=
DYNAMIC
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
487
DEFAULT
CHARSET
=
utf8
COLLATE
=
utf8_unicode_ci
ROW_FORMAT
=
DYNAMIC
;
drop
TABLE
if
exists
`express_timelines`
;
CREATE
TABLE
`express_timelines`
(
`id`
int
unsigned
NOT
NULL
AUTO_INCREMENT
,
`id`
int
unsigned
NOT
NULL
AUTO_INCREMENT
,
`express_id`
int
NOT
NULL
DEFAULT
'0'
COMMENT
'快递'
,
`context`
varchar
(
500
)
CHARACTER
SET
utf8
COLLATE
utf8_unicode_ci
NOT
NULL
COMMENT
'快递消息'
,
`time`
varchar
(
50
)
CHARACTER
SET
utf8
COLLATE
utf8_unicode_ci
DEFAULT
NULL
COMMENT
'时间,原始格式'
,
`ftime`
datetime
NOT
NULL
COMMENT
'格式化后时间'
,
`created_at`
timestamp
NULL
DEFAULT
NULL
,
`updated_at`
timestamp
NULL
DEFAULT
NULL
,
`created_at`
timestamp
NULL
DEFAULT
NULL
,
`updated_at`
timestamp
NULL
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
2039805
DEFAULT
CHARSET
=
utf8
COLLATE
=
utf8_unicode_ci
ROW_FORMAT
=
DYNAMIC
COMMENT
=
'快递时间线表'
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
2039805
DEFAULT
CHARSET
=
utf8
COLLATE
=
utf8_unicode_ci
ROW_FORMAT
=
DYNAMIC
COMMENT
=
'快递时间线表'
;
drop
TABLE
if
exists
`expresses`
;
CREATE
TABLE
`expresses`
(
`id`
int
unsigned
NOT
NULL
AUTO_INCREMENT
,
`id`
int
unsigned
NOT
NULL
AUTO_INCREMENT
,
`admin_id`
int
NOT
NULL
DEFAULT
'0'
COMMENT
'管理员'
,
`order_id`
int
NOT
NULL
DEFAULT
'0'
COMMENT
'订单Id'
,
`order_code`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_unicode_ci
NOT
NULL
DEFAULT
''
COMMENT
'订单编号'
,
...
...
@@ -632,14 +644,18 @@ CREATE TABLE `expresses`
`number`
varchar
(
50
)
CHARACTER
SET
utf8
COLLATE
utf8_unicode_ci
DEFAULT
''
COMMENT
'快递单号'
,
`name`
varchar
(
50
)
CHARACTER
SET
utf8
COLLATE
utf8_unicode_ci
NOT
NULL
DEFAULT
''
COMMENT
'快递公司名称'
,
`company`
varchar
(
50
)
CHARACTER
SET
utf8
COLLATE
utf8_unicode_ci
NOT
NULL
DEFAULT
''
COMMENT
'快递公司编号'
,
`created_at`
timestamp
NULL
DEFAULT
NULL
,
`updated_at`
timestamp
NULL
DEFAULT
NULL
,
`created_at`
timestamp
NULL
DEFAULT
NULL
,
`updated_at`
timestamp
NULL
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
),
KEY
`expresses_number_index`
(
`number`
),
KEY
`expresses_order_code_index`
(
`order_code`
),
KEY
`expresses_order_id_index`
(
`order_id`
),
KEY
`expresses_order_type_index`
(
`order_type`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
56762
DEFAULT
CHARSET
=
utf8
COLLATE
=
utf8_unicode_ci
ROW_FORMAT
=
DYNAMIC
COMMENT
=
'快递表'
;
KEY
`expresses_number_index`
(
`number`
),
KEY
`expresses_order_code_index`
(
`order_code`
),
KEY
`expresses_order_id_index`
(
`order_id`
),
KEY
`expresses_order_type_index`
(
`order_type`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
56762
DEFAULT
CHARSET
=
utf8
COLLATE
=
utf8_unicode_ci
ROW_FORMAT
=
DYNAMIC
COMMENT
=
'快递表'
;
insert
into
`kylin_buy_notice`
(
`buy_notice_id`
,
`img_url`
,
`message`
,
`status`
,
`sort`
,
`created_at`
,
...
...
@@ -702,17 +718,16 @@ values ('12', 'http://img-zhengzai-tv.oss-cn-hangzhou.aliyuncs.com/partner/2019/
drop
TABLE
if
exists
`kylin_order_refund_batches`
;
CREATE
TABLE
`kylin_order_refund_batches`
(
`mid`
int
unsigned
NOT
NULL
AUTO_INCREMENT
,
`refund_batch_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'refund_batch_id'
,
`target_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'目标id target_type=1为演出id'
,
`status`
tinyint
NOT
NULL
DEFAULT
'1'
COMMENT
'批量退款状态 1申请退款 2取消退款 3运营驳回审核 4运营通过审核 5财务驳回审核 6财务通过审核'
,
`total_refund_alipay`
decimal
(
11
,
2
)
NOT
NULL
DEFAULT
'0.00'
COMMENT
'申请时支付宝需退款总金额'
,
`total_refund_wepay`
decimal
(
11
,
2
)
NOT
NULL
DEFAULT
'0.00'
COMMENT
'申请时微信需退款总金额'
,
`total_price_express_alipay`
decimal
(
11
,
2
)
NOT
NULL
DEFAULT
'0.00'
COMMENT
'快递费总金额支付宝'
,
`total_price_express_wepay`
decimal
(
11
,
2
)
NOT
NULL
DEFAULT
'0.00'
COMMENT
'快递费总金额微信'
,
`created_at`
timestamp
NULL
DEFAULT
NULL
,
`updated_at`
timestamp
NULL
DEFAULT
NULL
,
KEY
`kylin_order_refund_batch_id_index`
(
`refund_batch_id`
),
`mid`
int
unsigned
NOT
NULL
AUTO_INCREMENT
,
`refund_batch_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'refund_batch_id'
,
`target_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'目标id target_type=1为演出id'
,
`status`
tinyint
NOT
NULL
DEFAULT
'1'
COMMENT
'批量退款状态 1申请退款 2取消退款 3运营驳回审核 4运营通过审核 5财务驳回审核 6财务通过审核'
,
`total_num`
int
NOT
NULL
DEFAULT
'0'
COMMENT
'申请时退票总数'
,
`total_alipay`
decimal
(
11
,
2
)
NOT
NULL
DEFAULT
'0.00'
COMMENT
'申请时支付宝需退款总金额 包含快递费'
,
`total_wepay`
decimal
(
11
,
2
)
NOT
NULL
DEFAULT
'0.00'
COMMENT
'申请时微信需退款总金额 包含快递费'
,
`created_at`
timestamp
NULL
DEFAULT
NULL
,
`updated_at`
timestamp
NULL
DEFAULT
NULL
,
KEY
`kylin_order_refund_batch_id_index`
(
`refund_batch_id`
),
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
...
...
@@ -722,37 +737,39 @@ CREATE TABLE `kylin_order_refund_batches`
drop
TABLE
if
exists
`kylin_order_refunds`
;
CREATE
TABLE
`kylin_order_refunds`
(
`mid`
int
unsigned
NOT
NULL
AUTO_INCREMENT
,
`order_refunds_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'order_refunds_id'
,
`order_tickets_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'票务订单id'
,
`order_refund_code`
varchar
(
50
)
NOT
NULL
COMMENT
'退款编号'
,
`order_refund_batches_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'批量退款id'
,
`refund_code`
varchar
(
50
)
NOT
NULL
DEFAULT
''
COMMENT
'退款中心退款编号'
,
`refund_at`
timestamp
NULL
DEFAULT
NULL
COMMENT
'成功退款时间'
,
`refund_id`
varchar
(
50
)
NOT
NULL
DEFAULT
''
COMMENT
'第三方退款编号'
,
`refund_error`
varchar
(
100
)
NOT
NULL
DEFAULT
''
COMMENT
'退款失败原因'
,
`price`
decimal
(
10
,
2
)
NOT
NULL
DEFAULT
'0.00'
COMMENT
'退款总金额'
,
`status`
tinyint
NOT
NULL
DEFAULT
'0'
COMMENT
'退款状态: 0请求退款 2取消退款 1审核通过 5驳回退款 7等待退款 3正在退款 4完成退款 6退款失败'
,
`type`
tinyint
NOT
NULL
DEFAULT
'0'
COMMENT
'退款差异: 0申请退款返还库存 1自动退款无法取消退款不返还库存'
,
`applicant_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'申请人id'
,
`applicant_name`
varchar
(
100
)
NOT
NULL
DEFAULT
''
COMMENT
'申请人名称'
,
`applicant_at`
timestamp
NULL
DEFAULT
NULL
COMMENT
'申请时间'
,
`reason`
varchar
(
200
)
NOT
NULL
DEFAULT
''
COMMENT
'退款原因'
,
`auditor_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'审核人id'
,
`auditor_name`
varchar
(
100
)
NOT
NULL
DEFAULT
''
COMMENT
'审核人名称'
,
`auditor_at`
timestamp
NULL
DEFAULT
NULL
COMMENT
'审核时间'
,
`reject`
varchar
(
200
)
NOT
NULL
DEFAULT
''
COMMENT
'驳回原因'
,
`executor_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'执行人id'
,
`executor_name`
varchar
(
100
)
NOT
NULL
DEFAULT
''
COMMENT
'执行人名称'
,
`executor_at`
timestamp
NULL
DEFAULT
NULL
COMMENT
'执行时间'
,
`refuse`
varchar
(
200
)
NOT
NULL
DEFAULT
''
COMMENT
'回绝原因'
,
`refund_type`
enum
(
'ticket'
,
'express'
,
'all'
)
NOT
NULL
DEFAULT
'ticket'
COMMENT
'票务/快递费/票和快递费'
,
`mid`
int
unsigned
NOT
NULL
AUTO_INCREMENT
,
`order_refunds_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'order_refunds_id'
,
`order_tickets_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'票务订单id'
,
`order_refund_code`
varchar
(
50
)
NOT
NULL
COMMENT
'退款编号'
,
`order_refund_batches_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'批量退款id'
,
`refund_code`
varchar
(
50
)
NOT
NULL
DEFAULT
''
COMMENT
'退款中心退款编号'
,
`refund_at`
timestamp
NULL
DEFAULT
NULL
COMMENT
'成功退款时间'
,
`refund_id`
varchar
(
50
)
NOT
NULL
DEFAULT
''
COMMENT
'第三方退款编号'
,
`refund_error`
varchar
(
100
)
NOT
NULL
DEFAULT
''
COMMENT
'退款失败原因'
,
`price`
decimal
(
10
,
2
)
NOT
NULL
DEFAULT
'0.00'
COMMENT
'退款总金额'
,
`status`
tinyint
NOT
NULL
DEFAULT
'0'
COMMENT
'退款状态: 0请求退款 2取消退款 1审核通过 5驳回退款 7等待退款 3正在退款 4完成退款 6退款失败'
,
`type`
tinyint
NOT
NULL
DEFAULT
'0'
COMMENT
'退款差异: 0申请退款返还库存 1自动退款无法取消退款不返还库存'
,
`applicant_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'申请人id'
,
`applicant_name`
varchar
(
100
)
NOT
NULL
DEFAULT
''
COMMENT
'申请人名称'
,
`applicant_at`
timestamp
NULL
DEFAULT
NULL
COMMENT
'申请时间'
,
`reason`
varchar
(
200
)
NOT
NULL
DEFAULT
''
COMMENT
'退款原因'
,
`auditor_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'审核人id'
,
`auditor_name`
varchar
(
100
)
NOT
NULL
DEFAULT
''
COMMENT
'审核人名称'
,
`auditor_at`
timestamp
NULL
DEFAULT
NULL
COMMENT
'审核时间'
,
`reject`
varchar
(
200
)
NOT
NULL
DEFAULT
''
COMMENT
'驳回原因'
,
`executor_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'执行人id'
,
`executor_name`
varchar
(
100
)
NOT
NULL
DEFAULT
''
COMMENT
'执行人名称'
,
`executor_at`
timestamp
NULL
DEFAULT
NULL
COMMENT
'执行时间'
,
`refuse`
varchar
(
200
)
NOT
NULL
DEFAULT
''
COMMENT
'回绝原因'
,
`refund_type`
enum
(
'ticket'
,
'express'
,
'all'
)
NOT
NULL
DEFAULT
'ticket'
COMMENT
'票务/快递费/票和快递费'
,
`order_ticket_entities_ids`
text
COMMENT
'订单入场人/搭售款式表 id 多个 ,分割'
,
`created_at`
timestamp
NULL
DEFAULT
NULL
,
`updated_at`
timestamp
NULL
DEFAULT
NULL
,
`created_at`
timestamp
NULL
DEFAULT
NULL
,
`updated_at`
timestamp
NULL
DEFAULT
NULL
,
PRIMARY
KEY
(
`mid`
),
UNIQUE
KEY
`kylin_order_refunds_order_refund_code_unique`
(
`order_refund_code`
),
KEY
`kylin_order_refunds_order_tickets_id_index`
(
`order_tickets_id`
),
KEY
`kylin_order_refunds_refund_type_index`
(
`refund_type`
),
KEY
`kylin_order_refunds_order_refunds_id_index`
(
`order_refunds_id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_ci
COMMENT
=
'订单退款表'
\ No newline at end of file
KEY
`kylin_order_refunds_order_tickets_id_index`
(
`order_tickets_id`
),
KEY
`kylin_order_refunds_refund_type_index`
(
`refund_type`
),
KEY
`kylin_order_refunds_order_refunds_id_index`
(
`order_refunds_id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_ci
COMMENT
=
'订单退款表'
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment