记得上下班打卡 | 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
1
Merge Requests
1
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
08709fac
Commit
08709fac
authored
Oct 29, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
暂时提交
parent
40b19037
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
115 additions
and
5 deletions
+115
-5
PerformancePartnerVo.java
...quidnet/service/kylin/dto/param/PerformancePartnerVo.java
+49
-4
KylinTicketTimesPartnerVo.java
...rvice/kylin/dto/vo/partner/KylinTicketTimesPartnerVo.java
+16
-0
PerformanceVoUtils.java
...client/admin/zhengzai/kylin/utils/PerformanceVoUtils.java
+50
-1
No files found.
liquidnet-bus-api/liquidnet-service-kylin-api/src/main/java/com/liquidnet/service/kylin/dto/param/PerformancePartnerVo.java
View file @
08709fac
package
com
.
liquidnet
.
service
.
kylin
.
dto
.
param
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.liquidnet.commons.lang.util.DateUtil
;
import
com.liquidnet.service.kylin.dto.vo.middle.KylinBuyNoticeVo
;
import
com.liquidnet.service.kylin.entity.KylinPerformanceRelations
;
import
com.liquidnet.service.kylin.entity.KylinPerformanceStatus
;
import
com.liquidnet.service.kylin.entity.KylinPerformances
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
...
...
@@ -9,7 +13,7 @@ import java.io.Serializable;
import
java.util.List
;
@Data
public
class
PerformancePartnerVo
implements
Serializable
,
Cloneable
{
public
class
PerformancePartnerVo
implements
Serializable
,
Cloneable
{
@ApiModelProperty
(
value
=
"演出id"
,
example
=
""
)
@JsonIgnore
...
...
@@ -87,10 +91,10 @@ public class PerformancePartnerVo implements Serializable,Cloneable {
@ApiModelProperty
(
value
=
"是否售卖"
,
example
=
"0"
)
private
Integer
statusSell
;
@ApiModelProperty
(
value
=
"巡演id"
,
example
=
"0"
,
hidden
=
true
)
@ApiModelProperty
(
value
=
"巡演id"
,
example
=
"0"
,
hidden
=
true
)
private
String
roadShowId
;
@ApiModelProperty
(
value
=
"拒绝理由"
,
hidden
=
true
)
@ApiModelProperty
(
value
=
"拒绝理由"
,
hidden
=
true
)
private
String
rejectTxt
;
@ApiModelProperty
(
value
=
"审核状态"
,
hidden
=
true
)
...
...
@@ -99,7 +103,7 @@ public class PerformancePartnerVo implements Serializable,Cloneable {
@ApiModelProperty
(
value
=
"审核状态"
,
hidden
=
true
)
private
Integer
isShow
;
@ApiModelProperty
(
value
=
"搭售id"
,
example
=
"0"
,
hidden
=
true
)
@ApiModelProperty
(
value
=
"搭售id"
,
example
=
"0"
,
hidden
=
true
)
private
String
projectId
;
@ApiModelProperty
(
value
=
"购票须知 Id 数组"
)
...
...
@@ -115,6 +119,7 @@ public class PerformancePartnerVo implements Serializable,Cloneable {
private
Integer
isCreateSave
;
private
static
final
PerformancePartnerVo
obj
=
new
PerformancePartnerVo
();
public
static
PerformancePartnerVo
getNew
()
{
try
{
return
(
PerformancePartnerVo
)
obj
.
clone
();
...
...
@@ -122,4 +127,44 @@ public class PerformancePartnerVo implements Serializable,Cloneable {
return
new
PerformancePartnerVo
();
}
}
public
PerformancePartnerVo
copy
(
KylinPerformances
performances
,
KylinPerformanceStatus
performanceStatus
,
KylinPerformanceRelations
kylinPerformanceRelations
,
String
fieldName
)
{
this
.
setPerformancesId
(
performances
.
getPerformancesId
());
this
.
setImgPoster
(
performances
.
getImgPoster
());
this
.
setTitle
(
performances
.
getTitle
());
this
.
setType
(
performances
.
getType
());
this
.
setTimeStart
(
DateUtil
.
Formatter
.
yyyyMMddHHmmss
.
format
(
performances
.
getTimeStart
()));
this
.
setTimeEnd
(
DateUtil
.
Formatter
.
yyyyMMddHHmmss
.
format
(
performances
.
getTimeEnd
()));
this
.
setFieldId
(
kylinPerformanceRelations
.
getFieldId
());
this
.
setNotice
(
performances
.
getNotice
());
this
.
setSponsorId
(
performances
.
getSponsorId
());
this
.
setSponsorType
(
performances
.
getSponsorType
());
this
.
setSponsor
(
performances
.
getSponsor
());
this
.
setContacts
(
performances
.
getContacts
());
this
.
setMobile
(
performances
.
getMobile
());
this
.
setDetails
(
performances
.
getDetails
());
this
.
setApprovalUrl
(
performances
.
getApprovalUrl
());
this
.
setNoticeImage
(
performances
.
getNoticeImage
());
this
.
setIsTrueName
(
performanceStatus
.
getIsTrueName
());
this
.
setLimitCount
(
performanceStatus
.
getLimitCount
());
this
.
setStatus
(
performanceStatus
.
getStatus
());
this
.
setMerchantId
(
kylinPerformanceRelations
.
getMerchantId
());
this
.
setDescribes
(
performances
.
getDescribes
());
this
.
setStatusSell
(
performanceStatus
.
getStatusSell
());
this
.
setRoadShowId
(
kylinPerformanceRelations
.
getRoadShowId
());
this
.
setRejectTxt
(
performances
.
getRejectTxt
());
this
.
setAuditStatus
(
performanceStatus
.
getAuditStatus
());
this
.
setIsShow
(
performanceStatus
.
getIsShow
());
this
.
setProjectId
(
kylinPerformanceRelations
.
getProjectId
());
this
.
setCreatedAt
(
DateUtil
.
Formatter
.
yyyyMMddHHmmss
.
format
(
performances
.
getCreatedAt
()));
this
.
setUpdatedAt
(
DateUtil
.
Formatter
.
yyyyMMddHHmmss
.
format
(
performances
.
getUpdatedAt
()));
this
.
setFieldName
(
fieldName
);
// this.setNoticeIds();
// this.setIsCreateSave();
// this.setIsSubmit();
// this.setPayCountdownMinute();
return
this
;
}
}
liquidnet-bus-api/liquidnet-service-kylin-api/src/main/java/com/liquidnet/service/kylin/dto/vo/partner/KylinTicketTimesPartnerVo.java
View file @
08709fac
package
com
.
liquidnet
.
service
.
kylin
.
dto
.
vo
.
partner
;
import
com.liquidnet.commons.lang.util.DateUtil
;
import
com.liquidnet.service.kylin.dto.vo.mongo.KylinCheckUserVo
;
import
com.liquidnet.service.kylin.entity.KylinTicketTimeRelation
;
import
com.liquidnet.service.kylin.entity.KylinTicketTimes
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
...
...
@@ -49,4 +52,17 @@ public class KylinTicketTimesPartnerVo implements Serializable ,Cloneable{
return
new
KylinTicketTimesPartnerVo
();
}
}
public
KylinTicketTimesPartnerVo
copy
(
KylinTicketTimes
ticketTimes
,
KylinTicketTimeRelation
ticketTimeRelation
){
this
.
setTicketTimesId
(
ticketTimeRelation
.
getTimesId
());
this
.
setPerformancesId
(
ticketTimeRelation
.
getTimesId
());
this
.
setTitle
(
ticketTimes
.
getTitle
());
this
.
setUseStart
(
DateUtil
.
Formatter
.
yyyyMMddHHmmss
.
format
(
ticketTimes
.
getUseStart
()));
this
.
setUseEnd
(
DateUtil
.
Formatter
.
yyyyMMddHHmmss
.
format
(
ticketTimes
.
getUseEnd
()));
this
.
setStatus
(
ticketTimes
.
getStatus
());
this
.
setType
(
ticketTimes
.
getType
());
this
.
setCreatedAt
(
DateUtil
.
Formatter
.
yyyyMMddHHmmss
.
format
(
ticketTimes
.
getCreatedAt
()));
this
.
setUpdatedAt
(
DateUtil
.
Formatter
.
yyyyMMddHHmmss
.
format
(
ticketTimes
.
getUpdatedAt
()));
return
this
;
}
}
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/kylin/utils/PerformanceVoUtils.java
View file @
08709fac
...
...
@@ -221,7 +221,56 @@ public class PerformanceVoUtils {
kylinPerformanceMisVo
.
setStopSellTime
(
StringList
.
get
(
0
));
kylinPerformanceMisVo
.
setTicketTimes
(
ticketTimesTicketCreatePartnerVoList
);
String
descibes
=
kylinPerformanceMisVo
.
getDetails
().
replace
(
"'"
,
""
);
String
descibes
=
kylinPerformanceMisVo
.
getDetails
().
replace
(
"'"
,
""
);
kylinPerformanceMisVo
.
setDetails
(
descibes
);
kylinPerformanceMisVo
.
setIsDistribution
(
0
);
kylinPerformanceMisVo
.
setSyncAgent
(
0
);
kylinPerformanceMisVo
.
setNoticeImageList
(
JsonUtils
.
fromJson
(
kylinPerformanceMisVo
.
getNoticeImage
(),
new
TypeReference
<
List
<
KylinBuyNoticeVo
>>()
{
}));
return
kylinPerformanceMisVo
;
}
public
KylinPerformanceMisVo
getPerformanceMisDB
(
String
performancesId
)
{
KylinPerformances
performances
=
performancesMapper
.
selectOne
(
Wrappers
.
lambdaQuery
(
KylinPerformances
.
class
).
eq
(
KylinPerformances:
:
getPerformancesId
,
performancesId
));
KylinPerformanceStatus
performanceStatus
=
performanceStatusMapper
.
selectOne
(
Wrappers
.
lambdaQuery
(
KylinPerformanceStatus
.
class
).
eq
(
KylinPerformanceStatus:
:
getPerformanceId
,
performancesId
));
KylinPerformanceRelations
performanceRelations
=
performanceRelationsMapper
.
selectOne
(
Wrappers
.
lambdaQuery
(
KylinPerformanceRelations
.
class
).
eq
(
KylinPerformanceRelations:
:
getPerformanceId
,
performancesId
));
PerformancePartnerVo
performanceData
=
PerformancePartnerVo
.
getNew
().
copy
(
performances
,
performanceStatus
,
performanceRelations
,
(
String
)
redisUtil
.
getDB15RedisHGet
(
KylinRedisConst
.
FIELDS
+
":"
+
performanceRelations
.
getFieldId
(),
"name"
));
List
<
KylinTicketTimesPartnerVo
>
kylinTicketTimesPartnerVos
=
new
ArrayList
();
ArrayList
<
BigDecimal
>
floatList
=
new
ArrayList
<>();
ArrayList
<
String
>
StringList
=
new
ArrayList
<>();
List
<
TicketTimesTicketCreatePartnerVo
>
ticketTimesTicketCreatePartnerVoList
=
new
ArrayList
();
List
<
KylinTicketTimeRelation
>
ticketTimeRelationsList
=
ticketTimeRelationMapper
.
selectList
(
Wrappers
.
lambdaQuery
(
KylinTicketTimeRelation
.
class
).
eq
(
KylinTicketTimeRelation:
:
getPerformanceId
,
performancesId
));
for
(
KylinTicketTimeRelation
item
:
ticketTimeRelationsList
)
{
KylinTicketTimes
ticketTimes
=
ticketTimesMapper
.
selectOne
(
Wrappers
.
lambdaQuery
(
KylinTicketTimes
.
class
).
eq
(
KylinTicketTimes:
:
getTicketTimesId
,
item
.
getTimesId
()));
kylinTicketTimesPartnerVos
.
add
(
KylinTicketTimesPartnerVo
.
getNew
().
copy
(
ticketTimes
,
item
));
}
for
(
KylinTicketTimesPartnerVo
ticketTimes
:
kylinTicketTimesPartnerVos
)
{
TicketTimesTicketCreatePartnerVo
ticketTimesTicketCreatePartnerVo
=
new
TicketTimesTicketCreatePartnerVo
();
BeanUtils
.
copyProperties
(
ticketTimes
,
ticketTimesTicketCreatePartnerVo
);
List
<
KylinTicketPartnerVo
>
kylinTicketPartnerVos
=
getTicketMongoList
(
ticketTimes
.
getTicketTimesId
());
ticketTimesTicketCreatePartnerVo
.
setTicket
(
kylinTicketPartnerVos
);
ticketTimesTicketCreatePartnerVoList
.
add
(
ticketTimesTicketCreatePartnerVo
);
for
(
KylinTicketPartnerVo
kylinTicketPartnerVoItem
:
kylinTicketPartnerVos
)
{
floatList
.
add
(
kylinTicketPartnerVoItem
.
getPrice
());
StringList
.
add
(
kylinTicketPartnerVoItem
.
getTimeEnd
());
}
}
KylinPerformanceMisVo
kylinPerformanceMisVo
=
new
KylinPerformanceMisVo
();
BeanUtils
.
copyProperties
(
performanceData
,
kylinPerformanceMisVo
);
floatList
.
sort
(
Comparator
.
naturalOrder
());
StringList
.
sort
(
Comparator
.
naturalOrder
());
kylinPerformanceMisVo
.
setPrice
(
floatList
.
get
(
0
)
+
"起"
);
kylinPerformanceMisVo
.
setStopSellTime
(
StringList
.
get
(
0
));
kylinPerformanceMisVo
.
setTicketTimes
(
ticketTimesTicketCreatePartnerVoList
);
String
descibes
=
kylinPerformanceMisVo
.
getDetails
().
replace
(
"'"
,
""
);
kylinPerformanceMisVo
.
setDetails
(
descibes
);
kylinPerformanceMisVo
.
setIsDistribution
(
0
);
kylinPerformanceMisVo
.
setSyncAgent
(
0
);
...
...
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