记得上下班打卡 | 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
813f6960
Commit
813f6960
authored
May 25, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
暂时提交
parent
f3e402c9
Changes
26
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
460 additions
and
164 deletions
+460
-164
IDGenerator.java
...ain/java/com/liquidnet/commons/lang/util/IDGenerator.java
+8
-1
PayOrderParam.java
.../com/liquidnet/service/kylin/dto/param/PayOrderParam.java
+4
-0
KylinCheckUserPerformanceVo.java
...net/service/kylin/dto/vo/KylinCheckUserPerformanceVo.java
+2
-1
KylinOrderTicketEntitiesVo.java
...dnet/service/kylin/dto/vo/KylinOrderTicketEntitiesVo.java
+10
-0
KylinOrderTicketVo.java
...om/liquidnet/service/kylin/dto/vo/KylinOrderTicketVo.java
+10
-0
KylinPerformanceVo.java
...om/liquidnet/service/kylin/dto/vo/KylinPerformanceVo.java
+7
-1
KylinTicketVo.java
...ava/com/liquidnet/service/kylin/dto/vo/KylinTicketVo.java
+3
-0
IKylinOrderTicketsService.java
...dnet/service/kylin/service/IKylinOrderTicketsService.java
+9
-3
IKylinCheckUserPerformancesPartnerService.java
...ce/partner/IKylinCheckUserPerformancesPartnerService.java
+2
-2
KylinOrderTicketEntities.java
...uidnet/service/kylin/entity/KylinOrderTicketEntities.java
+20
-2
KylinOrderTicketRelations.java
...idnet/service/kylin/entity/KylinOrderTicketRelations.java
+28
-1
KylinOrderTicketStatus.java
...iquidnet/service/kylin/entity/KylinOrderTicketStatus.java
+14
-0
KylinOrderTickets.java
...com/liquidnet/service/kylin/entity/KylinOrderTickets.java
+21
-1
KylinCheckUserPerformancesMapper.java
...ervice/kylin/mapper/KylinCheckUserPerformancesMapper.java
+2
-2
KylinCheckUserPerformancesMapper.xml
...service.kylin.mapper/KylinCheckUserPerformancesMapper.xml
+6
-0
db_kylin_structure.sql
.../liquidnet-service-kylin-impl/docu/db_kylin_structure.sql
+8
-2
KylinOrderTicketsController.java
...service/kylin/controller/KylinOrderTicketsController.java
+19
-3
KylinCheckUserPerformancesPartnerController.java
.../partner/KylinCheckUserPerformancesPartnerController.java
+6
-4
KylinOrderTicketsServiceImpl.java
...vice/kylin/service/impl/KylinOrderTicketsServiceImpl.java
+236
-124
KylinCheckUserPerformancesPartnerServiceImpl.java
...partner/KylinCheckUserPerformancesPartnerServiceImpl.java
+22
-15
KylinPerformancesPartnerServiceImpl.java
...ice/impl/partner/KylinPerformancesPartnerServiceImpl.java
+4
-1
DataUtils.java
...ain/java/com/liquidnet/service/kylin/utils/DataUtils.java
+15
-1
kylin_order_ticket_entities.properties
...n/resources/sqlmap/kylin_order_ticket_entities.properties
+1
-0
kylin_order_ticket_relation.properties
...n/resources/sqlmap/kylin_order_ticket_relation.properties
+1
-0
kylin_order_ticket_status.properties
...ain/resources/sqlmap/kylin_order_ticket_status.properties
+1
-0
kylin_order_tickets.properties
.../src/main/resources/sqlmap/kylin_order_tickets.properties
+1
-0
No files found.
liquidnet-bus-common/liquidnet-common-base/src/main/java/com/liquidnet/commons/lang/util/IDGenerator.java
View file @
813f6960
...
@@ -65,6 +65,13 @@ public class IDGenerator {
...
@@ -65,6 +65,13 @@ public class IDGenerator {
return
((
timestamp
-
twepoch
)
<<
timestampLeftShift
)
|
(
dataCenterId
<<
dataCenterIdShift
)
|
(
workerId
<<
workerIdShift
)
|
sequence
;
return
((
timestamp
-
twepoch
)
<<
timestampLeftShift
)
|
(
dataCenterId
<<
dataCenterIdShift
)
|
(
workerId
<<
workerIdShift
)
|
sequence
;
}
}
public
static
String
ticketOrderCode
(
String
orderTicketId
)
{
String
number
=
orderTicketId
+
"06d"
;
int
len
=
orderTicketId
.
length
();
String
time
=
System
.
currentTimeMillis
()/
1000
+
""
;
return
"T"
+
number
.
substring
(
0
,
len
-
4
)+
time
.
substring
(
7
,
8
)+
number
.
substring
(
len
-
2
)+
time
.
substring
(
8
,
9
)+
number
.
substring
(
len
-
4
,
2
);
}
private
static
long
genTime
()
{
private
static
long
genTime
()
{
return
useSystemClock
?
SystemClock
.
now
()
:
System
.
currentTimeMillis
();
return
useSystemClock
?
SystemClock
.
now
()
:
System
.
currentTimeMillis
();
}
}
...
@@ -83,7 +90,7 @@ public class IDGenerator {
...
@@ -83,7 +90,7 @@ public class IDGenerator {
return
timestamp
;
return
timestamp
;
}
}
private
static
long
getMachineNum
(){
private
static
long
getMachineNum
()
{
long
machinePiece
;
long
machinePiece
;
StringBuilder
sb
=
new
StringBuilder
();
StringBuilder
sb
=
new
StringBuilder
();
Enumeration
<
NetworkInterface
>
e
=
null
;
Enumeration
<
NetworkInterface
>
e
=
null
;
...
...
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-api/src/main/java/com/liquidnet/service/kylin/dto/param/PayOrderParam.java
View file @
813f6960
...
@@ -39,6 +39,10 @@ public class PayOrderParam {
...
@@ -39,6 +39,10 @@ public class PayOrderParam {
@ApiModelProperty
(
value
=
"代理id"
)
@ApiModelProperty
(
value
=
"代理id"
)
@NotNull
(
message
=
"必传"
)
@NotNull
(
message
=
"必传"
)
private
String
agentId
;
private
String
agentId
;
@ApiModelProperty
(
value
=
"快递类型 1寄付 2到付"
)
@NotNull
(
message
=
"必传"
)
private
Integer
expressType
;
@ApiModelProperty
(
value
=
"支付类型"
)
@ApiModelProperty
(
value
=
"支付类型"
)
@NotNull
(
message
=
"必传"
)
@NotNull
(
message
=
"必传"
)
...
...
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-api/src/main/java/com/liquidnet/service/kylin/dto/vo/KylinCheckUserPerformanceVo.java
View file @
813f6960
package
com
.
liquidnet
.
service
.
kylin
.
dto
.
vo
;
package
com
.
liquidnet
.
service
.
kylin
.
dto
.
vo
;
import
com.liquidnet.service.kylin.dto.param.CheckPerformanceRelationParam
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
...
@@ -14,5 +15,5 @@ public class KylinCheckUserPerformanceVo implements Serializable {
...
@@ -14,5 +15,5 @@ public class KylinCheckUserPerformanceVo implements Serializable {
private
String
checkUserId
;
private
String
checkUserId
;
@ApiModelProperty
(
value
=
"演出id数组"
)
@ApiModelProperty
(
value
=
"演出id数组"
)
private
List
<
String
>
performanceList
;
private
List
<
CheckPerformanceRelationParam
>
relationParams
;
}
}
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-api/src/main/java/com/liquidnet/service/kylin/dto/vo/KylinOrderTicketEntitiesVo.java
0 → 100644
View file @
813f6960
package
com
.
liquidnet
.
service
.
kylin
.
dto
.
vo
;
import
lombok.Data
;
import
java.io.Serializable
;
@Data
public
class
KylinOrderTicketEntitiesVo
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1207664465164005975L
;
}
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-api/src/main/java/com/liquidnet/service/kylin/dto/vo/KylinOrderTicketVo.java
0 → 100644
View file @
813f6960
package
com
.
liquidnet
.
service
.
kylin
.
dto
.
vo
;
import
lombok.Data
;
import
java.io.Serializable
;
@Data
public
class
KylinOrderTicketVo
implements
Serializable
{
private
static
final
long
serialVersionUID
=
5325511589667456213L
;
}
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-api/src/main/java/com/liquidnet/service/kylin/dto/vo/KylinPerformanceVo.java
View file @
813f6960
...
@@ -24,6 +24,8 @@ public class KylinPerformanceVo {
...
@@ -24,6 +24,8 @@ public class KylinPerformanceVo {
private
String
title
;
private
String
title
;
@ApiModelProperty
(
value
=
"演出图片"
)
@ApiModelProperty
(
value
=
"演出图片"
)
private
String
imgPoster
;
private
String
imgPoster
;
@ApiModelProperty
(
value
=
"支付倒计时"
)
private
Integer
payCountdownMinute
;
@ApiModelProperty
(
value
=
"101音乐节 102小型演出(livehouse演出) 103巡演"
)
@ApiModelProperty
(
value
=
"101音乐节 102小型演出(livehouse演出) 103巡演"
)
// @ApiModelProperty(value = "演出类型 1音乐节 2演唱会 3小型演出 4展览 6舞台剧 101音乐节 102小型演出(livehouse演出) 103巡演")
// @ApiModelProperty(value = "演出类型 1音乐节 2演唱会 3小型演出 4展览 6舞台剧 101音乐节 102小型演出(livehouse演出) 103巡演")
private
int
type
;
private
int
type
;
...
@@ -85,6 +87,8 @@ public class KylinPerformanceVo {
...
@@ -85,6 +87,8 @@ public class KylinPerformanceVo {
private
Integer
isDiscount
;
private
Integer
isDiscount
;
@ApiModelProperty
(
value
=
"是否提前"
)
@ApiModelProperty
(
value
=
"是否提前"
)
private
Integer
isAdvance
;
private
Integer
isAdvance
;
@ApiModelProperty
(
value
=
"是否同步大麦 0 1"
)
private
Integer
sysDamai
;
@ApiModelProperty
(
value
=
"文案"
)
@ApiModelProperty
(
value
=
"文案"
)
private
String
message
;
private
String
message
;
@ApiModelProperty
(
value
=
"巡演数据"
)
@ApiModelProperty
(
value
=
"巡演数据"
)
...
@@ -102,7 +106,7 @@ public class KylinPerformanceVo {
...
@@ -102,7 +106,7 @@ public class KylinPerformanceVo {
this
.
noticeImage
=
performance
.
getNoticeImage
();
this
.
noticeImage
=
performance
.
getNoticeImage
();
}
}
public
void
setTimePriceVipAndLack
(
int
isLackRegister
,
int
isMember
,
int
isExclusive
,
BigDecimal
price
,
LocalDateTime
stopSellTime
,
LocalDateTime
sellTime
,
int
isAdvance
,
int
isDiscount
)
{
public
void
setTimePriceVipAndLack
(
int
isLackRegister
,
int
isMember
,
int
isExclusive
,
BigDecimal
price
,
LocalDateTime
stopSellTime
,
LocalDateTime
sellTime
,
int
isAdvance
,
int
isDiscount
,
int
payCountdownMinute
)
{
this
.
isLackRegister
=
isLackRegister
;
this
.
isLackRegister
=
isLackRegister
;
this
.
isMember
=
isMember
;
this
.
isMember
=
isMember
;
this
.
isExclusive
=
isExclusive
;
this
.
isExclusive
=
isExclusive
;
...
@@ -113,6 +117,7 @@ public class KylinPerformanceVo {
...
@@ -113,6 +117,7 @@ public class KylinPerformanceVo {
this
.
isDiscount
=
isDiscount
;
this
.
isDiscount
=
isDiscount
;
this
.
isAdvance
=
isAdvance
;
this
.
isAdvance
=
isAdvance
;
this
.
message
=
""
;
this
.
message
=
""
;
this
.
payCountdownMinute
=
payCountdownMinute
;
}
}
public
void
setFieldsData
(
KylinFields
fields
,
String
cityName
){
public
void
setFieldsData
(
KylinFields
fields
,
String
cityName
){
...
@@ -129,6 +134,7 @@ public class KylinPerformanceVo {
...
@@ -129,6 +134,7 @@ public class KylinPerformanceVo {
this
.
isTrueName
=
performanceStatus
.
getIsTrueName
();
this
.
isTrueName
=
performanceStatus
.
getIsTrueName
();
this
.
limitCount
=
performanceStatus
.
getLimitCount
();
this
.
limitCount
=
performanceStatus
.
getLimitCount
();
this
.
limitCountMember
=
performanceStatus
.
getLimitCountMember
();
this
.
limitCountMember
=
performanceStatus
.
getLimitCountMember
();
this
.
sysDamai
=
performanceStatus
.
getSyncDamai
();
}
}
//TODO 巡演 搭售 场地
//TODO 巡演 搭售 场地
...
...
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-api/src/main/java/com/liquidnet/service/kylin/dto/vo/KylinTicketVo.java
View file @
813f6960
...
@@ -56,6 +56,8 @@ public class KylinTicketVo {
...
@@ -56,6 +56,8 @@ public class KylinTicketVo {
private
Integer
isElectronic
;
private
Integer
isElectronic
;
@ApiModelProperty
(
value
=
"是否快递票 0 1"
)
@ApiModelProperty
(
value
=
"是否快递票 0 1"
)
private
Integer
isExpress
;
private
Integer
isExpress
;
@ApiModelProperty
(
value
=
"是否同步大麦 0 1"
)
private
Integer
sysDamai
;
@ApiModelProperty
(
value
=
"可验证次数"
)
@ApiModelProperty
(
value
=
"可验证次数"
)
private
Integer
counts
;
private
Integer
counts
;
@ApiModelProperty
(
value
=
"状态 -2新建 -1删除;0未提交;1审核中;2审核中(自动在售);3审核通过;4审核未通过;6在售;7停售;8售罄;9未开始;10已结束"
)
@ApiModelProperty
(
value
=
"状态 -2新建 -1删除;0未提交;1审核中;2审核中(自动在售);3审核通过;4审核未通过;6在售;7停售;8售罄;9未开始;10已结束"
)
...
@@ -120,6 +122,7 @@ public class KylinTicketVo {
...
@@ -120,6 +122,7 @@ public class KylinTicketVo {
this
.
limitCountMember
=
ticketStatus
.
getMemberLimitCount
();
this
.
limitCountMember
=
ticketStatus
.
getMemberLimitCount
();
this
.
limitCount
=
ticketStatus
.
getLimitCount
();
this
.
limitCount
=
ticketStatus
.
getLimitCount
();
this
.
counts
=
ticketStatus
.
getCounts
();
this
.
counts
=
ticketStatus
.
getCounts
();
this
.
sysDamai
=
ticketStatus
.
getSyncDamai
();
}
}
}
}
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-api/src/main/java/com/liquidnet/service/kylin/service/IKylinOrderTicketsService.java
View file @
813f6960
package
com
.
liquidnet
.
service
.
kylin
.
service
;
package
com
.
liquidnet
.
service
.
kylin
.
service
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.kylin.dto.param.PayOrderParam
;
import
com.liquidnet.service.kylin.dto.param.PayOrderParam
;
import
com.liquidnet.service.kylin.dto.vo.KylinPerformanceVo
;
import
com.liquidnet.service.kylin.dto.vo.KylinTicketVo
;
import
com.liquidnet.service.kylin.entity.KylinOrderTickets
;
import
com.liquidnet.service.kylin.entity.KylinOrderTickets
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
java.util.List
;
/**
/**
* <p>
* <p>
* 订单 服务类
* 订单 服务类
...
@@ -14,10 +19,11 @@ import com.baomidou.mybatisplus.extension.service.IService;
...
@@ -14,10 +19,11 @@ import com.baomidou.mybatisplus.extension.service.IService;
*/
*/
public
interface
IKylinOrderTicketsService
extends
IService
<
KylinOrderTickets
>
{
public
interface
IKylinOrderTicketsService
extends
IService
<
KylinOrderTickets
>
{
// 下单前判断接口(判断是否可锁定库存)
// 下单前判断接口(判断是否可锁定库存)
(无订单->待支付->可支付)
boolean
checkCanOrder
(
PayOrderParam
payOrderParam
);
ResponseDto
<
String
>
checkCanOrder
(
PayOrderParam
payOrderParam
);
// 下单接口(无订单->待支付->可支付)
// 下单接口(无订单->待支付->可支付)
ResponseDto
<
String
>
order
(
PayOrderParam
payOrderParam
,
String
uid
,
boolean
isMember
,
int
isTrueName
,
KylinPerformanceVo
performanceData
,
KylinTicketVo
ticketData
);
// 再次支付(待支付->可支付->倒计时结束释放库存)
// 再次支付(待支付->可支付->倒计时结束释放库存)
...
...
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-api/src/main/java/com/liquidnet/service/kylin/service/partner/IKylinCheckUserPerformancesPartnerService.java
View file @
813f6960
...
@@ -22,10 +22,10 @@ import java.util.List;
...
@@ -22,10 +22,10 @@ import java.util.List;
public
interface
IKylinCheckUserPerformancesPartnerService
extends
IService
<
KylinCheckUserPerformances
>
{
public
interface
IKylinCheckUserPerformancesPartnerService
extends
IService
<
KylinCheckUserPerformances
>
{
// 已配置列表
// 已配置列表
ResponseDto
<
PageInfo
<
ChildPerformanceDao
>>
childPerformanceList
(
String
merchantId
,
String
checkUserId
,
int
page
,
int
size
);
ResponseDto
<
PageInfo
<
ChildPerformanceDao
>>
childPerformanceList
(
String
merchantId
,
String
checkUserId
,
int
page
,
int
size
,
String
name
);
// 未配置列表
// 未配置列表
ResponseDto
<
PageInfo
<
ChildPerformanceDao
>>
unChildPerformanceList
(
String
merchantId
,
String
checkUserId
,
int
page
,
int
size
);
ResponseDto
<
PageInfo
<
ChildPerformanceDao
>>
unChildPerformanceList
(
String
merchantId
,
String
checkUserId
,
int
page
,
int
size
,
String
name
);
// 添加配置
// 添加配置
ResponseDto
<
String
>
setPerformance
(
CheckUserParam
param
);
ResponseDto
<
String
>
setPerformance
(
CheckUserParam
param
);
...
...
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-do/src/main/java/com/liquidnet/service/kylin/entity/KylinOrderTicketEntities.java
View file @
813f6960
...
@@ -2,8 +2,10 @@ package com.liquidnet.service.kylin.entity;
...
@@ -2,8 +2,10 @@ package com.liquidnet.service.kylin.entity;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
...
@@ -44,6 +46,11 @@ public class KylinOrderTicketEntities implements Serializable {
...
@@ -44,6 +46,11 @@ public class KylinOrderTicketEntities implements Serializable {
*/
*/
private
String
userId
;
private
String
userId
;
/**
* 场次id
*/
private
String
timeId
;
/**
/**
* 演出id
* 演出id
*/
*/
...
@@ -104,5 +111,16 @@ public class KylinOrderTicketEntities implements Serializable {
...
@@ -104,5 +111,16 @@ public class KylinOrderTicketEntities implements Serializable {
*/
*/
private
LocalDateTime
updatedAt
;
private
LocalDateTime
updatedAt
;
/**
* 获取 添加 数据库参数
*
* @return
*/
public
Object
[]
getAddObject
()
{
return
new
Object
[]{
orderTicketEntitiesId
,
orderId
,
ticketId
,
userId
,
timeId
,
performanceId
,
enterType
,
enterName
,
enterMobile
,
enterIdCode
,
status
,
sysDamai
,
checkClient
,
isPayment
,
comment
,
createdAt
,
updatedAt
};
}
}
}
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-do/src/main/java/com/liquidnet/service/kylin/entity/KylinOrderTicketRelations.java
View file @
813f6960
...
@@ -2,8 +2,10 @@ package com.liquidnet.service.kylin.entity;
...
@@ -2,8 +2,10 @@ package com.liquidnet.service.kylin.entity;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
...
@@ -52,7 +54,22 @@ public class KylinOrderTicketRelations implements Serializable {
...
@@ -52,7 +54,22 @@ public class KylinOrderTicketRelations implements Serializable {
/**
/**
* 购买者是否是会员
* 购买者是否是会员
*/
*/
private
String
isMember
;
private
Integer
isMember
;
/**
* 演出id
*/
private
String
performanceId
;
/**
* 场次id
*/
private
String
timeId
;
/**
* 票id
*/
private
String
ticketId
;
/**
/**
* 创建时间
* 创建时间
...
@@ -64,5 +81,15 @@ public class KylinOrderTicketRelations implements Serializable {
...
@@ -64,5 +81,15 @@ public class KylinOrderTicketRelations implements Serializable {
*/
*/
private
LocalDateTime
updatedAt
;
private
LocalDateTime
updatedAt
;
/**
* 获取 添加 数据库参数
*
* @return
*/
public
Object
[]
getAddObject
()
{
return
new
Object
[]{
orderTicketRelationsId
,
orderId
,
transferId
,
liveId
,
agentId
,
isMember
,
performanceId
,
timeId
,
ticketId
,
createdAt
,
updatedAt
};
}
}
}
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-do/src/main/java/com/liquidnet/service/kylin/entity/KylinOrderTicketStatus.java
View file @
813f6960
...
@@ -39,6 +39,11 @@ public class KylinOrderTicketStatus implements Serializable {
...
@@ -39,6 +39,11 @@ public class KylinOrderTicketStatus implements Serializable {
*/
*/
private
Integer
expressType
;
private
Integer
expressType
;
/**
* 是否学生票 1是 2否
*/
private
Integer
isStudent
;
/**
/**
* 转移状态,0未转移,1收到他人转赠,2已转赠给他人
* 转移状态,0未转移,1收到他人转赠,2已转赠给他人
*/
*/
...
@@ -64,5 +69,14 @@ public class KylinOrderTicketStatus implements Serializable {
...
@@ -64,5 +69,14 @@ public class KylinOrderTicketStatus implements Serializable {
*/
*/
private
LocalDateTime
updatedAt
;
private
LocalDateTime
updatedAt
;
/**
* 获取 添加 数据库参数
* @return
*/
public
Object
[]
getAddObject
()
{
return
new
Object
[]{
orderTicketStatusId
,
orderId
,
expressType
,
isStudent
,
transferStatus
,
status
,
payStatus
,
createdAt
,
updatedAt
};
}
}
}
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-do/src/main/java/com/liquidnet/service/kylin/entity/KylinOrderTickets.java
View file @
813f6960
package
com
.
liquidnet
.
service
.
kylin
.
entity
;
package
com
.
liquidnet
.
service
.
kylin
.
entity
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
...
@@ -55,6 +58,11 @@ public class KylinOrderTickets implements Serializable {
...
@@ -55,6 +58,11 @@ public class KylinOrderTickets implements Serializable {
*/
*/
private
String
orderCode
;
private
String
orderCode
;
/**
* 支付订单号
*/
private
String
payCode
;
/**
/**
* 二维码地址
* 二维码地址
*/
*/
...
@@ -163,7 +171,7 @@ public class KylinOrderTickets implements Serializable {
...
@@ -163,7 +171,7 @@ public class KylinOrderTickets implements Serializable {
/**
/**
* 订单过期时间
* 订单过期时间
*/
*/
private
String
payCountdownMinute
;
private
Integer
payCountdownMinute
;
/**
/**
* comment
* comment
...
@@ -180,5 +188,17 @@ public class KylinOrderTickets implements Serializable {
...
@@ -180,5 +188,17 @@ public class KylinOrderTickets implements Serializable {
*/
*/
private
LocalDateTime
updatedAt
;
private
LocalDateTime
updatedAt
;
/**
* 获取 添加 数据库参数
* @return
*/
public
Object
[]
getAddObject
()
{
return
new
Object
[]{
orderTicketsId
,
userId
,
userName
,
userMobile
,
performanceTitle
,
orderCode
,
qrCode
,
orderType
,
orderVersion
,
number
,
price
,
priceMember
,
priceTotal
,
priceVoucher
,
priceActual
,
priceExpress
,
priceRefund
,
refundNumber
,
payType
,
paymentType
,
timePay
,
expressContacts
,
expressAddress
,
expressPhone
,
couponType
,
getTicketType
,
getTicketDescribe
,
payCountdownMinute
,
comment
,
createdAt
,
updatedAt
};
}
}
}
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-do/src/main/java/com/liquidnet/service/kylin/mapper/KylinCheckUserPerformancesMapper.java
View file @
813f6960
...
@@ -17,7 +17,7 @@ import java.util.List;
...
@@ -17,7 +17,7 @@ import java.util.List;
*/
*/
public
interface
KylinCheckUserPerformancesMapper
extends
BaseMapper
<
KylinCheckUserPerformances
>
{
public
interface
KylinCheckUserPerformancesMapper
extends
BaseMapper
<
KylinCheckUserPerformances
>
{
List
<
ChildPerformanceDao
>
childPerformanceList
(
String
merchantId
,
String
checkUserId
);
List
<
ChildPerformanceDao
>
childPerformanceList
(
String
merchantId
,
String
checkUserId
,
String
name
);
List
<
ChildPerformanceDao
>
unChildPerformanceList
(
String
merchantId
,
String
checkUserId
);
List
<
ChildPerformanceDao
>
unChildPerformanceList
(
String
merchantId
,
String
checkUserId
,
String
name
);
}
}
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-do/src/main/resources/com.liquidnet.service.kylin.mapper/KylinCheckUserPerformancesMapper.xml
View file @
813f6960
...
@@ -25,6 +25,9 @@
...
@@ -25,6 +25,9 @@
LEFT JOIN kylin_performance_relations AS pr ON pr.performance_id = p.performances_id
LEFT JOIN kylin_performance_relations AS pr ON pr.performance_id = p.performances_id
<where>
<where>
pr.merchant_id = #{merchantId} AND cup.check_user_id = #{checkUserId}
pr.merchant_id = #{merchantId} AND cup.check_user_id = #{checkUserId}
<if
test=
"name!=''"
>
AND title LIKE concat('%', #{name}, '%')
</if>
</where>
</where>
</select>
</select>
...
@@ -42,5 +45,8 @@
...
@@ -42,5 +45,8 @@
WHERE check_user_id = #{checkUserId}
WHERE check_user_id = #{checkUserId}
)
)
AND pr.merchant_id = #{merchantId}
AND pr.merchant_id = #{merchantId}
<if
test=
"name!=''"
>
AND title LIKE concat('%', #{name}, '%')
</if>
</select>
</select>
</mapper>
</mapper>
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/docu/db_kylin_structure.sql
View file @
813f6960
...
@@ -414,6 +414,7 @@ CREATE TABLE `kylin_order_tickets`
...
@@ -414,6 +414,7 @@ CREATE TABLE `kylin_order_tickets`
`user_mobile`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'用户手机号'
,
`user_mobile`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'用户手机号'
,
`performance_title`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'演出名称'
,
`performance_title`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'演出名称'
,
`order_code`
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
'二维码地址'
,
`qr_code`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'二维码地址'
,
`order_type`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'下单方式'
,
`order_type`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'下单方式'
,
`order_version`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'下单版本'
,
`order_version`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'下单版本'
,
...
@@ -435,7 +436,7 @@ CREATE TABLE `kylin_order_tickets`
...
@@ -435,7 +436,7 @@ CREATE TABLE `kylin_order_tickets`
`coupon_type`
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_type`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'取票方式 电子票electronic快递票express'
,
`get_ticket_describe`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'直播用取票观演码,隔开'
,
`get_ticket_describe`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'直播用取票观演码,隔开'
,
`pay_countdown_minute`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'订单过期时间
'
,
`pay_countdown_minute`
int
(
32
)
NOT
NULL
DEFAULT
15
COMMENT
'订单过期时间(分钟)
'
,
`comment`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'comment'
,
`comment`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'comment'
,
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
...
@@ -452,8 +453,11 @@ CREATE TABLE `kylin_order_ticket_relations`
...
@@ -452,8 +453,11 @@ CREATE TABLE `kylin_order_ticket_relations`
`order_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'订单id'
,
`order_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'订单id'
,
`transfer_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'
,
`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'
,
`agent_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'分销代理id'
,
`is_member`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'购买者是否是会员'
,
`is_member`
int
NOT
NULL
DEFAULT
0
COMMENT
'购买者是否是会员'
,
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`created_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
`updated_at`
datetime
NULL
DEFAULT
NULL
COMMENT
'修改时间'
,
KEY
`kylin_order_ticket_relations_uid_index`
(
`order_ticket_relations_id`
),
KEY
`kylin_order_ticket_relations_uid_index`
(
`order_ticket_relations_id`
),
...
@@ -468,6 +472,7 @@ CREATE TABLE `kylin_order_ticket_status`
...
@@ -468,6 +472,7 @@ CREATE TABLE `kylin_order_ticket_status`
`order_ticket_status_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'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'
,
`order_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'订单id'
,
`express_type`
tinyint
NOT
NULL
DEFAULT
1
COMMENT
'快递方式 1寄付 2到付'
,
`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已转赠给他人'
,
`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部分退款'
,
`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支付失败'
,
`pay_status`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'支付状态:0未支付 1已支付 2支付失败'
,
...
@@ -489,6 +494,7 @@ CREATE TABLE `kylin_order_ticket_entities`
...
@@ -489,6 +494,7 @@ CREATE TABLE `kylin_order_ticket_entities`
`ticket_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'
,
`user_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'用户id'
,
`performance_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_type`
int
(
11
)
NOT
NULL
DEFAULT
1
COMMENT
'入场人证件类型 1大陆身份证 2港澳通行证 3台胞证 4护照 5军官证'
,
`enter_name`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'入场人姓名'
,
`enter_name`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'入场人姓名'
,
`enter_mobile`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'入场人联系电话'
,
`enter_mobile`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'入场人联系电话'
,
...
...
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/controller/KylinOrderTicketsController.java
View file @
813f6960
package
com
.
liquidnet
.
service
.
kylin
.
controller
;
package
com
.
liquidnet
.
service
.
kylin
.
controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.kylin.dto.param.PayOrderParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.liquidnet.service.kylin.service.impl.KylinOrderTicketsServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiResponse
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
/**
/**
* <p>
* <p>
...
@@ -13,8 +18,19 @@ import org.springframework.web.bind.annotation.RestController;
...
@@ -13,8 +18,19 @@ import org.springframework.web.bind.annotation.RestController;
* @author liquidnet
* @author liquidnet
* @since 2021-05-20
* @since 2021-05-20
*/
*/
@Api
(
tags
=
"前端-订单相关"
)
@RestController
@RestController
@RequestMapping
(
"order"
)
@RequestMapping
(
"order"
)
public
class
KylinOrderTicketsController
{
public
class
KylinOrderTicketsController
{
@Autowired
private
KylinOrderTicketsServiceImpl
orderTicketsService
;
@PostMapping
(
"pre"
)
@ApiOperation
(
"下单"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
public
ResponseDto
<
String
>
checkCanOrder
(
@RequestBody
PayOrderParam
payOrderParam
)
{
return
orderTicketsService
.
checkCanOrder
(
payOrderParam
);
}
}
}
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/controller/partner/KylinCheckUserPerformancesPartnerController.java
View file @
813f6960
...
@@ -55,8 +55,9 @@ public class KylinCheckUserPerformancesPartnerController {
...
@@ -55,8 +55,9 @@ public class KylinCheckUserPerformancesPartnerController {
public
ResponseDto
<
PageInfo
<
ChildPerformanceDao
>>
childPerformanceList
(
@RequestParam
(
"merchantId"
)
String
merchantId
,
public
ResponseDto
<
PageInfo
<
ChildPerformanceDao
>>
childPerformanceList
(
@RequestParam
(
"merchantId"
)
String
merchantId
,
@RequestParam
(
"checkUserId"
)
String
checkUserId
,
@RequestParam
(
"checkUserId"
)
String
checkUserId
,
@RequestParam
(
"page"
)
int
page
,
@RequestParam
(
"page"
)
int
page
,
@RequestParam
(
"size"
)
int
size
)
{
@RequestParam
(
"size"
)
int
size
,
return
userPerformancesPartnerService
.
childPerformanceList
(
merchantId
,
checkUserId
,
page
,
size
);
@RequestParam
(
"name"
)
String
name
)
{
return
userPerformancesPartnerService
.
childPerformanceList
(
merchantId
,
checkUserId
,
page
,
size
,
name
);
}
}
@GetMapping
(
value
=
"unRelation"
)
@GetMapping
(
value
=
"unRelation"
)
...
@@ -65,7 +66,8 @@ public class KylinCheckUserPerformancesPartnerController {
...
@@ -65,7 +66,8 @@ public class KylinCheckUserPerformancesPartnerController {
public
ResponseDto
<
PageInfo
<
ChildPerformanceDao
>>
unChildPerformanceList
(
@RequestParam
(
"merchantId"
)
String
merchantId
,
public
ResponseDto
<
PageInfo
<
ChildPerformanceDao
>>
unChildPerformanceList
(
@RequestParam
(
"merchantId"
)
String
merchantId
,
@RequestParam
(
"checkUserId"
)
String
checkUserId
,
@RequestParam
(
"checkUserId"
)
String
checkUserId
,
@RequestParam
(
"page"
)
int
page
,
@RequestParam
(
"page"
)
int
page
,
@RequestParam
(
"size"
)
int
size
)
{
@RequestParam
(
"size"
)
int
size
,
return
userPerformancesPartnerService
.
unChildPerformanceList
(
merchantId
,
checkUserId
,
page
,
size
);
@RequestParam
(
"name"
)
String
name
)
{
return
userPerformancesPartnerService
.
unChildPerformanceList
(
merchantId
,
checkUserId
,
page
,
size
,
name
);
}
}
}
}
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/service/impl/KylinOrderTicketsServiceImpl.java
View file @
813f6960
This diff is collapsed.
Click to expand it.
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/service/impl/partner/KylinCheckUserPerformancesPartnerServiceImpl.java
View file @
813f6960
...
@@ -49,11 +49,11 @@ public class KylinCheckUserPerformancesPartnerServiceImpl extends ServiceImpl<Ky
...
@@ -49,11 +49,11 @@ public class KylinCheckUserPerformancesPartnerServiceImpl extends ServiceImpl<Ky
private
KylinCheckUserPerformancesMapper
checkUserPerformancesMapper
;
private
KylinCheckUserPerformancesMapper
checkUserPerformancesMapper
;
@Override
@Override
public
ResponseDto
<
PageInfo
<
ChildPerformanceDao
>>
childPerformanceList
(
String
merchantId
,
String
checkUserId
,
int
page
,
int
size
)
{
public
ResponseDto
<
PageInfo
<
ChildPerformanceDao
>>
childPerformanceList
(
String
merchantId
,
String
checkUserId
,
int
page
,
int
size
,
String
name
)
{
PageInfo
<
ChildPerformanceDao
>
pageInfo
=
null
;
PageInfo
<
ChildPerformanceDao
>
pageInfo
=
null
;
try
{
try
{
PageHelper
.
startPage
(
page
,
size
);
PageHelper
.
startPage
(
page
,
size
);
List
<
ChildPerformanceDao
>
data
=
checkUserPerformancesMapper
.
childPerformanceList
(
merchantId
,
checkUserId
);
List
<
ChildPerformanceDao
>
data
=
checkUserPerformancesMapper
.
childPerformanceList
(
merchantId
,
checkUserId
,
name
);
pageInfo
=
new
PageInfo
(
data
);
pageInfo
=
new
PageInfo
(
data
);
return
ResponseDto
.
success
(
pageInfo
);
return
ResponseDto
.
success
(
pageInfo
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
@@ -62,11 +62,11 @@ public class KylinCheckUserPerformancesPartnerServiceImpl extends ServiceImpl<Ky
...
@@ -62,11 +62,11 @@ public class KylinCheckUserPerformancesPartnerServiceImpl extends ServiceImpl<Ky
}
}
@Override
@Override
public
ResponseDto
<
PageInfo
<
ChildPerformanceDao
>>
unChildPerformanceList
(
String
merchantId
,
String
checkUserId
,
int
page
,
int
size
)
{
public
ResponseDto
<
PageInfo
<
ChildPerformanceDao
>>
unChildPerformanceList
(
String
merchantId
,
String
checkUserId
,
int
page
,
int
size
,
String
name
)
{
PageInfo
<
ChildPerformanceDao
>
pageInfo
=
null
;
PageInfo
<
ChildPerformanceDao
>
pageInfo
=
null
;
try
{
try
{
PageHelper
.
startPage
(
page
,
size
);
PageHelper
.
startPage
(
page
,
size
);
List
<
ChildPerformanceDao
>
data
=
checkUserPerformancesMapper
.
unChildPerformanceList
(
merchantId
,
checkUserId
);
List
<
ChildPerformanceDao
>
data
=
checkUserPerformancesMapper
.
unChildPerformanceList
(
merchantId
,
checkUserId
,
name
);
pageInfo
=
new
PageInfo
(
data
);
pageInfo
=
new
PageInfo
(
data
);
return
ResponseDto
.
success
(
pageInfo
);
return
ResponseDto
.
success
(
pageInfo
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
@@ -77,7 +77,7 @@ public class KylinCheckUserPerformancesPartnerServiceImpl extends ServiceImpl<Ky
...
@@ -77,7 +77,7 @@ public class KylinCheckUserPerformancesPartnerServiceImpl extends ServiceImpl<Ky
@Override
@Override
public
ResponseDto
<
String
>
setPerformance
(
CheckUserParam
param
)
{
public
ResponseDto
<
String
>
setPerformance
(
CheckUserParam
param
)
{
try
{
try
{
List
<
String
>
performanceList
=
new
ArrayList
<>();
List
<
CheckPerformanceRelationParam
>
performanceList
=
new
ArrayList
<>();
for
(
CheckPerformanceRelationParam
item
:
param
.
getCheckPerformanceRelationParamList
())
{
for
(
CheckPerformanceRelationParam
item
:
param
.
getCheckPerformanceRelationParamList
())
{
KylinCheckUserPerformances
checkUserPerformances
=
new
KylinCheckUserPerformances
();
KylinCheckUserPerformances
checkUserPerformances
=
new
KylinCheckUserPerformances
();
checkUserPerformances
.
setCheckUserId
(
param
.
getCheckUserId
());
checkUserPerformances
.
setCheckUserId
(
param
.
getCheckUserId
());
...
@@ -87,17 +87,17 @@ public class KylinCheckUserPerformancesPartnerServiceImpl extends ServiceImpl<Ky
...
@@ -87,17 +87,17 @@ public class KylinCheckUserPerformancesPartnerServiceImpl extends ServiceImpl<Ky
checkUserPerformances
.
setCreatedAt
(
LocalDateTime
.
now
());
checkUserPerformances
.
setCreatedAt
(
LocalDateTime
.
now
());
checkUserPerformances
.
setStatus
(
1
);
checkUserPerformances
.
setStatus
(
1
);
checkUserPerformancesMapper
.
insert
(
checkUserPerformances
);
checkUserPerformancesMapper
.
insert
(
checkUserPerformances
);
performanceList
.
add
(
item
.
getPerformanceId
()
);
performanceList
.
add
(
item
);
}
}
KylinCheckUserPerformanceVo
userPerformanceVo
=
new
KylinCheckUserPerformanceVo
();
KylinCheckUserPerformanceVo
userPerformanceVo
=
new
KylinCheckUserPerformanceVo
();
userPerformanceVo
.
setCheckUserId
(
param
.
getCheckUserId
());
userPerformanceVo
.
setCheckUserId
(
param
.
getCheckUserId
());
userPerformanceVo
.
set
PerformanceList
(
performanceList
);
userPerformanceVo
.
set
RelationParams
(
performanceList
);
mongoTemplate
.
remove
(
Query
.
query
(
Criteria
.
where
(
"checkUserId"
).
is
(
param
.
getCheckUserId
())),
KylinCheckUserPerformanceVo
.
class
,
KylinCheckUserPerformanceVo
.
class
.
getSimpleName
());
mongoTemplate
.
remove
(
Query
.
query
(
Criteria
.
where
(
"checkUserId"
).
is
(
param
.
getCheckUserId
())),
KylinCheckUserPerformanceVo
.
class
,
KylinCheckUserPerformanceVo
.
class
.
getSimpleName
());
mongoTemplate
.
insert
(
userPerformanceVo
,
KylinCheckUserPerformanceVo
.
class
.
getSimpleName
());
mongoTemplate
.
insert
(
userPerformanceVo
,
KylinCheckUserPerformanceVo
.
class
.
getSimpleName
());
redisUtil
.
hdel
(
KylinRedisConst
.
CHECK_USER_RELATION
,
param
.
getCheckUserId
());
redisUtil
.
hdel
(
KylinRedisConst
.
CHECK_USER_RELATION
,
param
.
getCheckUserId
());
return
ResponseDto
.
success
(
"添加成功"
);
return
ResponseDto
.
success
(
"添加成功"
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
20101
));
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
20101
));
}
}
}
}
...
@@ -105,19 +105,26 @@ public class KylinCheckUserPerformancesPartnerServiceImpl extends ServiceImpl<Ky
...
@@ -105,19 +105,26 @@ public class KylinCheckUserPerformancesPartnerServiceImpl extends ServiceImpl<Ky
@Override
@Override
public
ResponseDto
<
String
>
delPerformance
(
List
<
String
>
performanceIds
,
String
checkUserId
)
{
public
ResponseDto
<
String
>
delPerformance
(
List
<
String
>
performanceIds
,
String
checkUserId
)
{
try
{
try
{
List
<
String
>
performanceList
=
new
ArrayList
<>();
for
(
String
performanceId
:
performanceIds
)
{
for
(
String
performanceId
:
performanceIds
)
{
performanceList
.
add
(
performanceId
);
checkUserPerformancesMapper
.
delete
(
new
UpdateWrapper
<
KylinCheckUserPerformances
>().
eq
(
"check_user_id"
,
checkUserId
).
eq
(
"performance_id"
,
performanceId
));
checkUserPerformancesMapper
.
delete
(
new
UpdateWrapper
<
KylinCheckUserPerformances
>().
eq
(
"check_user_id"
,
checkUserId
).
eq
(
"performance_id"
,
performanceId
));
}
}
mongoTemplate
.
remove
(
Query
.
query
(
Criteria
.
where
(
"checkUserId"
).
is
(
checkUserId
)),
KylinCheckUserPerformanceVo
.
class
,
KylinCheckUserPerformanceVo
.
class
.
getSimpleName
());
KylinCheckUserPerformanceVo
userPerformanceVo
=
new
KylinCheckUserPerformanceVo
();
KylinCheckUserPerformanceVo
userPerformanceVo
=
new
KylinCheckUserPerformanceVo
();
List
<
CheckPerformanceRelationParam
>
performanceRelationParamsList
=
new
ArrayList
<>();
List
<
KylinCheckUserPerformances
>
data
=
checkUserPerformancesMapper
.
selectList
(
new
UpdateWrapper
<
KylinCheckUserPerformances
>().
eq
(
"check_user_id"
,
checkUserId
));
for
(
KylinCheckUserPerformances
item
:
data
)
{
CheckPerformanceRelationParam
performanceRelationParam
=
new
CheckPerformanceRelationParam
();
performanceRelationParam
.
setCanDownTime
(
item
.
getCanDownTime
().
format
(
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd HH:mm:ss"
)));
performanceRelationParam
.
setPerformanceId
(
item
.
getCheckUserPerformanceId
());
performanceRelationParamsList
.
add
(
performanceRelationParam
);
}
userPerformanceVo
.
setCheckUserId
(
checkUserId
);
userPerformanceVo
.
setCheckUserId
(
checkUserId
);
userPerformanceVo
.
setPerformanceList
(
performanceList
);
userPerformanceVo
.
setRelationParams
(
performanceRelationParamsList
);
mongoTemplate
.
remove
(
Query
.
query
(
Criteria
.
where
(
"checkUserId"
).
is
(
checkUserId
)),
KylinCheckUserPerformanceVo
.
class
,
KylinCheckUserPerformanceVo
.
class
.
getSimpleName
());
mongoTemplate
.
insert
(
userPerformanceVo
,
KylinCheckUserPerformanceVo
.
class
.
getSimpleName
());
mongoTemplate
.
insert
(
userPerformanceVo
,
KylinCheckUserPerformanceVo
.
class
.
getSimpleName
());
redisUtil
.
hdel
(
KylinRedisConst
.
CHECK_USER_RELATION
,
checkUserId
);
redisUtil
.
hdel
(
KylinRedisConst
.
CHECK_USER_RELATION
,
checkUserId
);
return
ResponseDto
.
success
(
"删除成功"
);
return
ResponseDto
.
success
(
"删除成功"
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
20102
));
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
20102
));
}
}
}
}
...
...
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/service/impl/partner/KylinPerformancesPartnerServiceImpl.java
View file @
813f6960
...
@@ -487,6 +487,7 @@ public class KylinPerformancesPartnerServiceImpl extends ServiceImpl<KylinPerfor
...
@@ -487,6 +487,7 @@ public class KylinPerformancesPartnerServiceImpl extends ServiceImpl<KylinPerfor
int
isExclusive
=
0
;
int
isExclusive
=
0
;
int
isAdvance
=
0
;
int
isAdvance
=
0
;
int
isDiscount
=
0
;
int
isDiscount
=
0
;
int
payCountdownMinute
=
15
;
BigDecimal
price
=
new
BigDecimal
(
"0.00"
);
BigDecimal
price
=
new
BigDecimal
(
"0.00"
);
...
@@ -549,6 +550,8 @@ public class KylinPerformancesPartnerServiceImpl extends ServiceImpl<KylinPerfor
...
@@ -549,6 +550,8 @@ public class KylinPerformancesPartnerServiceImpl extends ServiceImpl<KylinPerfor
isLackRegister
=
1
;
isLackRegister
=
1
;
}
}
payCountdownMinute
=
tickets
.
getPayCountdownMinute
();
if
(
price
.
subtract
(
kylinTicketVo
.
getPrice
()).
compareTo
(
new
BigDecimal
(
"0.00"
))
<
0
)
{
if
(
price
.
subtract
(
kylinTicketVo
.
getPrice
()).
compareTo
(
new
BigDecimal
(
"0.00"
))
<
0
)
{
price
=
kylinTicketVo
.
getPrice
();
price
=
kylinTicketVo
.
getPrice
();
}
}
...
@@ -568,7 +571,7 @@ public class KylinPerformancesPartnerServiceImpl extends ServiceImpl<KylinPerfor
...
@@ -568,7 +571,7 @@ public class KylinPerformancesPartnerServiceImpl extends ServiceImpl<KylinPerfor
}
}
}
}
kylinPerformanceVoData
.
setTimePriceVipAndLack
(
isLackRegister
,
isMember
,
isExclusive
,
price
,
stopSellTime
,
sellTime
,
isAdvance
,
isDiscount
);
kylinPerformanceVoData
.
setTimePriceVipAndLack
(
isLackRegister
,
isMember
,
isExclusive
,
price
,
stopSellTime
,
sellTime
,
isAdvance
,
isDiscount
,
payCountdownMinute
);
boolean
performanceExists
=
boolean
performanceExists
=
mongoTemplate
.
exists
(
Query
.
query
(
Criteria
.
where
(
"performancesId"
).
is
(
kylinPerformanceVoData
.
getPerformancesId
())),
KylinPerformanceVo
.
class
,
KylinPerformanceVo
.
class
.
getSimpleName
());
mongoTemplate
.
exists
(
Query
.
query
(
Criteria
.
where
(
"performancesId"
).
is
(
kylinPerformanceVoData
.
getPerformancesId
())),
KylinPerformanceVo
.
class
,
KylinPerformanceVo
.
class
.
getSimpleName
());
...
...
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/utils/DataUtils.java
View file @
813f6960
...
@@ -102,6 +102,11 @@ public class DataUtils {
...
@@ -102,6 +102,11 @@ public class DataUtils {
return
(
int
)
redisUtil
.
hincr
(
KylinRedisConst
.
PERFORMANCES_INVENTORY
+
ticketId
,
KylinRedisConst
.
SURPLUS_GENERAL
,
surplusExchange
);
return
(
int
)
redisUtil
.
hincr
(
KylinRedisConst
.
PERFORMANCES_INVENTORY
+
ticketId
,
KylinRedisConst
.
SURPLUS_GENERAL
,
surplusExchange
);
}
}
/**
* 根据演出id 获取 演出vo 详情
* @param performanceId
* @return
*/
public
KylinPerformanceVo
getPerformanceVo
(
String
performanceId
){
public
KylinPerformanceVo
getPerformanceVo
(
String
performanceId
){
if
(
redisUtil
.
hHasKey
(
KylinRedisConst
.
PERFORMANCES
,
performanceId
)){
if
(
redisUtil
.
hHasKey
(
KylinRedisConst
.
PERFORMANCES
,
performanceId
)){
}
else
{
}
else
{
...
@@ -111,6 +116,11 @@ public class DataUtils {
...
@@ -111,6 +116,11 @@ public class DataUtils {
return
(
KylinPerformanceVo
)
redisUtil
.
hget
(
KylinRedisConst
.
PERFORMANCES
,
performanceId
);
return
(
KylinPerformanceVo
)
redisUtil
.
hget
(
KylinRedisConst
.
PERFORMANCES
,
performanceId
);
}
}
/**
* 根据场次id 获取 场次vo 详情
* @param ticketTimeId
* @return
*/
public
KylinTicketTimesVo
getTicketTimesVo
(
String
ticketTimeId
){
public
KylinTicketTimesVo
getTicketTimesVo
(
String
ticketTimeId
){
if
(
redisUtil
.
hHasKey
(
KylinRedisConst
.
TIMES
,
ticketTimeId
)){
if
(
redisUtil
.
hHasKey
(
KylinRedisConst
.
TIMES
,
ticketTimeId
)){
}
else
{
}
else
{
...
@@ -120,6 +130,11 @@ public class DataUtils {
...
@@ -120,6 +130,11 @@ public class DataUtils {
return
(
KylinTicketTimesVo
)
redisUtil
.
hget
(
KylinRedisConst
.
TIMES
,
ticketTimeId
);
return
(
KylinTicketTimesVo
)
redisUtil
.
hget
(
KylinRedisConst
.
TIMES
,
ticketTimeId
);
}
}
/**
* 根据票种id 获取 票种vo 详情
* @param ticketId
* @return
*/
public
KylinTicketVo
getTicketVo
(
String
ticketId
){
public
KylinTicketVo
getTicketVo
(
String
ticketId
){
if
(
redisUtil
.
hHasKey
(
KylinRedisConst
.
TICKET
,
ticketId
)){
if
(
redisUtil
.
hHasKey
(
KylinRedisConst
.
TICKET
,
ticketId
)){
}
else
{
}
else
{
...
@@ -128,5 +143,4 @@ public class DataUtils {
...
@@ -128,5 +143,4 @@ public class DataUtils {
}
}
return
(
KylinTicketVo
)
redisUtil
.
hget
(
KylinRedisConst
.
TICKET
,
ticketId
);
return
(
KylinTicketVo
)
redisUtil
.
hget
(
KylinRedisConst
.
TICKET
,
ticketId
);
}
}
}
}
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/resources/sqlmap/kylin_order_ticket_entities.properties
0 → 100644
View file @
813f6960
kylin_order_ticket_entities.add
=
UPDATE adam_enters SET `state`=2, updated_at=?, deleted_at=? where enters_id=?
\ No newline at end of file
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/resources/sqlmap/kylin_order_ticket_relation.properties
0 → 100644
View file @
813f6960
kylin_order_ticket_relation.add
=
UPDATE adam_enters SET `state`=2, updated_at=?, deleted_at=? where enters_id=?
\ No newline at end of file
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/resources/sqlmap/kylin_order_ticket_status.properties
0 → 100644
View file @
813f6960
kylin_order_ticket_status.add
=
UPDATE adam_enters SET `state`=2, updated_at=?, deleted_at=? where enters_id=?
\ No newline at end of file
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/resources/sqlmap/kylin_order_tickets.properties
0 → 100644
View file @
813f6960
kylin_order_ticket.add
=
UPDATE adam_enters SET `state`=2, updated_at=?, deleted_at=? where enters_id=?
\ 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