Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fzm-joying
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
lei
fzm-joying
Commits
7ef7a979
Commit
7ef7a979
authored
Mar 22, 2022
by
33
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化注入
parent
6c97ece9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
82 additions
and
57 deletions
+82
-57
CopyrightApplyServiceImpl.java
...om/fzm/common/service/impl/CopyrightApplyServiceImpl.java
+30
-19
NftServiceImpl.java
...main/java/com/fzm/common/service/impl/NftServiceImpl.java
+24
-16
OrderServiceImpl.java
...in/java/com/fzm/common/service/impl/OrderServiceImpl.java
+12
-10
WxPayServiceImpl.java
...in/java/com/fzm/common/service/impl/WxPayServiceImpl.java
+16
-12
No files found.
joying-common/src/main/java/com/fzm/common/service/impl/CopyrightApplyServiceImpl.java
View file @
7ef7a979
...
...
@@ -28,12 +28,10 @@ import com.fzm.common.utils.CopyrightSignUtil;
import
com.fzm.common.utils.ObsUtil
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageInfo
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.redisson.Redisson
;
import
org.redisson.api.RLock
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.dao.DuplicateKeyException
;
import
org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor
;
import
org.springframework.stereotype.Service
;
...
...
@@ -56,24 +54,37 @@ import java.util.concurrent.TimeUnit;
@Slf4j
@Service
@Transactional
(
rollbackFor
=
RuntimeException
.
class
)
@RequiredArgsConstructor
(
onConstructor
=
@__
(
@Autowired
))
public
class
CopyrightApplyServiceImpl
extends
ServiceImpl
<
CopyrightApplyMapper
,
CopyrightApply
>
implements
CopyrightApplyService
{
private
final
CopyrightApplyMapper
copyrightApplyMapper
;
private
final
CopyrightFileService
copyrightFileService
;
private
final
CopyrightApplyOwnerRelationService
copyrightApplyOwnerRelationService
;
private
final
CopyrightAuthorService
copyrightAuthorService
;
private
final
CopyrightAuthorityRelationService
copyrightAuthorityRelationService
;
private
final
AuthorityService
authorityService
;
private
final
CopyrightOwnerService
copyrightOwnerService
;
private
final
UserService
userService
;
private
final
AuthPersonService
authPersonService
;
private
final
ObsUtil
obsUtil
;
private
final
ThreadPoolTaskExecutor
threadPoolTaskExecutor
;
private
final
OpusCategoryService
opusCategoryService
;
private
final
CopyrightProperties
copyrightProperties
;
private
final
DraftService
draftService
;
private
final
NotifyPublisher
notifyPublisher
;
@Resource
private
CopyrightApplyMapper
copyrightApplyMapper
;
@Resource
private
CopyrightFileService
copyrightFileService
;
@Resource
private
CopyrightApplyOwnerRelationService
copyrightApplyOwnerRelationService
;
@Resource
private
CopyrightAuthorService
copyrightAuthorService
;
@Resource
private
CopyrightAuthorityRelationService
copyrightAuthorityRelationService
;
@Resource
private
AuthorityService
authorityService
;
@Resource
private
CopyrightOwnerService
copyrightOwnerService
;
@Resource
private
UserService
userService
;
@Resource
private
AuthPersonService
authPersonService
;
@Resource
private
ObsUtil
obsUtil
;
@Resource
private
ThreadPoolTaskExecutor
threadPoolTaskExecutor
;
@Resource
private
OpusCategoryService
opusCategoryService
;
@Resource
private
CopyrightProperties
copyrightProperties
;
@Resource
private
DraftService
draftService
;
@Resource
private
NotifyPublisher
notifyPublisher
;
@Resource
private
NftService
nftService
;
@Resource
...
...
joying-common/src/main/java/com/fzm/common/service/impl/NftServiceImpl.java
View file @
7ef7a979
...
...
@@ -34,11 +34,9 @@ import com.fzm.common.utils.RedisUtil;
import
com.fzm.common.utils.SmsUtil
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageInfo
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.amqp.rabbit.core.RabbitTemplate
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.dao.DuplicateKeyException
;
import
org.springframework.stereotype.Service
;
...
...
@@ -56,21 +54,31 @@ import java.util.stream.Collectors;
*/
@Slf4j
@Service
@RequiredArgsConstructor
(
onConstructor
=
@__
(
@Autowired
))
public
class
NftServiceImpl
extends
ServiceImpl
<
NftMapper
,
Nft
>
implements
NftService
{
private
final
ParaChainClient
paraChainClient
;
private
final
RedisUtil
redisUtil
;
private
final
UserService
userService
;
private
final
NftMapper
nftMapper
;
private
final
CategoryService
categoryService
;
private
final
CollectionService
collectionService
;
private
final
NftTransferRecordService
nftTransferRecordService
;
private
final
SmsUtil
smsUtil
;
private
final
SmsProperties
smsProperties
;
private
final
RabbitTemplate
rabbitTemplate
;
private
final
ObsUtil
obsUtil
;
private
final
NotifyPublisher
notifyPublisher
;
@Resource
private
ParaChainClient
paraChainClient
;
@Resource
private
RedisUtil
redisUtil
;
@Resource
private
UserService
userService
;
@Resource
private
NftMapper
nftMapper
;
@Resource
private
CategoryService
categoryService
;
@Resource
private
CollectionService
collectionService
;
@Resource
private
NftTransferRecordService
nftTransferRecordService
;
@Resource
private
SmsUtil
smsUtil
;
@Resource
private
SmsProperties
smsProperties
;
@Resource
private
RabbitTemplate
rabbitTemplate
;
@Resource
private
ObsUtil
obsUtil
;
@Resource
private
NotifyPublisher
notifyPublisher
;
@Resource
private
CopyrightApplyService
copyrightApplyService
;
...
...
joying-common/src/main/java/com/fzm/common/service/impl/OrderServiceImpl.java
View file @
7ef7a979
...
...
@@ -16,9 +16,7 @@ import com.fzm.common.interceptor.LoginUserInfo;
import
com.fzm.common.mapper.OrderMapper
;
import
com.fzm.common.service.*
;
import
com.fzm.common.utils.SnowflakeUtil
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.amqp.rabbit.core.RabbitTemplate
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
...
...
@@ -35,15 +33,19 @@ import java.util.List;
*/
@Service
@Transactional
(
rollbackFor
=
RuntimeException
.
class
)
@RequiredArgsConstructor
(
onConstructor
=
@__
(
@Autowired
))
public
class
OrderServiceImpl
extends
ServiceImpl
<
OrderMapper
,
Order
>
implements
OrderService
{
private
final
NftService
nftService
;
private
final
CopyrightApplyService
copyrightApplyService
;
private
final
SnowflakeUtil
snowflakeUtil
;
private
final
RabbitTemplate
rabbitTemplate
;
private
final
OrderMapper
orderMapper
;
private
final
ChargeService
chargeService
;
@Resource
private
NftService
nftService
;
@Resource
private
CopyrightApplyService
copyrightApplyService
;
@Resource
private
SnowflakeUtil
snowflakeUtil
;
@Resource
private
RabbitTemplate
rabbitTemplate
;
@Resource
private
OrderMapper
orderMapper
;
@Resource
private
ChargeService
chargeService
;
@Resource
private
WxPayService
wxPayService
;
...
...
joying-common/src/main/java/com/fzm/common/service/impl/WxPayServiceImpl.java
View file @
7ef7a979
...
...
@@ -17,7 +17,6 @@ import com.fzm.common.properties.WxPayProperties;
import
com.fzm.common.service.*
;
import
com.fzm.common.utils.SnowflakeUtil
;
import
com.wechat.pay.contrib.apache.httpclient.util.AesUtil
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.http.client.methods.CloseableHttpResponse
;
...
...
@@ -29,7 +28,6 @@ import org.apache.http.util.EntityUtils;
import
org.redisson.Redisson
;
import
org.redisson.api.RLock
;
import
org.springframework.amqp.rabbit.core.RabbitTemplate
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.util.Base64Utils
;
...
...
@@ -55,17 +53,23 @@ import java.util.concurrent.TimeUnit;
@Slf4j
@Service
@Transactional
(
rollbackFor
=
RuntimeException
.
class
)
@RequiredArgsConstructor
(
onConstructor
=
@__
(
@Autowired
))
public
class
WxPayServiceImpl
implements
WxPayService
{
private
final
CloseableHttpClient
httpClient
;
private
final
WxPayProperties
wxPayProperties
;
private
final
PrivateKey
wxPrivateKey
;
private
final
OrderService
orderService
;
private
final
PaymentService
paymentService
;
private
final
RabbitTemplate
rabbitTemplate
;
private
final
SnowflakeUtil
snowflakeUtil
;
private
final
SmsService
smsService
;
@Resource
private
CloseableHttpClient
httpClient
;
@Resource
private
WxPayProperties
wxPayProperties
;
@Resource
private
PrivateKey
wxPrivateKey
;
@Resource
private
OrderService
orderService
;
@Resource
private
PaymentService
paymentService
;
@Resource
private
RabbitTemplate
rabbitTemplate
;
@Resource
private
SnowflakeUtil
snowflakeUtil
;
@Resource
private
SmsService
smsService
;
@Resource
private
Redisson
redisson
;
@Resource
...
...
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