记得上下班打卡 | 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
a5fe8056
Commit
a5fe8056
authored
Dec 03, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
9a9ef975
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
153 additions
and
57 deletions
+153
-57
RedisUtil.java
...java/com.liquidnet.common.cache/redis/util/RedisUtil.java
+6
-3
DataController.java
...net/service/platform/controller/kylin/DataController.java
+30
-16
DataImpl.java
...quidnet/service/platform/service/impl/kylin/DataImpl.java
+93
-15
PerformanceVoTask.java
...m/liquidnet/service/platform/utils/PerformanceVoTask.java
+24
-23
No files found.
liquidnet-bus-common/liquidnet-common-cache/liquidnet-common-cache-redis/src/main/java/com.liquidnet.common.cache/redis/util/RedisUtil.java
View file @
a5fe8056
...
@@ -34,9 +34,12 @@ public final class RedisUtil extends AbstractRedisUtil{
...
@@ -34,9 +34,12 @@ public final class RedisUtil extends AbstractRedisUtil{
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
String
[]
keys
=
{
String
[]
keys
=
{
"kylin:performances_inventory:ticket:id:545532380412108806781770:surplusGeneral"
,
"kylin:performances_inventory:ticket:id:575422212015185926395076:surplusGeneral"
,
"kylin:performances_inventory:ticket:id:571907440470466561438090:surplusGeneral"
,
"kylin:performances_inventory:ticket:id:575423832945909762737992:surplusGeneral"
,
"kylin:performances_inventory:ticket:id:571910454067650563092295:surplusGeneral"
,
"kylin:performances_inventory:ticket:id:575424371127296001891205:surplusGeneral"
,
"kylin:performances_inventory:ticket:id:575424699866603521727423:surplusGeneral"
,
"kylin:order:id:585335405046292488883367"
,
"kylin:order:id:585337076784250883411769"
};
};
for
(
String
key
:
keys
)
{
for
(
String
key
:
keys
)
{
long
value
=
key
.
hashCode
();
long
value
=
key
.
hashCode
();
...
...
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/controller/kylin/DataController.java
View file @
a5fe8056
...
@@ -20,25 +20,39 @@ public class DataController {
...
@@ -20,25 +20,39 @@ public class DataController {
private
DataImpl
data
;
private
DataImpl
data
;
@PostMapping
(
"
initScore
"
)
@PostMapping
(
"
fieldData
"
)
@ApiOperation
(
"
积分
数据迁移"
)
@ApiOperation
(
"
场地
数据迁移"
)
public
ResponseDto
<
Boolean
>
initScore
(
@RequestParam
(
"page"
)
int
page
,
@RequestParam
(
"size"
)
int
size
)
{
public
ResponseDto
<
Boolean
>
fieldData
(
)
{
Boolean
result
=
data
.
initScore
(
page
,
size
);
data
.
fieldData
(
);
return
ResponseDto
.
success
(
result
);
return
ResponseDto
.
success
();
}
}
@PostMapping
(
"
initScoreSingle
"
)
@PostMapping
(
"
account
"
)
@ApiOperation
(
"
积分数据迁移(根据uid)
"
)
@ApiOperation
(
"
演出关联用户id迁移
"
)
public
ResponseDto
<
Boolean
>
initScore
(
@RequestParam
(
"uid"
)
String
uid
)
{
public
ResponseDto
<
Boolean
>
account
(
)
{
Boolean
result
=
data
.
initScore
(
uid
);
data
.
account
(
);
return
ResponseDto
.
success
(
result
);
return
ResponseDto
.
success
();
}
}
@PostMapping
(
"initLogsSingle"
)
// @PostMapping("initScore")
@ApiOperation
(
"初始化用户积分日志(根据uid)"
)
// @ApiOperation("积分数据迁移")
public
ResponseDto
<
Boolean
>
initLogs
(
@RequestParam
(
"uid"
)
String
uid
)
{
// public ResponseDto<Boolean> initScore(@RequestParam("page") int page, @RequestParam("size") int size) {
Boolean
result
=
data
.
initLogs
(
uid
);
// Boolean result = data.initScore(page,size);
return
ResponseDto
.
success
(
result
);
// return ResponseDto.success(result);
}
// }
//
// @PostMapping("initScoreSingle")
// @ApiOperation("积分数据迁移(根据uid)")
// public ResponseDto<Boolean> initScore(@RequestParam("uid") String uid) {
// Boolean result = data.initScore(uid);
// return ResponseDto.success(result);
// }
//
// @PostMapping("initLogsSingle")
// @ApiOperation("初始化用户积分日志(根据uid)")
// public ResponseDto<Boolean> initLogs(@RequestParam("uid") String uid) {
// Boolean result = data.initLogs(uid);
// return ResponseDto.success(result);
// }
}
}
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/service/impl/kylin/DataImpl.java
View file @
a5fe8056
This diff is collapsed.
Click to expand it.
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/utils/PerformanceVoTask.java
View file @
a5fe8056
...
@@ -97,7 +97,7 @@ public class PerformanceVoTask {
...
@@ -97,7 +97,7 @@ public class PerformanceVoTask {
List
<
String
>
performanceIdList
=
new
ArrayList
<>();
List
<
String
>
performanceIdList
=
new
ArrayList
<>();
if
(
performanceSingleId
==
null
)
{
if
(
performanceSingleId
==
null
)
{
List
<
KylinPerformanceStatus
>
list
=
performanceStatusMapper
.
selectList
(
new
UpdateWrapper
<
KylinPerformanceStatus
>().
in
(
"status"
,
6
,
8
,
9
));
List
<
KylinPerformanceStatus
>
list
=
performanceStatusMapper
.
selectList
(
new
UpdateWrapper
<
KylinPerformanceStatus
>().
in
(
"status"
,
3
,
4
,
6
,
7
,
8
,
9
,
10
));
for
(
KylinPerformanceStatus
item
:
list
)
{
for
(
KylinPerformanceStatus
item
:
list
)
{
performanceIdList
.
add
(
item
.
getPerformanceId
());
performanceIdList
.
add
(
item
.
getPerformanceId
());
}
}
...
@@ -386,41 +386,42 @@ public class PerformanceVoTask {
...
@@ -386,41 +386,42 @@ public class PerformanceVoTask {
KylinPerformanceMisVo
misVo
=
getPerformanceMisVo
(
performanceId
);
KylinPerformanceMisVo
misVo
=
getPerformanceMisVo
(
performanceId
);
KylinPerformanceVo
mongoVo
=
mongoVoUtils
.
combinePerformanceVoData
(
performanceId
);
KylinPerformanceVo
mongoVo
=
mongoVoUtils
.
combinePerformanceVoData
(
performanceId
);
if
(!
misVo
.
getTitle
().
equals
(
mongoVo
.
getTitle
()))
{
if
(!
misVo
.
getTitle
().
equals
(
mongoVo
.
getTitle
()))
{
log
.
info
(
"performanceId = "
+
performanceId
+
" NEED CHANGE TITLE"
);
log
.
info
(
"performanceId = "
+
performanceId
+
" NEED CHANGE TITLE"
);
return
true
;
return
true
;
}
if
(!
misVo
.
getImgPoster
().
equals
(
mongoVo
.
getImgPoster
()))
{
}
log
.
info
(
"performanceId = "
+
performanceId
+
" NEED CHANGE IMGPOSTER"
);
if
(!
misVo
.
getImgPoster
().
equals
(
mongoVo
.
getImgPoster
()))
{
log
.
info
(
"performanceId = "
+
performanceId
+
" NEED CHANGE IMGPOSTER"
);
return
true
;
return
true
;
}
else
if
(!
misVo
.
getType
().
equals
(
mongoVo
.
getType
()))
{
}
else
if
(!
misVo
.
getType
().
equals
(
mongoVo
.
getType
()))
{
log
.
info
(
"performanceId = "
+
performanceId
+
" NEED CHANGE TYPE"
);
log
.
info
(
"performanceId = "
+
performanceId
+
" NEED CHANGE TYPE"
);
return
true
;
return
true
;
}
else
if
(!
misVo
.
getTimeStart
().
equals
(
mongoVo
.
getTimeStart
()))
{
}
else
if
(!
misVo
.
getTimeStart
().
equals
(
mongoVo
.
getTimeStart
()))
{
log
.
info
(
"performanceId = "
+
performanceId
+
" NEED CHANGE TIMESTART"
);
log
.
info
(
"performanceId = "
+
performanceId
+
" NEED CHANGE TIMESTART"
);
return
true
;
return
true
;
}
else
if
(!
misVo
.
getTimeEnd
().
equals
(
mongoVo
.
getTimeEnd
()))
{
}
else
if
(!
misVo
.
getTimeEnd
().
equals
(
mongoVo
.
getTimeEnd
()))
{
log
.
info
(
"performanceId = "
+
performanceId
+
" NEED CHANGE TIMEEND"
);
log
.
info
(
"performanceId = "
+
performanceId
+
" NEED CHANGE TIMEEND"
);
return
true
;
return
true
;
}
else
if
(!
misVo
.
getFieldId
().
equals
(
mongoVo
.
getFieldId
()))
{
}
else
if
(!
misVo
.
getFieldId
().
equals
(
mongoVo
.
getFieldId
()))
{
log
.
info
(
"performanceId = "
+
performanceId
+
" NEED CHANGE FIELDID"
);
log
.
info
(
"performanceId = "
+
performanceId
+
" NEED CHANGE FIELDID"
);
return
true
;
return
true
;
}
else
if
(!
misVo
.
getNotice
().
equals
(
mongoVo
.
getNotice
()))
{
}
else
if
(!
misVo
.
getNotice
().
equals
(
mongoVo
.
getNotice
()))
{
log
.
info
(
"performanceId = "
+
performanceId
+
" NEED CHANGE NOTICE"
);
log
.
info
(
"performanceId = "
+
performanceId
+
" NEED CHANGE NOTICE"
);
return
true
;
return
true
;
}
else
if
(!
misVo
.
getDetails
().
replace
(
"'"
,
""
).
equals
(
mongoVo
.
getDetails
().
replace
(
"'"
,
""
)))
{
}
else
if
(!
misVo
.
getDetails
().
replace
(
"'"
,
""
).
equals
(
mongoVo
.
getDetails
().
replace
(
"'"
,
""
)))
{
log
.
info
(
"performanceId = "
+
performanceId
+
" NEED CHANGE DETAILS"
);
log
.
info
(
"performanceId = "
+
performanceId
+
" NEED CHANGE DETAILS"
);
return
true
;
return
true
;
}
else
if
(!
misVo
.
getApprovalUrl
().
equals
(
mongoVo
.
getApprovalUrl
()))
{
}
else
if
(!
misVo
.
getApprovalUrl
().
equals
(
mongoVo
.
getApprovalUrl
()))
{
log
.
info
(
"performanceId = "
+
performanceId
+
" NEED CHANGE APPROVALURL"
);
log
.
info
(
"performanceId = "
+
performanceId
+
" NEED CHANGE APPROVALURL"
);
return
true
;
return
true
;
}
else
if
(!
misVo
.
getPayCountdownMinute
().
equals
(
mongoVo
.
getPayCountdownMinute
()))
{
}
else
if
(!
misVo
.
getPayCountdownMinute
().
equals
(
mongoVo
.
getPayCountdownMinute
()))
{
log
.
info
(
"performanceId = "
+
performanceId
+
" NEED CHANGE PAYCOUTDOWN"
);
log
.
info
(
"performanceId = "
+
performanceId
+
" NEED CHANGE PAYCOUTDOWN"
);
return
true
;
return
true
;
}
}
boolean
exists
=
mongoTemplate
.
exists
(
Query
.
query
(
Criteria
.
where
(
"status"
).
is
(-
1
).
and
(
"performancesId"
).
is
(
performanceId
)),
boolean
exists
=
mongoTemplate
.
exists
(
Query
.
query
(
Criteria
.
where
(
"status"
).
is
(-
1
).
and
(
"performancesId"
).
is
(
performanceId
)),
KylinTicketTimesPartnerVo
.
class
,
KylinTicketTimesPartnerVo
.
class
.
getSimpleName
());
KylinTicketTimesPartnerVo
.
class
,
KylinTicketTimesPartnerVo
.
class
.
getSimpleName
());
if
(
exists
)
{
if
(
exists
)
{
log
.
info
(
"performanceId = "
+
performanceId
+
" NEED CHANGE NEW TIMES"
);
log
.
info
(
"performanceId = "
+
performanceId
+
" NEED CHANGE NEW TIMES"
);
return
true
;
return
true
;
}
}
...
@@ -428,26 +429,26 @@ public class PerformanceVoTask {
...
@@ -428,26 +429,26 @@ public class PerformanceVoTask {
TicketTimesTicketCreatePartnerVo
times
=
misVo
.
getTicketTimes
().
get
(
i
);
TicketTimesTicketCreatePartnerVo
times
=
misVo
.
getTicketTimes
().
get
(
i
);
KylinTicketTimesVo
timesVo
=
mongoVo
.
getTicketTimeList
().
get
(
i
);
KylinTicketTimesVo
timesVo
=
mongoVo
.
getTicketTimeList
().
get
(
i
);
if
(!
times
.
getUseStart
().
equals
(
timesVo
.
getUseStart
()))
{
if
(!
times
.
getUseStart
().
equals
(
timesVo
.
getUseStart
()))
{
log
.
info
(
"performanceId = "
+
performanceId
+
" NEED CHANGE TIMES USE_START"
);
log
.
info
(
"performanceId = "
+
performanceId
+
" NEED CHANGE TIMES USE_START"
);
return
true
;
return
true
;
}
}
if
(!
times
.
getUseEnd
().
equals
(
timesVo
.
getUseEnd
()))
{
if
(!
times
.
getUseEnd
().
equals
(
timesVo
.
getUseEnd
()))
{
log
.
info
(
"performanceId = "
+
performanceId
+
" NEED CHANGE TIMES USE_END"
);
log
.
info
(
"performanceId = "
+
performanceId
+
" NEED CHANGE TIMES USE_END"
);
return
true
;
return
true
;
}
}
boolean
exists2
=
mongoTemplate
.
exists
(
Query
.
query
(
Criteria
.
where
(
"status"
).
is
(-
2
).
and
(
"timesId"
).
is
(
times
.
getTicketTimesId
())),
KylinTicketPartnerVo
.
class
,
KylinTicketPartnerVo
.
class
.
getSimpleName
());
boolean
exists2
=
mongoTemplate
.
exists
(
Query
.
query
(
Criteria
.
where
(
"status"
).
is
(-
2
).
and
(
"timesId"
).
is
(
times
.
getTicketTimesId
())),
KylinTicketPartnerVo
.
class
,
KylinTicketPartnerVo
.
class
.
getSimpleName
());
if
(
exists2
)
{
if
(
exists2
)
{
log
.
info
(
"performanceId = "
+
performanceId
+
" NEED CHANGE NEW TICKET"
);
log
.
info
(
"performanceId = "
+
performanceId
+
" NEED CHANGE NEW TICKET"
);
return
true
;
return
true
;
}
}
for
(
KylinTicketPartnerVo
ticketPartnerVo
:
times
.
getTicket
())
{
for
(
KylinTicketPartnerVo
ticketPartnerVo
:
times
.
getTicket
())
{
for
(
KylinTicketVo
ticketVo
:
timesVo
.
getTicketList
())
{
for
(
KylinTicketVo
ticketVo
:
timesVo
.
getTicketList
())
{
if
(
ticketVo
.
getTicketsId
().
equals
(
ticketPartnerVo
.
getTicketsId
()))
{
if
(
ticketVo
.
getTicketsId
().
equals
(
ticketPartnerVo
.
getTicketsId
()))
{
if
(!
ticketVo
.
getTitle
().
equals
(
ticketPartnerVo
.
getTitle
()))
{
if
(!
ticketVo
.
getTitle
().
equals
(
ticketPartnerVo
.
getTitle
()))
{
log
.
info
(
"performanceId = "
+
performanceId
+
" ticketId = "
+
ticketVo
.
getTicketsId
()+
" NEED CHANGE TICKET TITLE"
);
log
.
info
(
"performanceId = "
+
performanceId
+
" ticketId = "
+
ticketVo
.
getTicketsId
()
+
" NEED CHANGE TICKET TITLE"
);
return
true
;
return
true
;
}
}
// else if (!ticketVo.getQrCodeShowTime().equals(ticketPartnerVo.getQrCodeShowTime())) {
// else if (!ticketVo.getQrCodeShowTime().equals(ticketPartnerVo.getQrCodeShowTime())) {
...
@@ -455,14 +456,14 @@ public class PerformanceVoTask {
...
@@ -455,14 +456,14 @@ public class PerformanceVoTask {
// return true;
// return true;
// }
// }
else
if
(!
ticketVo
.
getDescribeElectronic
().
equals
(
ticketPartnerVo
.
getDescribeElectronic
()))
{
else
if
(!
ticketVo
.
getDescribeElectronic
().
equals
(
ticketPartnerVo
.
getDescribeElectronic
()))
{
log
.
info
(
"performanceId = "
+
performanceId
+
" ticketId = "
+
ticketVo
.
getTicketsId
()+
" NEED CHANGE TICKET DESCRIBEELECTRONIC"
);
log
.
info
(
"performanceId = "
+
performanceId
+
" ticketId = "
+
ticketVo
.
getTicketsId
()
+
" NEED CHANGE TICKET DESCRIBEELECTRONIC"
);
return
true
;
return
true
;
}
else
if
(!
ticketVo
.
getDescribeExpress
().
equals
(
ticketPartnerVo
.
getDescribeExpress
()))
{
}
else
if
(!
ticketVo
.
getDescribeExpress
().
equals
(
ticketPartnerVo
.
getDescribeExpress
()))
{
log
.
info
(
"performanceId = "
+
performanceId
+
" ticketId = "
+
ticketVo
.
getTicketsId
()+
" NEED CHANGE TICKET DESCRIBEELEXPRESS"
);
log
.
info
(
"performanceId = "
+
performanceId
+
" ticketId = "
+
ticketVo
.
getTicketsId
()
+
" NEED CHANGE TICKET DESCRIBEELEXPRESS"
);
return
true
;
return
true
;
}
}
if
(!
ticketVo
.
getDescribes
().
equals
(
ticketPartnerVo
.
getDescribes
()))
{
if
(!
ticketVo
.
getDescribes
().
equals
(
ticketPartnerVo
.
getDescribes
()))
{
log
.
info
(
"performanceId = "
+
performanceId
+
" NEED CHANGE TICKET DESCRIBES"
);
log
.
info
(
"performanceId = "
+
performanceId
+
" NEED CHANGE TICKET DESCRIBES"
);
return
true
;
return
true
;
}
}
break
;
break
;
...
...
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