记得上下班打卡 | 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
0b6d2418
Commit
0b6d2418
authored
Nov 09, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加 merchant相关拦截
parent
478d0f52
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
180 additions
and
55 deletions
+180
-55
KylinPerformanceRelations.java
...idnet/service/kylin/entity/KylinPerformanceRelations.java
+13
-1
KylinPerformanceStatus.java
...iquidnet/service/kylin/entity/KylinPerformanceStatus.java
+10
-0
KylinPerformances.java
...com/liquidnet/service/kylin/entity/KylinPerformances.java
+37
-1
KylinTicketRelations.java
.../liquidnet/service/kylin/entity/KylinTicketRelations.java
+7
-0
KylinTicketStatus.java
...com/liquidnet/service/kylin/entity/KylinTicketStatus.java
+14
-0
KylinTicketTimeRelation.java
...quidnet/service/kylin/entity/KylinTicketTimeRelation.java
+11
-1
KylinTicketTimes.java
.../com/liquidnet/service/kylin/entity/KylinTicketTimes.java
+8
-0
KylinTickets.java
...java/com/liquidnet/service/kylin/entity/KylinTickets.java
+13
-0
KylinPerformancesPartnerServiceImpl.java
...ant/service/impl/KylinPerformancesPartnerServiceImpl.java
+8
-8
KylinTicketTimesPartnerServiceImpl.java
...hant/service/impl/KylinTicketTimesPartnerServiceImpl.java
+1
-1
KylinTicketsPartnerServiceImpl.java
...merchant/service/impl/KylinTicketsPartnerServiceImpl.java
+3
-3
MongoMerchantUtils.java
...m/liquidnet/service/merchant/util/MongoMerchantUtils.java
+4
-0
PerformanceUtils.java
...com/liquidnet/service/merchant/util/PerformanceUtils.java
+33
-33
RedisMerchantUtils.java
...m/liquidnet/service/merchant/util/RedisMerchantUtils.java
+13
-2
sqlmap.properties
...ervice-merchant-impl/src/main/resources/sqlmap.properties
+5
-5
No files found.
liquidnet-bus-do/liquidnet-service-kylin-do/src/main/java/com/liquidnet/service/kylin/entity/KylinPerformanceRelations.java
View file @
0b6d2418
...
@@ -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
;
...
@@ -17,7 +19,7 @@ import lombok.EqualsAndHashCode;
...
@@ -17,7 +19,7 @@ import lombok.EqualsAndHashCode;
*/
*/
@Data
@Data
@EqualsAndHashCode
(
callSuper
=
false
)
@EqualsAndHashCode
(
callSuper
=
false
)
public
class
KylinPerformanceRelations
implements
Serializable
,
Cloneable
{
public
class
KylinPerformanceRelations
implements
Serializable
,
Cloneable
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
@@ -75,6 +77,7 @@ public class KylinPerformanceRelations implements Serializable ,Cloneable {
...
@@ -75,6 +77,7 @@ public class KylinPerformanceRelations implements Serializable ,Cloneable {
private
LocalDateTime
updatedAt
;
private
LocalDateTime
updatedAt
;
private
static
final
KylinPerformanceRelations
obj
=
new
KylinPerformanceRelations
();
private
static
final
KylinPerformanceRelations
obj
=
new
KylinPerformanceRelations
();
public
static
KylinPerformanceRelations
getNew
()
{
public
static
KylinPerformanceRelations
getNew
()
{
try
{
try
{
return
(
KylinPerformanceRelations
)
obj
.
clone
();
return
(
KylinPerformanceRelations
)
obj
.
clone
();
...
@@ -82,4 +85,13 @@ public class KylinPerformanceRelations implements Serializable ,Cloneable {
...
@@ -82,4 +85,13 @@ public class KylinPerformanceRelations implements Serializable ,Cloneable {
return
new
KylinPerformanceRelations
();
return
new
KylinPerformanceRelations
();
}
}
}
}
public
Object
[]
insert
(
KylinPerformanceRelations
vo
)
{
return
new
Object
[]{
vo
.
getPerformanceRelationsId
(),
vo
.
getPerformanceId
(),
vo
.
getCopyId
()==
null
?
""
:
vo
.
getCopyId
(),
vo
.
getMerchantId
(),
vo
.
getFieldId
(),
vo
.
getRoadShowId
(),
vo
.
getProjectId
(),
""
,
vo
.
getCreatedAt
(),
vo
.
getUpdatedAt
()
};
}
}
}
liquidnet-bus-do/liquidnet-service-kylin-do/src/main/java/com/liquidnet/service/kylin/entity/KylinPerformanceStatus.java
View file @
0b6d2418
...
@@ -157,4 +157,14 @@ public class KylinPerformanceStatus implements Serializable ,Cloneable{
...
@@ -157,4 +157,14 @@ public class KylinPerformanceStatus implements Serializable ,Cloneable{
return
new
KylinPerformanceStatus
();
return
new
KylinPerformanceStatus
();
}
}
}
}
public
Object
[]
insert
(
KylinPerformanceStatus
vo
){
return
new
Object
[]{
vo
.
getPerformanceStatusId
(),
vo
.
getPerformanceId
(),
vo
.
getIsShow
(),
vo
.
getStatus
(),
vo
.
getStatusSell
(),
vo
.
getIsDistribution
(),
vo
.
getSyncAgent
(),
0
,
vo
.
getAuditStatus
(),
vo
.
getIsTrueName
(),
vo
.
getLimitCount
(),
vo
.
getLimitCountMember
(),
vo
.
getCreatedAt
(),
vo
.
getUpdatedAt
()
};
}
}
}
liquidnet-bus-do/liquidnet-service-kylin-do/src/main/java/com/liquidnet/service/kylin/entity/KylinPerformances.java
View file @
0b6d2418
...
@@ -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
;
...
@@ -17,7 +19,7 @@ import lombok.EqualsAndHashCode;
...
@@ -17,7 +19,7 @@ import lombok.EqualsAndHashCode;
*/
*/
@Data
@Data
@EqualsAndHashCode
(
callSuper
=
false
)
@EqualsAndHashCode
(
callSuper
=
false
)
public
class
KylinPerformances
implements
Serializable
,
Cloneable
{
public
class
KylinPerformances
implements
Serializable
,
Cloneable
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
@@ -165,6 +167,7 @@ public class KylinPerformances implements Serializable ,Cloneable{
...
@@ -165,6 +167,7 @@ public class KylinPerformances implements Serializable ,Cloneable{
private
LocalDateTime
updatedAt
;
private
LocalDateTime
updatedAt
;
private
static
final
KylinPerformances
obj
=
new
KylinPerformances
();
private
static
final
KylinPerformances
obj
=
new
KylinPerformances
();
public
static
KylinPerformances
getNew
()
{
public
static
KylinPerformances
getNew
()
{
try
{
try
{
return
(
KylinPerformances
)
obj
.
clone
();
return
(
KylinPerformances
)
obj
.
clone
();
...
@@ -172,4 +175,37 @@ public class KylinPerformances implements Serializable ,Cloneable{
...
@@ -172,4 +175,37 @@ public class KylinPerformances implements Serializable ,Cloneable{
return
new
KylinPerformances
();
return
new
KylinPerformances
();
}
}
}
}
public
Object
[]
insert
(
KylinPerformances
vo
)
{
return
new
Object
[]{
vo
.
getPerformancesId
(),
vo
.
getTitle
(),
vo
.
getType
(),
vo
.
getImgPoster
(),
// vo.getProvinceId(),
// vo.getProvinceName(),
vo
.
getCityId
(),
vo
.
getCityName
(),
// vo.getDistrictId(),
// vo.getDistrictName(),
vo
.
getApprovalUrl
(),
vo
.
getNotice
(),
vo
.
getSponsorId
(),
vo
.
getSponsorType
(),
vo
.
getSponsor
(),
vo
.
getContacts
(),
vo
.
getMobile
(),
vo
.
getDescribes
(),
vo
.
getDetails
(),
vo
.
getNoticeImage
(),
vo
.
getTimeStart
(),
vo
.
getTimeEnd
(),
// vo.getAuditTime(),
// vo.getRejectTxt(),
0
,
vo
.
getComment
(),
vo
.
getCreatedAt
(),
vo
.
getUpdatedAt
(),
};
}
}
}
liquidnet-bus-do/liquidnet-service-kylin-do/src/main/java/com/liquidnet/service/kylin/entity/KylinTicketRelations.java
View file @
0b6d2418
...
@@ -57,4 +57,11 @@ public class KylinTicketRelations implements Serializable ,Cloneable {
...
@@ -57,4 +57,11 @@ public class KylinTicketRelations implements Serializable ,Cloneable {
return
new
KylinTicketRelations
();
return
new
KylinTicketRelations
();
}
}
}
}
public
Object
[]
insert
(
KylinTicketRelations
vo
)
{
return
new
Object
[]{
vo
.
getTicketRelationsId
(),
vo
.
getTicketId
(),
vo
.
getTimesId
(),
vo
.
getCreatedAt
(),
vo
.
getUpdatedAt
()
};
}
}
}
liquidnet-bus-do/liquidnet-service-kylin-do/src/main/java/com/liquidnet/service/kylin/entity/KylinTicketStatus.java
View file @
0b6d2418
...
@@ -162,4 +162,18 @@ public class KylinTicketStatus implements Serializable ,Cloneable {
...
@@ -162,4 +162,18 @@ public class KylinTicketStatus implements Serializable ,Cloneable {
return
new
KylinTicketStatus
();
return
new
KylinTicketStatus
();
}
}
}
}
public
Object
[]
insert
(
KylinTicketStatus
vo
)
{
return
new
Object
[]{
vo
.
getTicketStatusId
(),
vo
.
getTicketId
(),
vo
.
getIsStudent
(),
vo
.
getIsElectronic
(),
vo
.
getIsExpress
(),
vo
.
getStatus
(),
vo
.
getCounts
(),
vo
.
getStatusExchange
(),
vo
.
getIsShowCode
(),
vo
.
getQrCodeShowTime
(),
vo
.
getIsLackRegister
(),
vo
.
getTotalGeneral
(),
vo
.
getTotalExchange
(),
vo
.
getSurplusGeneral
(),
vo
.
getSurplusExchange
(),
vo
.
getExpressType
(),
vo
.
getIsTransfer
(),
vo
.
getIsTrueName
(),
vo
.
getLimitCount
(),
vo
.
getMemberLimitCount
(),
vo
.
getIsExclusive
(),
vo
.
getIsMember
(),
0
,
0
,
vo
.
getCreatedAt
(),
vo
.
getUpdatedAt
()
};
}
}
}
liquidnet-bus-do/liquidnet-service-kylin-do/src/main/java/com/liquidnet/service/kylin/entity/KylinTicketTimeRelation.java
View file @
0b6d2418
...
@@ -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
;
...
@@ -17,7 +19,7 @@ import lombok.EqualsAndHashCode;
...
@@ -17,7 +19,7 @@ import lombok.EqualsAndHashCode;
*/
*/
@Data
@Data
@EqualsAndHashCode
(
callSuper
=
false
)
@EqualsAndHashCode
(
callSuper
=
false
)
public
class
KylinTicketTimeRelation
implements
Serializable
,
Cloneable
{
public
class
KylinTicketTimeRelation
implements
Serializable
,
Cloneable
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
@@ -50,6 +52,7 @@ public class KylinTicketTimeRelation implements Serializable ,Cloneable {
...
@@ -50,6 +52,7 @@ public class KylinTicketTimeRelation implements Serializable ,Cloneable {
private
LocalDateTime
updatedAt
;
private
LocalDateTime
updatedAt
;
private
static
final
KylinTicketTimeRelation
obj
=
new
KylinTicketTimeRelation
();
private
static
final
KylinTicketTimeRelation
obj
=
new
KylinTicketTimeRelation
();
public
static
KylinTicketTimeRelation
getNew
()
{
public
static
KylinTicketTimeRelation
getNew
()
{
try
{
try
{
return
(
KylinTicketTimeRelation
)
obj
.
clone
();
return
(
KylinTicketTimeRelation
)
obj
.
clone
();
...
@@ -57,4 +60,11 @@ public class KylinTicketTimeRelation implements Serializable ,Cloneable {
...
@@ -57,4 +60,11 @@ public class KylinTicketTimeRelation implements Serializable ,Cloneable {
return
new
KylinTicketTimeRelation
();
return
new
KylinTicketTimeRelation
();
}
}
}
}
public
Object
[]
insert
(
KylinTicketTimeRelation
vo
)
{
return
new
Object
[]{
vo
.
getTicketTimeRelationId
(),
vo
.
getTimesId
(),
vo
.
getPerformanceId
(),
vo
.
getCreatedAt
(),
vo
.
getUpdatedAt
()
};
}
}
}
liquidnet-bus-do/liquidnet-service-kylin-do/src/main/java/com/liquidnet/service/kylin/entity/KylinTicketTimes.java
View file @
0b6d2418
...
@@ -77,4 +77,12 @@ public class KylinTicketTimes implements Serializable ,Cloneable {
...
@@ -77,4 +77,12 @@ public class KylinTicketTimes implements Serializable ,Cloneable {
return
new
KylinTicketTimes
();
return
new
KylinTicketTimes
();
}
}
}
}
public
Object
[]
insert
(
KylinTicketTimes
vo
){
return
new
Object
[]{
vo
.
getTicketTimesId
(),
vo
.
getTitle
(),
vo
.
getStatus
(),
vo
.
getType
(),
vo
.
getUseStart
(),
vo
.
getUseEnd
(),
vo
.
getComment
(),
vo
.
getCreatedAt
(),
vo
.
getUpdatedAt
()
};
}
}
}
liquidnet-bus-do/liquidnet-service-kylin-do/src/main/java/com/liquidnet/service/kylin/entity/KylinTickets.java
View file @
0b6d2418
...
@@ -138,4 +138,17 @@ public class KylinTickets implements Serializable ,Cloneable{
...
@@ -138,4 +138,17 @@ public class KylinTickets implements Serializable ,Cloneable{
return
new
KylinTickets
();
return
new
KylinTickets
();
}
}
}
}
public
Object
[]
insert
(
KylinTickets
vo
)
{
return
new
Object
[]{
vo
.
getTicketsId
(),
vo
.
getTitle
(),
vo
.
getType
(),
vo
.
getPrice
(),
vo
.
getPriceExpress
(),
vo
.
getPriceDiscountMember
(),
vo
.
getPriceDiscount
(),
vo
.
getDescribes
(),
vo
.
getDescribeExpress
(),
vo
.
getDescribeElectronic
(),
vo
.
getAdvanceMinuteMember
(),
vo
.
getTimeStart
(),
vo
.
getTimeEnd
(),
vo
.
getTimeEndExpress
(),
vo
.
getUseStart
(),
vo
.
getUseEnd
(),
vo
.
getPayCountdownMinute
(),
vo
.
getSaleRemindMinute
(),
vo
.
getComment
(),
vo
.
getCreatedAt
(),
vo
.
getUpdatedAt
()
};
}
}
}
liquidnet-bus-service/liquidnet-service-merchant/liquidnet-service-merchant-impl/src/main/java/com/liquidnet/service/merchant/service/impl/KylinPerformancesPartnerServiceImpl.java
View file @
0b6d2418
...
@@ -152,7 +152,7 @@ public class KylinPerformancesPartnerServiceImpl implements IKylinPerformancesPa
...
@@ -152,7 +152,7 @@ public class KylinPerformancesPartnerServiceImpl implements IKylinPerformancesPa
performancePartnerVo
.
setProjectId
(
data
.
getProjectId
());
performancePartnerVo
.
setProjectId
(
data
.
getProjectId
());
mongoMerchantUtils
.
updatePerformancePartnerVoById
(
performancePartnerVo
);
mongoMerchantUtils
.
updatePerformancePartnerVoById
(
performancePartnerVo
);
}
else
{
// 无修改记录
}
else
{
// 无修改记录
KylinPerformanceVo
vo
=
redisMerchantUtils
.
getPerformanceVo
(
performanceId
);
KylinPerformanceVo
vo
=
redisMerchantUtils
.
getPerformanceVo
(
performanceId
,
step1Param
.
getMerchantId
()
);
performancePartnerVo
.
setIsTrueName
(
vo
.
getIsTrueName
());
performancePartnerVo
.
setIsTrueName
(
vo
.
getIsTrueName
());
performancePartnerVo
.
setLimitCount
(
vo
.
getLimitCount
());
performancePartnerVo
.
setLimitCount
(
vo
.
getLimitCount
());
performancePartnerVo
.
setStatusSell
(
vo
.
getStatusSell
());
performancePartnerVo
.
setStatusSell
(
vo
.
getStatusSell
());
...
@@ -175,7 +175,7 @@ public class KylinPerformancesPartnerServiceImpl implements IKylinPerformancesPa
...
@@ -175,7 +175,7 @@ public class KylinPerformancesPartnerServiceImpl implements IKylinPerformancesPa
if
(
data
==
null
)
{
if
(
data
==
null
)
{
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
20104
));
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
20104
));
}
}
KylinPerformanceVo
vo
=
redisMerchantUtils
.
getPerformanceVo
(
data
.
getPerformancesId
());
KylinPerformanceVo
vo
=
redisMerchantUtils
.
getPerformanceVo
(
data
.
getPerformancesId
()
,
merchantId
);
if
(
null
!=
vo
)
{
if
(
null
!=
vo
)
{
data
.
setStatus
(
vo
.
getAppStatus
());
data
.
setStatus
(
vo
.
getAppStatus
());
}
}
...
@@ -189,7 +189,7 @@ public class KylinPerformancesPartnerServiceImpl implements IKylinPerformancesPa
...
@@ -189,7 +189,7 @@ public class KylinPerformancesPartnerServiceImpl implements IKylinPerformancesPa
step2Param
.
setMerchantId
(
CurrentUtil
.
getCurrentUid
());
step2Param
.
setMerchantId
(
CurrentUtil
.
getCurrentUid
());
// 无 performancesId 则 创建
// 无 performancesId 则 创建
if
(!
step2Param
.
getPerformancesId
().
isEmpty
())
{
// 获取 create 数据 status = 0 或 无数据 创建
if
(!
step2Param
.
getPerformancesId
().
isEmpty
())
{
// 获取 create 数据 status = 0 或 无数据 创建
KylinPerformanceVo
vo
=
redisMerchantUtils
.
getPerformanceVo
(
step2Param
.
getPerformancesId
());
KylinPerformanceVo
vo
=
redisMerchantUtils
.
getPerformanceVo
(
step2Param
.
getPerformancesId
()
,
step2Param
.
getMerchantId
()
);
if
(
vo
==
null
||
vo
.
getAppStatus
()
==
0
||
vo
.
getAppStatus
()
==
4
)
{
if
(
vo
==
null
||
vo
.
getAppStatus
()
==
0
||
vo
.
getAppStatus
()
==
4
)
{
result
=
createStep2
(
step2Param
);
result
=
createStep2
(
step2Param
);
log
.
info
(
UserPathDto
.
setPartnerData
(
"0"
,
"createStep2"
,
step2Param
,
result
));
log
.
info
(
UserPathDto
.
setPartnerData
(
"0"
,
"createStep2"
,
step2Param
,
result
));
...
@@ -341,7 +341,7 @@ public class KylinPerformancesPartnerServiceImpl implements IKylinPerformancesPa
...
@@ -341,7 +341,7 @@ public class KylinPerformancesPartnerServiceImpl implements IKylinPerformancesPa
for
(
KylinTicketPartnerVo
ticketItem
:
ticketList
)
{
for
(
KylinTicketPartnerVo
ticketItem
:
ticketList
)
{
//修改 redis库存
//修改 redis库存
if
(
redisMerchantUtils
.
hasKey
(
KylinRedisConst
.
PERFORMANCES_INVENTORY
+
ticketItem
.
getTicketsId
()
+
":"
+
KylinRedisConst
.
SURPLUS_GENERAL
))
{
if
(
redisMerchantUtils
.
hasKey
(
KylinRedisConst
.
PERFORMANCES_INVENTORY
+
ticketItem
.
getTicketsId
()
+
":"
+
KylinRedisConst
.
SURPLUS_GENERAL
))
{
KylinPerformanceVo
vo
=
redisMerchantUtils
.
getPerformanceVo
(
performanceId
);
KylinPerformanceVo
vo
=
redisMerchantUtils
.
getPerformanceVo
(
performanceId
,
merchantId
);
KylinTicketTimesVo
ticketTimesData
=
null
;
KylinTicketTimesVo
ticketTimesData
=
null
;
KylinTicketVo
ticketData
=
null
;
KylinTicketVo
ticketData
=
null
;
for
(
int
x
=
0
;
x
<
vo
.
getTicketTimeList
().
size
();
x
++)
{
for
(
int
x
=
0
;
x
<
vo
.
getTicketTimeList
().
size
();
x
++)
{
...
@@ -412,7 +412,7 @@ public class KylinPerformancesPartnerServiceImpl implements IKylinPerformancesPa
...
@@ -412,7 +412,7 @@ public class KylinPerformancesPartnerServiceImpl implements IKylinPerformancesPa
}
}
PerformanceStep2Param
performanceStep2Param
=
PerformanceStep2Param
.
getNew
();
PerformanceStep2Param
performanceStep2Param
=
PerformanceStep2Param
.
getNew
();
BeanUtils
.
copyProperties
(
data
,
performanceStep2Param
);
BeanUtils
.
copyProperties
(
data
,
performanceStep2Param
);
KylinPerformanceVo
vo
=
mongo
MerchantUtils
.
getPerformanceVo
(
performancesId
,
merchantId
);
KylinPerformanceVo
vo
=
redis
MerchantUtils
.
getPerformanceVo
(
performancesId
,
merchantId
);
if
(
null
!=
vo
)
{
if
(
null
!=
vo
)
{
performanceStep2Param
.
setStatus
(
vo
.
getAppStatus
());
performanceStep2Param
.
setStatus
(
vo
.
getAppStatus
());
}
else
{
}
else
{
...
@@ -434,7 +434,7 @@ public class KylinPerformancesPartnerServiceImpl implements IKylinPerformancesPa
...
@@ -434,7 +434,7 @@ public class KylinPerformancesPartnerServiceImpl implements IKylinPerformancesPa
LinkedList
<
Object
[]>
sqlsDataA
=
CollectionUtil
.
linkedListObjectArr
();
LinkedList
<
Object
[]>
sqlsDataA
=
CollectionUtil
.
linkedListObjectArr
();
LinkedList
<
Object
[]>
sqlsDataB
=
CollectionUtil
.
linkedListObjectArr
();
LinkedList
<
Object
[]>
sqlsDataB
=
CollectionUtil
.
linkedListObjectArr
();
KylinPerformanceVo
vo
=
mongo
MerchantUtils
.
getPerformanceVo
(
performancesId
,
merchantId
);
KylinPerformanceVo
vo
=
redis
MerchantUtils
.
getPerformanceVo
(
performancesId
,
merchantId
);
if
(!(
vo
.
getAppStatus
()
==
3
||
vo
.
getAppStatus
()
==
7
))
{
if
(!(
vo
.
getAppStatus
()
==
3
||
vo
.
getAppStatus
()
==
7
))
{
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
20110
));
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
20110
));
}
}
...
@@ -476,7 +476,7 @@ public class KylinPerformancesPartnerServiceImpl implements IKylinPerformancesPa
...
@@ -476,7 +476,7 @@ public class KylinPerformancesPartnerServiceImpl implements IKylinPerformancesPa
public
ResponseDto
<
String
>
outLinePerformance
(
String
performancesId
)
{
public
ResponseDto
<
String
>
outLinePerformance
(
String
performancesId
)
{
try
{
try
{
String
merchantId
=
CurrentUtil
.
getCurrentUid
();
String
merchantId
=
CurrentUtil
.
getCurrentUid
();
KylinPerformanceVo
vo
=
mongo
MerchantUtils
.
getPerformanceVo
(
performancesId
,
merchantId
);
KylinPerformanceVo
vo
=
redis
MerchantUtils
.
getPerformanceVo
(
performancesId
,
merchantId
);
if
(
vo
.
getAppStatus
()
>=
3
&&
vo
.
getAppStatus
()
!=
4
&&
vo
.
getAppStatus
()
!=
7
)
{
//未提审||被拒绝 && performanceStatusData.getStatus() != 10
if
(
vo
.
getAppStatus
()
>=
3
&&
vo
.
getAppStatus
()
!=
4
&&
vo
.
getAppStatus
()
!=
7
)
{
//未提审||被拒绝 && performanceStatusData.getStatus() != 10
LocalDateTime
updatedAt
=
LocalDateTime
.
now
();
LocalDateTime
updatedAt
=
LocalDateTime
.
now
();
queueUtil
.
sendMsgByRedis
(
MQConst
.
MerchantQueue
.
SQL_MERCHANT_LINE
.
getKey
(),
queueUtil
.
sendMsgByRedis
(
MQConst
.
MerchantQueue
.
SQL_MERCHANT_LINE
.
getKey
(),
...
@@ -594,7 +594,7 @@ public class KylinPerformancesPartnerServiceImpl implements IKylinPerformancesPa
...
@@ -594,7 +594,7 @@ public class KylinPerformancesPartnerServiceImpl implements IKylinPerformancesPa
public
ResponseDto
<
String
>
withdraw
(
String
performancesId
)
{
public
ResponseDto
<
String
>
withdraw
(
String
performancesId
)
{
try
{
try
{
String
merchantId
=
CurrentUtil
.
getCurrentUid
();
String
merchantId
=
CurrentUtil
.
getCurrentUid
();
KylinPerformanceVo
vo
=
mongo
MerchantUtils
.
getPerformanceVo
(
performancesId
,
merchantId
);
KylinPerformanceVo
vo
=
redis
MerchantUtils
.
getPerformanceVo
(
performancesId
,
merchantId
);
if
(
vo
!=
null
&&
vo
.
getAuditStatus
()
==
0
)
{
if
(
vo
!=
null
&&
vo
.
getAuditStatus
()
==
0
)
{
PerformancePartnerVo
performancePartnerVo
=
PerformancePartnerVo
.
getNew
();
PerformancePartnerVo
performancePartnerVo
=
PerformancePartnerVo
.
getNew
();
performancePartnerVo
.
setPerformancesId
(
performancesId
);
performancePartnerVo
.
setPerformancesId
(
performancesId
);
...
...
liquidnet-bus-service/liquidnet-service-merchant/liquidnet-service-merchant-impl/src/main/java/com/liquidnet/service/merchant/service/impl/KylinTicketTimesPartnerServiceImpl.java
View file @
0b6d2418
...
@@ -158,7 +158,7 @@ public class KylinTicketTimesPartnerServiceImpl implements IKylinTicketTimesPart
...
@@ -158,7 +158,7 @@ public class KylinTicketTimesPartnerServiceImpl implements IKylinTicketTimesPart
if
(
data
.
getStatus
()
==
0
)
{
if
(
data
.
getStatus
()
==
0
)
{
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
20106
));
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
20106
));
}
}
KylinPerformanceVo
vo
=
mongo
MerchantUtils
.
getPerformanceVo
(
performanceId
,
merchantId
);
KylinPerformanceVo
vo
=
redis
MerchantUtils
.
getPerformanceVo
(
performanceId
,
merchantId
);
KylinTicketTimesVo
ticketTimesData
=
null
;
KylinTicketTimesVo
ticketTimesData
=
null
;
for
(
int
x
=
0
;
x
<
vo
.
getTicketTimeList
().
size
();
x
++)
{
for
(
int
x
=
0
;
x
<
vo
.
getTicketTimeList
().
size
();
x
++)
{
ticketTimesData
=
vo
.
getTicketTimeList
().
get
(
x
);
ticketTimesData
=
vo
.
getTicketTimeList
().
get
(
x
);
...
...
liquidnet-bus-service/liquidnet-service-merchant/liquidnet-service-merchant-impl/src/main/java/com/liquidnet/service/merchant/service/impl/KylinTicketsPartnerServiceImpl.java
View file @
0b6d2418
...
@@ -232,7 +232,7 @@ public class KylinTicketsPartnerServiceImpl implements IKylinTicketsPartnerServi
...
@@ -232,7 +232,7 @@ public class KylinTicketsPartnerServiceImpl implements IKylinTicketsPartnerServi
try
{
try
{
String
merchantId
=
CurrentUtil
.
getCurrentUid
();
String
merchantId
=
CurrentUtil
.
getCurrentUid
();
LocalDateTime
updatedAt
=
LocalDateTime
.
now
();
LocalDateTime
updatedAt
=
LocalDateTime
.
now
();
KylinPerformanceVo
vo
=
mongo
MerchantUtils
.
getPerformanceVo
(
performanceId
,
merchantId
);
KylinPerformanceVo
vo
=
redis
MerchantUtils
.
getPerformanceVo
(
performanceId
,
merchantId
);
KylinTicketTimesVo
ticketTimesData
;
KylinTicketTimesVo
ticketTimesData
;
KylinTicketVo
ticketData
=
null
;
KylinTicketVo
ticketData
=
null
;
for
(
int
x
=
0
;
x
<
vo
.
getTicketTimeList
().
size
();
x
++)
{
for
(
int
x
=
0
;
x
<
vo
.
getTicketTimeList
().
size
();
x
++)
{
...
@@ -328,7 +328,7 @@ public class KylinTicketsPartnerServiceImpl implements IKylinTicketsPartnerServi
...
@@ -328,7 +328,7 @@ public class KylinTicketsPartnerServiceImpl implements IKylinTicketsPartnerServi
try
{
try
{
LocalDateTime
updatedAt
=
LocalDateTime
.
now
();
LocalDateTime
updatedAt
=
LocalDateTime
.
now
();
String
merchantId
=
CurrentUtil
.
getCurrentUid
();
String
merchantId
=
CurrentUtil
.
getCurrentUid
();
KylinPerformanceVo
vo
=
mongo
MerchantUtils
.
getPerformanceVo
(
performancesId
,
merchantId
);
KylinPerformanceVo
vo
=
redis
MerchantUtils
.
getPerformanceVo
(
performancesId
,
merchantId
);
KylinTicketTimesVo
ticketTimesData
;
KylinTicketTimesVo
ticketTimesData
;
KylinTicketVo
ticketData
=
null
;
KylinTicketVo
ticketData
=
null
;
for
(
int
x
=
0
;
x
<
vo
.
getTicketTimeList
().
size
();
x
++)
{
for
(
int
x
=
0
;
x
<
vo
.
getTicketTimeList
().
size
();
x
++)
{
...
@@ -372,7 +372,7 @@ public class KylinTicketsPartnerServiceImpl implements IKylinTicketsPartnerServi
...
@@ -372,7 +372,7 @@ public class KylinTicketsPartnerServiceImpl implements IKylinTicketsPartnerServi
try
{
try
{
LocalDateTime
updatedAt
=
LocalDateTime
.
now
();
LocalDateTime
updatedAt
=
LocalDateTime
.
now
();
String
merchantId
=
CurrentUtil
.
getCurrentUid
();
String
merchantId
=
CurrentUtil
.
getCurrentUid
();
KylinPerformanceVo
vo
=
mongo
MerchantUtils
.
getPerformanceVo
(
performancesId
,
merchantId
);
KylinPerformanceVo
vo
=
redis
MerchantUtils
.
getPerformanceVo
(
performancesId
,
merchantId
);
KylinTicketTimesVo
ticketTimesData
;
KylinTicketTimesVo
ticketTimesData
;
KylinTicketVo
ticketData
=
null
;
KylinTicketVo
ticketData
=
null
;
for
(
int
x
=
0
;
x
<
vo
.
getTicketTimeList
().
size
();
x
++)
{
for
(
int
x
=
0
;
x
<
vo
.
getTicketTimeList
().
size
();
x
++)
{
...
...
liquidnet-bus-service/liquidnet-service-merchant/liquidnet-service-merchant-impl/src/main/java/com/liquidnet/service/merchant/util/MongoMerchantUtils.java
View file @
0b6d2418
...
@@ -41,6 +41,10 @@ public class MongoMerchantUtils {
...
@@ -41,6 +41,10 @@ public class MongoMerchantUtils {
return
mongoTemplate
.
findOne
(
Query
.
query
(
Criteria
.
where
(
"performancesId"
).
is
(
performanceId
).
and
(
"merchantId"
).
is
(
merchantId
)),
PerformancePartnerVo
.
class
,
PerformancePartnerVo
.
class
.
getSimpleName
());
return
mongoTemplate
.
findOne
(
Query
.
query
(
Criteria
.
where
(
"performancesId"
).
is
(
performanceId
).
and
(
"merchantId"
).
is
(
merchantId
)),
PerformancePartnerVo
.
class
,
PerformancePartnerVo
.
class
.
getSimpleName
());
}
}
public
PerformancePartnerVo
getPerformancePartnerVoNoMerchant
(
String
performanceId
)
{
return
mongoTemplate
.
findOne
(
Query
.
query
(
Criteria
.
where
(
"performancesId"
).
is
(
performanceId
)),
PerformancePartnerVo
.
class
,
PerformancePartnerVo
.
class
.
getSimpleName
());
}
public
long
getPerformancePartnerCount
(
Query
query
)
{
public
long
getPerformancePartnerCount
(
Query
query
)
{
return
mongoTemplate
.
count
(
query
,
PerformancePartnerVo
.
class
,
PerformancePartnerVo
.
class
.
getSimpleName
());
return
mongoTemplate
.
count
(
query
,
PerformancePartnerVo
.
class
,
PerformancePartnerVo
.
class
.
getSimpleName
());
}
}
...
...
liquidnet-bus-service/liquidnet-service-merchant/liquidnet-service-merchant-impl/src/main/java/com/liquidnet/service/merchant/util/PerformanceUtils.java
View file @
0b6d2418
...
@@ -169,7 +169,7 @@ public class PerformanceUtils {
...
@@ -169,7 +169,7 @@ public class PerformanceUtils {
*/
*/
public
KylinPerformanceMisVo
getPerformanceMisVo
(
String
performancesId
)
{
public
KylinPerformanceMisVo
getPerformanceMisVo
(
String
performancesId
)
{
try
{
try
{
PerformancePartnerVo
performanceData
=
mongoMerchantUtils
.
getPerformancePartnerVo
(
performancesId
);
PerformancePartnerVo
performanceData
=
mongoMerchantUtils
.
getPerformancePartnerVo
NoMerchant
(
performancesId
);
List
<
KylinTicketTimesPartnerVo
>
kylinTicketTimesPartnerVos
=
ticketTimesPartnerService
.
getTimesMongoList
(
performancesId
);
List
<
KylinTicketTimesPartnerVo
>
kylinTicketTimesPartnerVos
=
ticketTimesPartnerService
.
getTimesMongoList
(
performancesId
);
List
<
TicketTimesTicketCreatePartnerVo
>
ticketTimesTicketCreatePartnerVoList
=
new
ArrayList
<
TicketTimesTicketCreatePartnerVo
>();
List
<
TicketTimesTicketCreatePartnerVo
>
ticketTimesTicketCreatePartnerVoList
=
new
ArrayList
<
TicketTimesTicketCreatePartnerVo
>();
...
@@ -221,20 +221,20 @@ public class PerformanceUtils {
...
@@ -221,20 +221,20 @@ public class PerformanceUtils {
try
{
try
{
LinkedList
<
String
>
sqls
=
CollectionUtil
.
linkedListString
();
LinkedList
<
String
>
sqls
=
CollectionUtil
.
linkedListString
();
sqls
.
add
(
SqlMapping
.
get
(
"kylin_performances.del"
));
sqls
.
add
(
SqlMapping
.
get
(
"kylin_performances.del"
));
sqls
.
add
(
SqlMapping
.
get
(
"kylin_performance_status.del"
));
sqls
.
add
(
SqlMapping
.
get
(
"kylin_performance_relations.del"
));
sqls
.
add
(
SqlMapping
.
get
(
"kylin_performances.insert"
));
sqls
.
add
(
SqlMapping
.
get
(
"kylin_performances.insert"
));
sqls
.
add
(
SqlMapping
.
get
(
"kylin_performance_status.del"
));
sqls
.
add
(
SqlMapping
.
get
(
"kylin_performance_status.insert"
));
sqls
.
add
(
SqlMapping
.
get
(
"kylin_performance_status.insert"
));
sqls
.
add
(
SqlMapping
.
get
(
"kylin_performance_relations.del"
));
sqls
.
add
(
SqlMapping
.
get
(
"kylin_performance_relations.insert"
));
sqls
.
add
(
SqlMapping
.
get
(
"kylin_performance_relations.insert"
));
sqls
.
add
(
SqlMapping
.
get
(
"kylin_ticket_times.del"
));
sqls
.
add
(
SqlMapping
.
get
(
"kylin_ticket_times.del"
));
sqls
.
add
(
SqlMapping
.
get
(
"kylin_ticket_time_relation.del"
));
sqls
.
add
(
SqlMapping
.
get
(
"kylin_ticket_times.insert"
));
sqls
.
add
(
SqlMapping
.
get
(
"kylin_ticket_times.insert"
));
sqls
.
add
(
SqlMapping
.
get
(
"kylin_ticket_time_relation.del"
));
sqls
.
add
(
SqlMapping
.
get
(
"kylin_ticket_time_relation.insert"
));
sqls
.
add
(
SqlMapping
.
get
(
"kylin_ticket_time_relation.insert"
));
sqls
.
add
(
SqlMapping
.
get
(
"kylin_tickets.del"
));
sqls
.
add
(
SqlMapping
.
get
(
"kylin_tickets.del"
));
sqls
.
add
(
SqlMapping
.
get
(
"kylin_ticket_status.del"
));
sqls
.
add
(
SqlMapping
.
get
(
"kylin_ticket_relations.del"
));
sqls
.
add
(
SqlMapping
.
get
(
"kylin_tickets.insert"
));
sqls
.
add
(
SqlMapping
.
get
(
"kylin_tickets.insert"
));
sqls
.
add
(
SqlMapping
.
get
(
"kylin_ticket_status.del"
));
sqls
.
add
(
SqlMapping
.
get
(
"kylin_ticket_status.insert"
));
sqls
.
add
(
SqlMapping
.
get
(
"kylin_ticket_status.insert"
));
sqls
.
add
(
SqlMapping
.
get
(
"kylin_ticket_relations.del"
));
sqls
.
add
(
SqlMapping
.
get
(
"kylin_ticket_relations.insert"
));
sqls
.
add
(
SqlMapping
.
get
(
"kylin_ticket_relations.insert"
));
LinkedList
<
Object
[]>
del1
=
CollectionUtil
.
linkedListObjectArr
();
LinkedList
<
Object
[]>
del1
=
CollectionUtil
.
linkedListObjectArr
();
...
@@ -285,18 +285,11 @@ public class PerformanceUtils {
...
@@ -285,18 +285,11 @@ public class PerformanceUtils {
performanceRelations
.
setUpdatedAt
(
updatedAt
);
performanceRelations
.
setUpdatedAt
(
updatedAt
);
del1
.
add
(
new
Object
[]{
performances
.
getPerformancesId
()});
del1
.
add
(
new
Object
[]{
performances
.
getPerformancesId
()});
Object
[]
obj_array1
=
BeanUtil
.
convertBeanToMap
(
performances
).
values
().
toArray
();
insert1
.
add
(
performances
.
insert
(
performances
));
insert1
.
add
(
obj_array1
);
log
.
debug
(
"performance:"
+
obj_array1
.
toString
());
del2
.
add
(
new
Object
[]{
performances
.
getPerformancesId
()});
del2
.
add
(
new
Object
[]{
performances
.
getPerformancesId
()});
Object
[]
obj_array2
=
BeanUtil
.
convertBeanToMap
(
performanceStatus
).
values
().
toArray
();
insert2
.
add
(
performanceStatus
.
insert
(
performanceStatus
));
insert2
.
add
(
obj_array2
);
log
.
debug
(
"performanceStatus:"
+
obj_array2
.
toString
());
del3
.
add
(
new
Object
[]{
performances
.
getPerformancesId
()});
del3
.
add
(
new
Object
[]{
performances
.
getPerformancesId
()});
Object
[]
obj_array3
=
BeanUtil
.
convertBeanToMap
(
performanceRelations
).
values
().
toArray
();
insert3
.
add
(
performanceRelations
.
insert
(
performanceRelations
));
insert3
.
add
(
obj_array3
);
//场次数据
//场次数据
List
<
KylinTicketTimesPartnerVo
>
kylinTicketTimesPartnerVos
=
ticketTimesPartnerService
.
getTimesMongoList
(
performancesId
);
List
<
KylinTicketTimesPartnerVo
>
kylinTicketTimesPartnerVos
=
ticketTimesPartnerService
.
getTimesMongoList
(
performancesId
);
...
@@ -319,12 +312,9 @@ public class PerformanceUtils {
...
@@ -319,12 +312,9 @@ public class PerformanceUtils {
ticketTimeRelation
.
setUpdatedAt
(
updatedAt
);
ticketTimeRelation
.
setUpdatedAt
(
updatedAt
);
del4
.
add
(
new
Object
[]{
ticketTimes
.
getTicketTimesId
()});
del4
.
add
(
new
Object
[]{
ticketTimes
.
getTicketTimesId
()});
Object
[]
obj_array4
=
BeanUtil
.
convertBeanToMap
(
ticketTimes
).
values
().
toArray
();
insert4
.
add
(
ticketTimes
.
insert
(
ticketTimes
));
insert4
.
add
(
obj_array4
);
del5
.
add
(
new
Object
[]{
ticketTimes
.
getTicketTimesId
()});
del5
.
add
(
new
Object
[]{
ticketTimes
.
getTicketTimesId
()});
Object
[]
obj_array5
=
BeanUtil
.
convertBeanToMap
(
ticketTimeRelation
).
values
().
toArray
();
insert5
.
add
(
ticketTimeRelation
.
insert
(
ticketTimeRelation
));
insert5
.
add
(
obj_array5
);
//修改票
//修改票
for
(
KylinTicketPartnerVo
ticketItem
:
ticketsPartnerService
.
getTicketMongoList
(
ticketTimeItem
.
getTicketTimesId
()))
{
for
(
KylinTicketPartnerVo
ticketItem
:
ticketsPartnerService
.
getTicketMongoList
(
ticketTimeItem
.
getTicketTimesId
()))
{
...
@@ -347,16 +337,22 @@ public class PerformanceUtils {
...
@@ -347,16 +337,22 @@ public class PerformanceUtils {
if
(
ticketItem
.
getIsExpress
()
==
1
)
{
if
(
ticketItem
.
getIsExpress
()
==
1
)
{
tickets
.
setTimeEndExpress
(
DateUtil
.
asLocalDateTime
(
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
).
parse
(
ticketItem
.
getTimeEndExpress
())));
tickets
.
setTimeEndExpress
(
DateUtil
.
asLocalDateTime
(
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
).
parse
(
ticketItem
.
getTimeEndExpress
())));
tickets
.
setDescribeExpress
(
ticketItem
.
getDescribeExpress
());
tickets
.
setDescribeExpress
(
ticketItem
.
getDescribeExpress
());
}
else
{
tickets
.
setTimeEndExpress
(
updatedAt
);
tickets
.
setDescribeExpress
(
""
);
}
}
if
(
ticketItem
.
getIsElectronic
()
==
1
)
{
if
(
ticketItem
.
getIsElectronic
()
==
1
)
{
tickets
.
setDescribeElectronic
(
ticketItem
.
getDescribeElectronic
());
tickets
.
setDescribeElectronic
(
ticketItem
.
getDescribeElectronic
());
}
else
{
tickets
.
setDescribeElectronic
(
""
);
}
}
tickets
.
setUseStart
(
DateUtil
.
asLocalDateTime
(
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
).
parse
(
ticketTimeItem
.
getUseStart
())));
tickets
.
setUseStart
(
DateUtil
.
asLocalDateTime
(
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
).
parse
(
ticketTimeItem
.
getUseStart
())));
tickets
.
setUseEnd
(
DateUtil
.
asLocalDateTime
(
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
).
parse
(
ticketTimeItem
.
getUseEnd
())));
tickets
.
setUseEnd
(
DateUtil
.
asLocalDateTime
(
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
).
parse
(
ticketTimeItem
.
getUseEnd
())));
tickets
.
setSaleRemindMinute
(
60
);
tickets
.
setSaleRemindMinute
(
60
);
tickets
.
setAdvanceMinuteMember
(
5
);
tickets
.
setCreatedAt
(
DateUtil
.
asLocalDateTime
(
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
).
parse
(
ticketItem
.
getCreatedAt
())));
tickets
.
setCreatedAt
(
DateUtil
.
asLocalDateTime
(
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
).
parse
(
ticketItem
.
getCreatedAt
())));
tickets
.
setUpdatedAt
(
updatedAt
);
tickets
.
setUpdatedAt
(
updatedAt
);
ticketStatus
.
setTicketStatusId
(
IDGenerator
.
nextSnowId
()
.
toString
()
);
ticketStatus
.
setTicketStatusId
(
IDGenerator
.
nextSnowId
());
ticketStatus
.
setTicketId
(
tickets
.
getTicketsId
());
ticketStatus
.
setTicketId
(
tickets
.
getTicketsId
());
ticketStatus
.
setIsMember
(
1
);
ticketStatus
.
setIsMember
(
1
);
ticketStatus
.
setIsExclusive
(
0
);
ticketStatus
.
setIsExclusive
(
0
);
...
@@ -365,6 +361,8 @@ public class PerformanceUtils {
...
@@ -365,6 +361,8 @@ public class PerformanceUtils {
ticketStatus
.
setStatusExchange
(
7
);
ticketStatus
.
setStatusExchange
(
7
);
if
(
ticketItem
.
getIsShowCode
()
==
1
)
{
if
(
ticketItem
.
getIsShowCode
()
==
1
)
{
ticketStatus
.
setQrCodeShowTime
(
DateUtil
.
asLocalDateTime
(
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
).
parse
(
ticketItem
.
getQrCodeShowTime
())));
ticketStatus
.
setQrCodeShowTime
(
DateUtil
.
asLocalDateTime
(
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
).
parse
(
ticketItem
.
getQrCodeShowTime
())));
}
else
{
ticketStatus
.
setQrCodeShowTime
(
updatedAt
);
}
}
ticketRelations
.
setCreatedAt
(
tickets
.
getCreatedAt
());
ticketRelations
.
setCreatedAt
(
tickets
.
getCreatedAt
());
...
@@ -375,24 +373,26 @@ public class PerformanceUtils {
...
@@ -375,24 +373,26 @@ public class PerformanceUtils {
ticketRelations
.
setUpdatedAt
(
updatedAt
);
ticketRelations
.
setUpdatedAt
(
updatedAt
);
del6
.
add
(
new
Object
[]{
tickets
.
getTicketsId
()});
del6
.
add
(
new
Object
[]{
tickets
.
getTicketsId
()});
Object
[]
obj_array6
=
BeanUtil
.
convertBeanToMap
(
tickets
).
values
().
toArray
();
insert6
.
add
(
tickets
.
insert
(
tickets
));
insert6
.
add
(
obj_array6
);
del7
.
add
(
new
Object
[]{
tickets
.
getTicketsId
()});
del7
.
add
(
new
Object
[]{
tickets
.
getTicketsId
()});
Object
[]
obj_array7
=
BeanUtil
.
convertBeanToMap
(
ticketStatus
).
values
().
toArray
();
insert7
.
add
(
ticketStatus
.
insert
(
ticketStatus
));
insert7
.
add
(
obj_array7
);
del8
.
add
(
new
Object
[]{
tickets
.
getTicketsId
()});
del8
.
add
(
new
Object
[]{
tickets
.
getTicketsId
()});
Object
[]
obj_array8
=
BeanUtil
.
convertBeanToMap
(
ticketRelations
).
values
().
toArray
();
insert8
.
add
(
ticketRelations
.
insert
(
ticketRelations
));
insert8
.
add
(
obj_array8
);
redisMerchantUtils
.
setSurplusExchange
(
tickets
.
getTicketsId
(),
ticketStatus
.
getSurplusExchange
());
redisMerchantUtils
.
setSurplusExchange
(
tickets
.
getTicketsId
(),
ticketStatus
.
getSurplusExchange
());
redisMerchantUtils
.
setSurplusGeneral
(
tickets
.
getTicketsId
(),
ticketStatus
.
getSurplusGeneral
());
redisMerchantUtils
.
setSurplusGeneral
(
tickets
.
getTicketsId
(),
ticketStatus
.
getSurplusGeneral
());
}
}
}
}
String
sqlData
=
SqlMapping
.
gets
(
sqls
,
String
sqlData
=
SqlMapping
.
gets
(
sqls
,
del1
,
del2
,
del3
,
del4
,
del5
,
del6
,
del7
,
del8
,
del1
,
insert1
,
insert1
,
insert2
,
insert3
,
insert4
,
insert5
,
insert6
,
insert7
,
insert8
);
del2
,
insert2
,
del3
,
insert3
,
del4
,
insert4
,
del5
,
insert5
,
del6
,
insert6
,
del7
,
insert7
,
del8
,
insert8
);
queueUtil
.
sendMsgByRedis
(
MQConst
.
MerchantQueue
.
SQL_MERCHANT_PERFORMANCE_INSERT
.
getKey
(),
queueUtil
.
sendMsgByRedis
(
MQConst
.
MerchantQueue
.
SQL_MERCHANT_PERFORMANCE_INSERT
.
getKey
(),
sqlData
);
sqlData
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
@@ -486,7 +486,7 @@ public class PerformanceUtils {
...
@@ -486,7 +486,7 @@ public class PerformanceUtils {
public
KylinPerformanceVo
combinePerformanceVoData
(
String
performancesId
)
{
public
KylinPerformanceVo
combinePerformanceVoData
(
String
performancesId
)
{
try
{
try
{
//演出数据
//演出数据
KylinPerformanceVo
vo
=
redisMerchantUtils
.
getPerformanceVo
(
performancesId
);
KylinPerformanceVo
vo
=
redisMerchantUtils
.
getPerformanceVo
NoMerchant
(
performancesId
);
//场地相关数据
//场地相关数据
KylinFields
fields
=
new
KylinFields
();
KylinFields
fields
=
new
KylinFields
();
MerchantFieldsVo
fieldsVo
=
redisMerchantUtils
.
getFieldVo
(
vo
.
getFieldId
());
MerchantFieldsVo
fieldsVo
=
redisMerchantUtils
.
getFieldVo
(
vo
.
getFieldId
());
...
...
liquidnet-bus-service/liquidnet-service-merchant/liquidnet-service-merchant-impl/src/main/java/com/liquidnet/service/merchant/util/RedisMerchantUtils.java
View file @
0b6d2418
...
@@ -52,12 +52,23 @@ public class RedisMerchantUtils {
...
@@ -52,12 +52,23 @@ public class RedisMerchantUtils {
* @param performanceId
* @param performanceId
* @return
* @return
*/
*/
public
KylinPerformanceVo
getPerformanceVo
(
String
performanceId
)
{
public
KylinPerformanceVo
getPerformanceVo
(
String
performanceId
,
String
merchantId
)
{
Object
obj
=
redisUtil
.
get
(
KylinRedisConst
.
PERFORMANCES
+
performanceId
);
Object
obj
=
redisUtil
.
get
(
KylinRedisConst
.
PERFORMANCES
+
performanceId
);
if
(
obj
!=
null
)
{
if
(
obj
!=
null
)
{
return
(
KylinPerformanceVo
)
obj
;
return
(
KylinPerformanceVo
)
obj
;
}
else
{
}
else
{
KylinPerformanceVo
performanceData
=
mongoMerchantUtils
.
getPerformanceVo
(
performanceId
);
KylinPerformanceVo
performanceData
=
mongoMerchantUtils
.
getPerformanceVo
(
performanceId
,
merchantId
);
redisUtil
.
set
(
KylinRedisConst
.
PERFORMANCES
+
performanceId
,
performanceData
);
return
performanceData
;
}
}
public
KylinPerformanceVo
getPerformanceVoNoMerchant
(
String
performanceId
)
{
Object
obj
=
redisUtil
.
get
(
KylinRedisConst
.
PERFORMANCES
+
performanceId
);
if
(
obj
!=
null
)
{
return
(
KylinPerformanceVo
)
obj
;
}
else
{
KylinPerformanceVo
performanceData
=
mongoMerchantUtils
.
getPerformanceVoNoMerchant
(
performanceId
);
redisUtil
.
set
(
KylinRedisConst
.
PERFORMANCES
+
performanceId
,
performanceData
);
redisUtil
.
set
(
KylinRedisConst
.
PERFORMANCES
+
performanceId
,
performanceData
);
return
performanceData
;
return
performanceData
;
}
}
...
...
liquidnet-bus-service/liquidnet-service-merchant/liquidnet-service-merchant-impl/src/main/resources/sqlmap.properties
View file @
0b6d2418
...
@@ -35,21 +35,21 @@ kylin_performance_status.VoStatus=UPDATE kylin_performance_status SET status = ?
...
@@ -35,21 +35,21 @@ kylin_performance_status.VoStatus=UPDATE kylin_performance_status SET status = ?
kylin_performances.del
=
DELETE FROM kylin_performances WHERE performances_id = ?
kylin_performances.del
=
DELETE FROM kylin_performances WHERE performances_id = ?
kylin_performance_status.del
=
DELETE FROM kylin_performance_status WHERE performance_id = ?
kylin_performance_status.del
=
DELETE FROM kylin_performance_status WHERE performance_id = ?
kylin_performance_relations.del
=
DELETE FROM kylin_performance_relations WHERE performance_id = ?
kylin_performance_relations.del
=
DELETE FROM kylin_performance_relations WHERE performance_id = ?
#province_id,province_name,district_id,district_name
kylin_performances.insert
=
INSERT INTO kylin_performances (performances_id,title,type,img
Poster,province_id,province_name,city_id,city_name,district_id,district_name,approval_url,notice,sponsor_id,sponsor_type,sponsor,contacts,mobile,describes,details,notice_image,time_start,time_end,audit_time,reject_txt,sort,comment,created_at,updated_at) VALUES (?,?,?,?,?,?,
?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
kylin_performances.insert
=
INSERT INTO kylin_performances (performances_id,title,type,img
_poster,city_id,city_name,approval_url,notice,sponsor_id,sponsor_type,sponsor,contacts,mobile,describes,details,notice_image,time_start,time_end,sort,comment,created_at,updated_at) VALUES (
?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
kylin_performance_status.insert
=
INSERT INTO kylin_performance_status (performance_status_id,performance_id,is_show,status,status_sell,is_distribution,sync_agent,sync_damai,audit_status,is_true_name,limit_count,limit_count_member,
is_recommend,is_can_refund,is_open_refund_present,refund_open_time,refund_close_time,is_transfer,transfer_start_time,transfer_end_time,is_refund_poundage,is_refund_voucher,is_refund_express,created_at,updated_at) VALUES (?,?,?,?,?,?,?,?,?,?,
?,?,?,?,?,?,?,?,?,?,?,?,?,?)
kylin_performance_status.insert
=
INSERT INTO kylin_performance_status (performance_status_id,performance_id,is_show,status,status_sell,is_distribution,sync_agent,sync_damai,audit_status,is_true_name,limit_count,limit_count_member,
created_at,updated_at) VALUES (
?,?,?,?,?,?,?,?,?,?,?,?,?,?)
kylin_performance_relations.insert
=
INSERT INTO kylin_performance_relations (performance_relations_id,performance_id,copy_id,merchant_id,field_id,road_show_id,project_id,video_id,created_at,updated_at) VALUES (?,?,?,?,?,?,?,?,?,?)
kylin_performance_relations.insert
=
INSERT INTO kylin_performance_relations (performance_relations_id,performance_id,copy_id,merchant_id,field_id,road_show_id,project_id,video_id,created_at,updated_at) VALUES (?,?,?,?,?,?,?,?,?,?)
kylin_ticket_times.del
=
DELETE FROM kylin_ticket_times WHERE ticket_times_id = ?
kylin_ticket_times.del
=
DELETE FROM kylin_ticket_times WHERE ticket_times_id = ?
kylin_ticket_time_relation.del
=
DELETE FROM kylin_ticket_time_relation WHERE times_id = ?
kylin_ticket_time_relation.del
=
DELETE FROM kylin_ticket_time_relation WHERE times_id = ?
kylin_ticket_times.insert
=
INSERT INTO kylin_ticket_times (ticket_times_id,title,status,type,use_start,use_end,comment,created_at,updated_at) VALUES (?,?,?,?,?,?,?,?,?)
kylin_ticket_times.insert
=
INSERT INTO kylin_ticket_times (ticket_times_id,title,status,type,use_start,use_end,comment,created_at,updated_at) VALUES (?,?,?,?,?,?,?,?,?)
kylin_ticket_time_relation.insert
=
INSERT INTO kylin_ticket_time_re
al
tion (ticket_time_relation_id,times_id,performance_id,created_at,updated_at) VALUES (?,?,?,?,?)
kylin_ticket_time_relation.insert
=
INSERT INTO kylin_ticket_time_re
la
tion (ticket_time_relation_id,times_id,performance_id,created_at,updated_at) VALUES (?,?,?,?,?)
kylin_tickets.del
=
DELETE FROM kylin_tickets WHERE tickets_id = ?
kylin_tickets.del
=
DELETE FROM kylin_tickets WHERE tickets_id = ?
kylin_ticket_status.del
=
DELETE FROM kylin_ticket_status WHERE ticket_id = ?
kylin_ticket_status.del
=
DELETE FROM kylin_ticket_status WHERE ticket_id = ?
kylin_ticket_relations.del
=
DELETE FROM kylin_ticket_relations WHERE ticket_id = ?
kylin_ticket_relations.del
=
DELETE FROM kylin_ticket_relations WHERE ticket_id = ?
kylin_tickets.insert
=
INSERT INTO kylin_tickets (tickets_id,title,type,pr
cie,price_express,price_discount_member,price_discount,describes,describe_express,describe_electronic,advance_minute_member,time_start,time_end,time_end_express,use_start,use_end,pay_countdown_minute,sale_remind_minute,comment,created_at,updated_at) VALUES (
?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
kylin_tickets.insert
=
INSERT INTO kylin_tickets (tickets_id,title,type,pr
ice,price_express,price_discount_member,price_discount,describes,describe_express,describe_electronic,advance_minute_member,time_start,time_end,time_end_express,use_start,use_end,pay_countdown_minute,sale_remind_minute,comment,created_at,updated_at) VALUES (?,
?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
kylin_ticket_status.insert
=
INSERT INTO kylin_ticket_status (ticket_status_id,ticket_id,is_student,is_electronic,is_express,status,counts,status_exchange,is_show_code,qr_code_show_time,is_lack_register,total_general,total_exchange,surplus_general,surplus_exchange,express_type,is_transfer,is_true_name,limit_count,member_limit_count,is_exclusive,is_member,is_agent,sync_damai,created_at,updated_at) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
kylin_ticket_status.insert
=
INSERT INTO kylin_ticket_status (ticket_status_id,ticket_id,is_student,is_electronic,is_express,status,counts,status_exchange,is_show_code,qr_code_show_time,is_lack_register,total_general,total_exchange,surplus_general,surplus_exchange,express_type,is_transfer,is_true_name,limit_count,member_limit_count,is_exclusive,is_member,is_agent,sync_damai,created_at,updated_at) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
kylin_ticket_relations.insert
=
INSERT INTO kylin_ticket_relations (ticket_relations_id,ticket_id,times_id,created_at,updated_at) VALUES (?,?,?,?,?)
kylin_ticket_relations.insert
=
INSERT INTO kylin_ticket_relations (ticket_relations_id,ticket_id,times_id,created_at,updated_at) VALUES (?,?,?,?,?)
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