记得上下班打卡 | 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
433fdcc9
Commit
433fdcc9
authored
Jul 19, 2022
by
GaoHu
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_notice_0708' into dev_bd_rm_consumer_od
parents
52eb55aa
50bcddfb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
DataUtils.java
...ain/java/com/liquidnet/service/kylin/utils/DataUtils.java
+8
-6
No files found.
liquidnet-bus-service/liquidnet-service-kylin/liquidnet-service-kylin-impl/src/main/java/com/liquidnet/service/kylin/utils/DataUtils.java
View file @
433fdcc9
...
@@ -35,6 +35,7 @@ import org.springframework.util.CollectionUtils;
...
@@ -35,6 +35,7 @@ import org.springframework.util.CollectionUtils;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.time.format.DateTimeFormatter
;
import
java.util.*
;
import
java.util.*
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
...
@@ -547,6 +548,7 @@ public class DataUtils {
...
@@ -547,6 +548,7 @@ public class DataUtils {
GoblinGoodsSkuInfoVo
skuInfoVo
=
goblinRedisUtils
.
getGoodsSkuInfoVo
(
item
.
getSkuId
());
GoblinGoodsSkuInfoVo
skuInfoVo
=
goblinRedisUtils
.
getGoodsSkuInfoVo
(
item
.
getSkuId
());
item
.
setSkuName
(
skuInfoVo
.
getName
());
item
.
setSkuName
(
skuInfoVo
.
getName
());
}
}
toDayCombinationList
.
add
(
mixDetails
);
});
});
/*Query queryToDayCombination = new Query();
/*Query queryToDayCombination = new Query();
...
@@ -646,12 +648,13 @@ public class DataUtils {
...
@@ -646,12 +648,13 @@ public class DataUtils {
List
<
String
>
threeDayIds
=
threeDaysList
.
stream
().
map
(
KylinPerformanceVo:
:
getPerformancesId
).
collect
(
Collectors
.
toList
());
List
<
String
>
threeDayIds
=
threeDaysList
.
stream
().
map
(
KylinPerformanceVo:
:
getPerformancesId
).
collect
(
Collectors
.
toList
());
//数字藏品
//数字藏品
LocalDateTime
nowTimeTime
=
null
;
List
<
String
>
toDayNftIds
=
null
;
List
<
String
>
toDayNftIds
=
null
;
List
<
String
>
threeNftIds
=
null
;
List
<
String
>
threeNftIds
=
null
;
try
{
try
{
nowTimeTime
=
DateUtil
.
asLocalDateTime
((
Date
)
toDayTime
.
get
(
"start"
));
DateTimeFormatter
df
=
DateTimeFormatter
.
ofPattern
(
DateUtil
.
DATE_FULL_STR
);
LocalDateTime
toDayEndTime
=
DateUtil
.
asLocalDateTime
((
Date
)
toDayTime
.
get
(
"end"
));
LocalDateTime
nowTime
=
LocalDateTime
.
parse
(
nowTimeTStr
,
df
);
LocalDateTime
endTime
=
LocalDateTime
.
parse
(
toDayEndTimeStr
,
df
);
LocalDateTime
threeEndTime
=
DateUtil
.
asLocalDateTime
(
beforeDayEnd
);
LocalDateTime
threeEndTime
=
DateUtil
.
asLocalDateTime
(
beforeDayEnd
);
//查询预约(当天)
//查询预约(当天)
// List<GoblinGoodsSkuInfoVo> toDayAboutNft = getAboutNftByStartAndEndTime(nowTimeTime, toDayEndTime,0);
// List<GoblinGoodsSkuInfoVo> toDayAboutNft = getAboutNftByStartAndEndTime(nowTimeTime, toDayEndTime,0);
...
@@ -672,7 +675,7 @@ public class DataUtils {
...
@@ -672,7 +675,7 @@ public class DataUtils {
queryToDayNft
.
addCriteria
(
Criteria
.
where
(
"delFlg"
).
is
(
"0"
));
queryToDayNft
.
addCriteria
(
Criteria
.
where
(
"delFlg"
).
is
(
"0"
));
queryToDayNft
.
addCriteria
(
Criteria
.
where
(
"soldoutStatus"
).
is
(
"0"
));
queryToDayNft
.
addCriteria
(
Criteria
.
where
(
"soldoutStatus"
).
is
(
"0"
));
queryToDayNft
.
addCriteria
(
Criteria
.
where
(
"skuAppear"
).
is
(
"0"
));
queryToDayNft
.
addCriteria
(
Criteria
.
where
(
"skuAppear"
).
is
(
"0"
));
queryToDayNft
.
addCriteria
(
Criteria
.
where
(
"saleStartTime"
).
gte
(
nowTime
Time
).
lt
(
toDayE
ndTime
));
queryToDayNft
.
addCriteria
(
Criteria
.
where
(
"saleStartTime"
).
gte
(
nowTime
).
lt
(
e
ndTime
));
// queryToDayNft.addCriteria(Criteria.where("skuId").nin(toDayAboutNftSkuIds));
// queryToDayNft.addCriteria(Criteria.where("skuId").nin(toDayAboutNftSkuIds));
/* queryToDayNft.addCriteria(Criteria.where("skuId").nin(allListSkuIds));*/
/* queryToDayNft.addCriteria(Criteria.where("skuId").nin(allListSkuIds));*/
queryToDayNft
.
addCriteria
(
Criteria
.
where
(
"shelvesHandle"
).
ne
(
"3"
));
queryToDayNft
.
addCriteria
(
Criteria
.
where
(
"shelvesHandle"
).
ne
(
"3"
));
...
@@ -689,7 +692,7 @@ public class DataUtils {
...
@@ -689,7 +692,7 @@ public class DataUtils {
queryThreeNft
.
addCriteria
(
Criteria
.
where
(
"delFlg"
).
is
(
"0"
));
queryThreeNft
.
addCriteria
(
Criteria
.
where
(
"delFlg"
).
is
(
"0"
));
queryThreeNft
.
addCriteria
(
Criteria
.
where
(
"soldoutStatus"
).
is
(
"0"
));
queryThreeNft
.
addCriteria
(
Criteria
.
where
(
"soldoutStatus"
).
is
(
"0"
));
queryThreeNft
.
addCriteria
(
Criteria
.
where
(
"skuAppear"
).
is
(
"0"
));
queryThreeNft
.
addCriteria
(
Criteria
.
where
(
"skuAppear"
).
is
(
"0"
));
queryThreeNft
.
addCriteria
(
Criteria
.
where
(
"saleStartTime"
).
gte
(
toDayE
ndTime
).
lt
(
threeEndTime
));
queryThreeNft
.
addCriteria
(
Criteria
.
where
(
"saleStartTime"
).
gte
(
e
ndTime
).
lt
(
threeEndTime
));
/*queryThreeNft.addCriteria(Criteria.where("skuId").nin(allListSkuIds));*/
/*queryThreeNft.addCriteria(Criteria.where("skuId").nin(allListSkuIds));*/
queryThreeNft
.
addCriteria
(
Criteria
.
where
(
"shelvesHandle"
).
ne
(
"3"
));
queryThreeNft
.
addCriteria
(
Criteria
.
where
(
"shelvesHandle"
).
ne
(
"3"
));
Sort
sortThreeNft
=
Sort
.
by
(
Sort
.
Direction
.
ASC
,
"saleStartTime"
);
Sort
sortThreeNft
=
Sort
.
by
(
Sort
.
Direction
.
ASC
,
"saleStartTime"
);
...
@@ -735,7 +738,6 @@ public class DataUtils {
...
@@ -735,7 +738,6 @@ public class DataUtils {
idsList
.
put
(
"threeNftIds"
,
threeNftIds
);
idsList
.
put
(
"threeNftIds"
,
threeNftIds
);
idsList
.
put
(
"toDayCombinationIds"
,
toDayCombinationIds
);
idsList
.
put
(
"toDayCombinationIds"
,
toDayCombinationIds
);
idsList
.
put
(
"threeDayCombinationIds"
,
threeDayCombinationIds
);
idsList
.
put
(
"threeDayCombinationIds"
,
threeDayCombinationIds
);
idsList
.
put
(
"now"
,
nowTimeTime
);
setRedisNoticeIsd
(
idsList
);
setRedisNoticeIsd
(
idsList
);
return
idsList
;
return
idsList
;
}
}
...
...
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