Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mall-server
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
yimu
mall-server
Commits
e55c7c94
Commit
e55c7c94
authored
Jan 13, 2022
by
秦兴亮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
最新代码
parent
a00ce1ad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
OrderServiceImpl.java
...all/server/front/order/service/impl/OrderServiceImpl.java
+8
-4
ChainUtil.java
...c/main/java/com/fzm/mall/server/front/util/ChainUtil.java
+2
-2
No files found.
mall-server-front/src/main/java/com/fzm/mall/server/front/order/service/impl/OrderServiceImpl.java
View file @
e55c7c94
...
@@ -42,6 +42,7 @@ import com.fzm.mall.server.front.user.service.IUserService;
...
@@ -42,6 +42,7 @@ import com.fzm.mall.server.front.user.service.IUserService;
import
com.fzm.mall.server.front.util.ChainUtil
;
import
com.fzm.mall.server.front.util.ChainUtil
;
import
com.fzm.mall.server.front.util.OrderUtil
;
import
com.fzm.mall.server.front.util.OrderUtil
;
import
com.fzm.mall.server.front.util.TimeUtil
;
import
com.fzm.mall.server.front.util.TimeUtil
;
import
io.netty.util.internal.StringUtil
;
import
lombok.RequiredArgsConstructor
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -1179,10 +1180,13 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
...
@@ -1179,10 +1180,13 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements
List
<
Long
>
noList
=
JSON
.
parseArray
(
no
,
Long
.
class
);
List
<
Long
>
noList
=
JSON
.
parseArray
(
no
,
Long
.
class
);
SkuVo
skuVo
=
goodSkuService
.
getSkuVoBySkuId
(
orderDetail
.
getSkuId
());
SkuVo
skuVo
=
goodSkuService
.
getSkuVoBySkuId
(
orderDetail
.
getSkuId
());
String
serialNo
=
skuService
.
getSerialNo
(
skuVo
.
getCommodityPassId
());
String
serialNo
=
skuService
.
getSerialNo
(
skuVo
.
getCommodityPassId
());
List
<
Long
>
serialNoList
=
JSON
.
parseArray
(
serialNo
,
Long
.
class
);
if
(!
StringUtil
.
isNullOrEmpty
(
serialNo
)){
serialNoList
.
addAll
(
noList
);
List
<
Long
>
serialNoList
=
JSON
.
parseArray
(
serialNo
,
Long
.
class
);
Collections
.
sort
(
serialNoList
);
serialNoList
.
addAll
(
noList
);
skuService
.
updateSerialNo
(
JSON
.
toJSONString
(
serialNoList
),
skuVo
.
getCommodityPassId
());
Collections
.
sort
(
serialNoList
);
skuService
.
updateSerialNo
(
JSON
.
toJSONString
(
serialNoList
),
skuVo
.
getCommodityPassId
());
}
}
}
}
}
...
...
mall-server-front/src/main/java/com/fzm/mall/server/front/util/ChainUtil.java
View file @
e55c7c94
...
@@ -134,11 +134,11 @@ public class ChainUtil {
...
@@ -134,11 +134,11 @@ public class ChainUtil {
String
hash
=
null
;
String
hash
=
null
;
switch
(
Objects
.
requireNonNull
(
ChainTypeEnum
.
getByType
(
type
)))
{
switch
(
Objects
.
requireNonNull
(
ChainTypeEnum
.
getByType
(
type
)))
{
case
MAIN:
case
MAIN:
hash
=
mainClient
.
evmTransfer
(
abi
,
cAddr
,
EvmTokenEnum
.
ERC1155
,
0L
,
to
,
tokenId
,
amount
,
hash
=
mainClient
.
evmTransfer
(
abi
,
cAddr
,
EvmTokenEnum
.
ERC1155
,
100000
0L
,
to
,
tokenId
,
amount
,
"transfer"
,
publisher
,
null
,
false
);
"transfer"
,
publisher
,
null
,
false
);
break
;
break
;
case
PARA:
case
PARA:
hash
=
paraClient
.
evmTransfer
(
abi
,
cAddr
,
EvmTokenEnum
.
ERC1155
,
0L
,
to
,
tokenId
,
amount
,
hash
=
paraClient
.
evmTransfer
(
abi
,
cAddr
,
EvmTokenEnum
.
ERC1155
,
100000
0L
,
to
,
tokenId
,
amount
,
"transfer"
,
publisher
,
null
,
true
);
"transfer"
,
publisher
,
null
,
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