记得上下班打卡 | 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
101f6080
Commit
101f6080
authored
May 06, 2022
by
wanglele
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
批量空投
parent
94058b07
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
16 deletions
+13
-16
GoblinNftExCodeMapper.xml
...liquidnet.service.goblin.mapper/GoblinNftExCodeMapper.xml
+2
-2
GoblinNftExCodeServiceImpl.java
...tform/service/impl/goblin/GoblinNftExCodeServiceImpl.java
+11
-14
No files found.
liquidnet-bus-do/liquidnet-service-goblin-do/src/main/resources/com.liquidnet.service.goblin.mapper/GoblinNftExCodeMapper.xml
View file @
101f6080
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
select
select
DISTINCT
DISTINCT
gnec.code,gnec.code_id,gnec.sku_id,gnec.box_sku_id,gnec.activity_id,gnec.state,gnec.redeem_uid,gnec.redeem_at,gnec.admin_uid,gnec.created_at
gnec.code,gnec.code_id,gnec.sku_id,gnec.box_sku_id,gnec.activity_id,gnec.state,gnec.redeem_uid,gnec.redeem_at,gnec.admin_uid,gnec.created_at
from goblin_nft_ex_code gnec inner join goblin_nft_ex_sku gnes on gnec.sku_id = gnes.sku_id
from goblin_nft_ex_code gnec inner join goblin_nft_ex_sku gnes on gnec.sku_id = gnes.sku_id
and gnes.activity_id = gnec.activity_id
<if
test=
"code != null and code != ''"
>
<if
test=
"code != null and code != ''"
>
and gnec.code = #{code,jdbcType=VARCHAR}
and gnec.code = #{code,jdbcType=VARCHAR}
</if>
</if>
...
@@ -147,7 +147,7 @@
...
@@ -147,7 +147,7 @@
select count(DISTINCT gnec.code)
select count(DISTINCT gnec.code)
from goblin_nft_ex_code gnec inner join goblin_nft_ex_sku gnes
from goblin_nft_ex_code gnec inner join goblin_nft_ex_sku gnes
on
on
gnec.sku_id = gnes.sku_id
gnec.sku_id = gnes.sku_id
and gnes.activity_id = gnec.activity_id
<if
test=
"code != null and code != ''"
>
<if
test=
"code != null and code != ''"
>
and gnec.code = #{code,jdbcType=VARCHAR}
and gnec.code = #{code,jdbcType=VARCHAR}
</if>
</if>
...
...
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/service/impl/goblin/GoblinNftExCodeServiceImpl.java
View file @
101f6080
...
@@ -276,12 +276,10 @@ public class GoblinNftExCodeServiceImpl implements IGoblinNftExCodeService {
...
@@ -276,12 +276,10 @@ public class GoblinNftExCodeServiceImpl implements IGoblinNftExCodeService {
StringBuffer
skuIds
=
new
StringBuffer
();
StringBuffer
skuIds
=
new
StringBuffer
();
StringBuffer
acticityIds
=
new
StringBuffer
();
StringBuffer
acticityIds
=
new
StringBuffer
();
for
(
GoblinNftExCode
gnc
:
goblinNftExCodes
)
{
for
(
GoblinNftExCode
gnc
:
goblinNftExCodes
)
{
if
(
StringUtil
.
isNotBlank
(
gnc
.
getSkuId
()))
{
skuIds
.
append
(
gnc
.
getSkuId
()).
append
(
","
);
skuIds
.
append
(
gnc
.
getSkuId
()).
append
(
","
);
if
(
StringUtil
.
isNotBlank
(
gnc
.
getBoxSkuId
()))
{
}
else
{
skuIds
.
append
(
gnc
.
getBoxSkuId
()).
append
(
","
);
skuIds
.
append
(
gnc
.
getBoxSkuId
()).
append
(
","
);
}
}
acticityIds
.
append
(
gnc
.
getActivityId
()).
append
(
","
);
acticityIds
.
append
(
gnc
.
getActivityId
()).
append
(
","
);
}
}
...
@@ -292,18 +290,17 @@ public class GoblinNftExCodeServiceImpl implements IGoblinNftExCodeService {
...
@@ -292,18 +290,17 @@ public class GoblinNftExCodeServiceImpl implements IGoblinNftExCodeService {
// 批量查询
// 批量查询
List
<
GoblinGoodsSku
>
goblinGoodsSkus
=
goblinGoodsSkuMapper
.
selectBySkuIds
(
skuIds
.
toString
());
List
<
GoblinGoodsSku
>
goblinGoodsSkus
=
goblinGoodsSkuMapper
.
selectBySkuIds
(
skuIds
.
toString
());
for
(
GoblinNftExCode
gnc
:
goblinNftExCodes
)
{
for
(
GoblinNftExCode
gnc
:
goblinNftExCodes
)
{
GoblinNftExCodeVo
goblinNftExCodeVo
=
GoblinNftExCodeVo
.
getNew
().
copy
(
gnc
);
for
(
GoblinGoodsSku
goblinGoodsSku
:
goblinGoodsSkus
)
{
for
(
GoblinGoodsSku
goblinGoodsSku
:
goblinGoodsSkus
)
{
if
(
goblinNftExCodeVo
.
getSkuId
().
equals
(
goblinGoodsSku
.
getSkuId
()))
{
GoblinNftExCodeVo
goblinNftExCodeVo
=
GoblinNftExCodeVo
.
getNew
().
copy
(
gnc
);
if
(
StringUtil
.
isNotBlank
(
gnc
.
getBoxSkuId
())
&&
gnc
.
getBoxSkuId
().
equals
(
goblinGoodsSku
.
getSkuId
()))
{
goblinNftExCodeVo
.
setSkuName
(
goblinGoodsSku
.
getName
());
goblinNftExCodeVo
.
setSkuName
(
goblinGoodsSku
.
getName
());
goblinNftExCodeArrayList
.
add
(
goblinNftExCodeVo
);
}
break
;
}
else
{
if
(
gnc
.
getState
().
equals
(
2
))
{
if
(
StringUtil
.
is
Blank
(
gnc
.
getBoxSkuId
())
&&
gnc
.
get
SkuId
().
equals
(
goblinGoodsSku
.
getSkuId
()))
{
if
(
StringUtil
.
is
NotBlank
(
gnc
.
getBoxSkuId
())
&&
gnc
.
getBox
SkuId
().
equals
(
goblinGoodsSku
.
getSkuId
()))
{
goblinNftExCodeVo
.
setSkuName
(
goblinGoodsSku
.
getName
());
goblinNftExCodeVo
.
set
Result
SkuName
(
goblinGoodsSku
.
getName
());
goblinNftExCodeArrayList
.
add
(
goblinNftExCodeVo
);
}
else
if
(
StringUtil
.
isBlank
(
gnc
.
getBoxSkuId
())
&&
gnc
.
getSkuId
().
equals
(
goblinGoodsSku
.
getSkuId
()))
{
break
;
goblinNftExCodeVo
.
setResultSkuName
(
goblinGoodsSku
.
getName
())
;
}
}
}
}
}
}
...
...
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