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
a6c50668
Commit
a6c50668
authored
Dec 22, 2021
by
tangtuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v1.0.0功能开发
parent
14afe01e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
CopyrightApplyServiceImpl.java
...om/fzm/common/service/impl/CopyrightApplyServiceImpl.java
+7
-1
No files found.
joying-common/src/main/java/com/fzm/common/service/impl/CopyrightApplyServiceImpl.java
View file @
a6c50668
...
@@ -22,6 +22,7 @@ import com.fzm.common.service.*;
...
@@ -22,6 +22,7 @@ import com.fzm.common.service.*;
import
com.fzm.common.utils.OssUtil
;
import
com.fzm.common.utils.OssUtil
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageInfo
;
import
com.github.pagehelper.PageInfo
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor
;
import
org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -37,6 +38,7 @@ import java.util.concurrent.ExecutionException;
...
@@ -37,6 +38,7 @@ import java.util.concurrent.ExecutionException;
* @author tangtuo
* @author tangtuo
* @date 2021/12/9 11:40
* @date 2021/12/9 11:40
*/
*/
@Slf4j
@Service
@Service
@Transactional
(
rollbackFor
=
RuntimeException
.
class
)
@Transactional
(
rollbackFor
=
RuntimeException
.
class
)
public
class
CopyrightApplyServiceImpl
extends
ServiceImpl
<
CopyrightApplyMapper
,
CopyrightApply
>
implements
CopyrightApplyService
{
public
class
CopyrightApplyServiceImpl
extends
ServiceImpl
<
CopyrightApplyMapper
,
CopyrightApply
>
implements
CopyrightApplyService
{
...
@@ -264,6 +266,7 @@ public class CopyrightApplyServiceImpl extends ServiceImpl<CopyrightApplyMapper,
...
@@ -264,6 +266,7 @@ public class CopyrightApplyServiceImpl extends ServiceImpl<CopyrightApplyMapper,
}
}
copyrightApplyOwnerRelationService
.
saveBatch
(
owners
);
copyrightApplyOwnerRelationService
.
saveBatch
(
owners
);
}
}
copyrightApply
.
setRegisterState
(
CopyrightApplyState
.
TO_BE_REVIEWED
.
getCode
());
return
updateById
(
copyrightApply
);
return
updateById
(
copyrightApply
);
}
}
...
@@ -309,7 +312,10 @@ public class CopyrightApplyServiceImpl extends ServiceImpl<CopyrightApplyMapper,
...
@@ -309,7 +312,10 @@ public class CopyrightApplyServiceImpl extends ServiceImpl<CopyrightApplyMapper,
CopyrightVo
detail
=
this
.
getDetail
(
id
);
CopyrightVo
detail
=
this
.
getDetail
(
id
);
OpusCategory
category
=
opusCategoryService
.
getById
(
detail
.
getOpusCategoryId
());
OpusCategory
category
=
opusCategoryService
.
getById
(
detail
.
getOpusCategoryId
());
CopyrightRequest
copyrightRequest
=
new
CopyrightRequest
(
detail
,
category
);
CopyrightRequest
copyrightRequest
=
new
CopyrightRequest
(
detail
,
category
);
String
response
=
HttpUtil
.
post
(
"https://p.yareiot.com/ccct/api/copyright/create"
,
JSONUtil
.
toJsonStr
(
copyrightRequest
),
10000
);
String
json
=
JSONUtil
.
toJsonStr
(
copyrightRequest
);
log
.
info
(
"请求版权局接口, 请求参数:{}"
,
json
);
String
response
=
HttpUtil
.
post
(
"https://p.yareiot.com/ccct/api/copyright/create"
,
json
,
10000
);
log
.
info
(
"版权局响应内容:{}"
,
response
);
if
(
StringUtils
.
isBlank
(
response
))
{
if
(
StringUtils
.
isBlank
(
response
))
{
throw
GlobalException
.
newException
(
ResultCode
.
COPYRIGHT_FAILED
,
"版权局接口无响应,请稍后重试"
);
throw
GlobalException
.
newException
(
ResultCode
.
COPYRIGHT_FAILED
,
"版权局接口无响应,请稍后重试"
);
}
}
...
...
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