Commit 7968f009 authored by tangtuo's avatar tangtuo

版权相关功能开发

parent 16f962bc
......@@ -4,7 +4,7 @@
<inspection_tool class="ArgNamesErrorsInspection" enabled="false" level="ERROR" enabled_by_default="false" />
<inspection_tool class="DuplicatedCode" enabled="true" level="WEAK WARNING" enabled_by_default="true">
<Languages>
<language minSize="57" name="Java" />
<language minSize="60" name="Java" />
</Languages>
</inspection_tool>
<inspection_tool class="JavaDoc" enabled="true" level="WARNING" enabled_by_default="true">
......
......@@ -23,6 +23,10 @@
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-amqp</artifactId>
</dependency>
<dependency>
<groupId>com.fzm</groupId>
<artifactId>joying-common</artifactId>
<version>1.0.0</version>
......@@ -36,10 +40,6 @@
<artifactId>druid-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>com.github.xiaoymin</groupId>
<artifactId>knife4j-spring-boot-starter</artifactId>
</dependency>
......
......@@ -12,6 +12,8 @@ import com.github.pagehelper.PageInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
......@@ -21,13 +23,17 @@ import java.util.List;
* @author tangtuo
* @date 2021/7/5 15:34
*/
@Authentication
//@Authentication
@Slf4j
@RestController
@RequestMapping("/nft")
@Api(tags = "剧本nft管理")
public class NftController {
@Resource
private RabbitTemplate rabbitTemplate;
@Resource
private NftService nftService;
@Resource
......@@ -96,4 +102,11 @@ public class NftController {
List<NftTransferRecordVo> list = nftTransferRecordService.getTransferRecordList(nftHash, fromAddress, toAddress, startDate, endDate);
return ResponseModel.success(new PageInfo<>(list));
}
@GetMapping("/send")
public String send(@RequestParam String msg) {
rabbitTemplate.convertAndSend("copyright.direct", "copyright.apply", msg);
log.info("发送消息:{}", msg);
return "SUCCESS";
}
}
package com.fzm.admin.listener;
import cn.hutool.core.lang.TypeReference;
import cn.hutool.http.HttpUtil;
import cn.hutool.json.JSONUtil;
import com.fzm.common.config.RabbitMQConfig;
import com.fzm.common.entity.dto.CopyrightQueryRequest;
import com.fzm.common.entity.dto.CopyrightQueryResponse;
import com.fzm.common.entity.dto.CopyrightResponse;
import com.fzm.common.enums.ResultCode;
import com.fzm.common.exception.GlobalException;
import com.fzm.common.properties.CopyrightProperties;
import com.fzm.common.utils.CopyrightSignUtil;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
import java.util.TreeMap;
/**
* @author tangtuo
* @date 2021/12/23 14:56
*/
@Slf4j
@Component
public class CopyrightLister {
@Resource
private CopyrightProperties copyrightProperties;
/**
* 主动查询当前流水号对应的版权审批结果
*
* @param serial_code
*/
@RabbitListener(queues = RabbitMQConfig.COPYRIGHT_QUEUE)
public void listerCopyrightApply(String serial_code) {
log.info("监听者接收消息, 流水号为: {}", serial_code);
CopyrightQueryRequest request = new CopyrightQueryRequest(serial_code, copyrightProperties.getAppId());
TreeMap<String, String> map = this.beanToMap(request, copyrightProperties.getAppSecret());
String sign = CopyrightSignUtil.generateSign(map);
request.setSign(sign);
String json = JSONUtil.toJsonStr(request);
log.info("查询审核结果, 当前流水号为:{} , 请求参数为 : {}", serial_code, json);
String response = HttpUtil.post(copyrightProperties.getQueryUrl(), json, 10000);
log.info("查询审核结果接口响应内容: {}", response);
if (StringUtils.isBlank(response)) {
throw GlobalException.newException(ResultCode.COPYRIGHT_FAILED, "版权局接口无响应,请稍后重试");
}
CopyrightQueryResponse copyrightResponse = JSONUtil.toBean(response, CopyrightQueryResponse.class);
if (copyrightResponse == null) {
throw GlobalException.newException(ResultCode.COPYRIGHT_FAILED, "版权局接口无响应,请稍后重试");
}
if (!copyrightResponse.isSuccess()) {
throw GlobalException.newException(ResultCode.COPYRIGHT_FAILED, copyrightResponse.getMessage());
}
// 如果审核结果还是审核中的话,就继续把流水号丢进延时队列,2小时后再查一次
// 审核成功或失败的话,更新审核结果
}
private TreeMap<String, String> beanToMap(CopyrightQueryRequest request, String app_secret) {
TreeMap<String, String> map = JSONUtil.toBean(JSONUtil.toJsonStr(request), new TypeReference<TreeMap<String, String>>() {
}, true);
map.put("biz_content", JSONUtil.toJsonStr(request.getBiz_content()));
map.put("app_secret", app_secret);
return map;
}
}
......@@ -46,6 +46,19 @@ spring:
redis:
# 缓存失效时间
time-to-live: 86400000
rabbitmq:
host: 172.16.101.135
port: 5672
username: admin
password: admin
listener:
simple:
retry:
enabled: true
max-attempts: 5
initial-interval: 1000
multiplier: 2
stateless: true
swagger:
title: 乐映影视后台管理系统
description: 乐映影视后台管理系统RESTFUL API
......@@ -83,7 +96,9 @@ aliyun:
encrypt-bucket: test-nft-2
copyright:
url: https://p.yareiot.com/ccct/api/copyright/create
apply-url: https://p.yareiot.com/ccct/api/copyright/create
query-url: https://p.yareiot.com/ccct/api/copyright/query
app-id: 289391457858
app-secret: xExjKUCYH1nrze6Hpxf8s1dYWdxEggo2FiwKlZKygCItOV7E8bFhkyr4C192uhK
......@@ -47,7 +47,19 @@ spring:
redis:
# 缓存失效时间
time-to-live: 86400000
rabbitmq:
host: 10.0.0.81
port: 5672
username: admin
password: admin
listener:
simple:
retry:
enabled: true
max-attempts: 5
initial-interval: 1000
multiplier: 2
stateless: true
swagger:
title: 乐映影视乐映影视后台管理系统
description: 乐映影视后台管理系统RESTFUL API
......@@ -84,3 +96,8 @@ aliyun:
simple-bucket: test-nft
encrypt-bucket: test-nft-2
copyright:
url: https://p.yareiot.com/ccct/api/copyright/create
app-id: 289391457858
app-secret: xExjKUCYH1nrze6Hpxf8s1dYWdxEggo2FiwKlZKygCItOV7E8bFhkyr4C192uhK
server:
port: 8002
spring:
main:
allow-bean-definition-overriding: true
datasource:
url: jdbc:mysql://146.56.197.42:3306/joying?useUnicode=true&characterEncoding=utf8&useSSL=false&tinyInt1isBit=false
username: root
password: fzm_db_01@TEST
platform: mysql
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
druid:
initial-size: 5
min-idle: 5
max-active: 20
max-wait: 60000
time-between-eviction-runs-millis: 60000
min-evictable-idle-time-millis: 300000
validation-query: SELECT 1 FROM DUAL
test-while-idle: true
test-on-borrow: false
test-on-return: false
pool-prepared-statements: false
max-pool-prepared-statement-per-connection-size: 20
filters: stat ,wall
connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
useGlobalDataSourceStat: true
redis:
database: 2
host: 146.56.218.121
port: 6379
password: fzmcache
lettuce:
pool:
# 连接池最大连接数(使用负值表示没有限制) 默认 8
max-active: 100
# 连接池最大阻塞等待时间(使用负值表示没有限制) 默认 -1
max-wait: -1
# 连接池中的最大空闲连接 默认 8
max-idle: 8
# 连接池中的最小空闲连接 默认 0
min-idle: 0
cache:
# 整合SpringCache,redis作为缓存类型
type: redis
redis:
# 缓存失效时间
time-to-live: 86400000
rabbitmq:
host: 129.211.166.223
port: 5672
username: guest
password: guest
listener:
simple:
retry:
enabled: true
max-attempts: 5
initial-interval: 1000
multiplier: 2
stateless: true
swagger:
title: 乐映影视后台管理系统
description: 乐映影视后台管理系统RESTFUL API
version: 1.0.0
base-package: com.fzm.admin.controller
base-path: /**
enabled: true
globalOperationParameters:
- description: Authorization
modelRef: string
name: Authorization
parameterType: header
required: false
contact:
name: tangtuo
email: ttuo@33.com
chain:
para:
rpc-url: http://146.56.197.42:12021
withhold-addr: 1417K9fd5vt4zYW86xinWiCbAkNP794aNy
withhold-key: 19d78691584930407e63cd35ac6e67fae6113894b41812e65847d4a365a802a0
title: user.p.mall.
admin: 133AfuMYQXRxc45JGUb1jLk1M1W4ka39L1
admin-key: 85c6c95bcb41779f1d197e686d26b228a523fa36b77cfed79edb59b8853b569b
contract-name: user.evm.0xb3ae98ac253679602d54d1513aa9cad7d1b10d5f5117d5ce999c1bf67906ba99
contract-address: 15DtbSyS4eVFxdF87jmrcAdXMSAwXEHVLW
aliyun:
oss:
app-key: LTAI5tHGn7cVJdEtihTFLSeB
app-secret: XYmfBSbLaZoblGXZwIXkbhfBD7a1eg
end-point: oss-cn-hangzhou.aliyuncs.com
simple-bucket: test-nft
encrypt-bucket: test-nft-2
copyright:
apply-url: https://p.yareiot.com/ccct/api/copyright/create
query-url: https://p.yareiot.com/ccct/api/copyright/query
app-id: 289391457858
app-secret: xExjKUCYH1nrze6Hpxf8s1dYWdxEggo2FiwKlZKygCItOV7E8bFhkyr4C192uhK
......@@ -82,3 +82,8 @@ aliyun:
simple-bucket: joying-file
encrypt-bucket: joying-nft
copyright:
url: https://p.yareiot.com/ccct/ccct/api/copyright/create
app-id: 289391457858
app-secret: xExjKUCYH1nrze6Hpxf8s1dYWdxEggo2FiwKlZKygCItOV7E8bFhkyr4C192uhK
......@@ -46,6 +46,19 @@ spring:
redis:
# 缓存失效时间
time-to-live: 86400000
rabbitmq:
host: 10.0.0.81
port: 5672
username: admin
password: admin
listener:
simple:
retry:
enabled: true
max-attempts: 5
initial-interval: 1000
multiplier: 2
stateless: true
swagger:
title: 乐映影视乐映影视后台管理系统
description: 乐映影视后台管理系统RESTFUL API
......@@ -82,3 +95,8 @@ aliyun:
simple-bucket: test-nft
encrypt-bucket: test-nft-2
copyright:
url: https://p.yareiot.com/ccct/api/copyright/create
app-id: 289391457858
app-secret: xExjKUCYH1nrze6Hpxf8s1dYWdxEggo2FiwKlZKygCItOV7E8bFhkyr4C192uhK
spring:
profiles:
active: local
active: nj
application:
name: ly-admin
......
......@@ -62,6 +62,10 @@
<appender-ref ref="CONSOLE"/>
<appender-ref ref="INFO_FILE"/>
</springProfile>
<springProfile name="nj">
<appender-ref ref="CONSOLE"/>
<appender-ref ref="INFO_FILE"/>
</springProfile>
</root>
</configuration>
\ No newline at end of file
package com.fzm.admin;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class LyAdminApplicationTests {
@Test
void contextLoads() {
}
}
......@@ -32,6 +32,10 @@
<artifactId>spring-boot-starter-aop</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-amqp</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-pool2</artifactId>
<version>2.0</version>
......
package com.fzm.common.config;
import org.springframework.amqp.core.*;
import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* @author tangtuo
* @date 2021/12/23 13:25
*/
@Configuration
public class RabbitMQConfig {
public static final String COPYRIGHT_DIRECT = "copyright.direct";
public static final String DEAD_LETTER_DIRECT = "dl.direct";
public static final String COPYRIGHT_QUEUE = "copyright.queue";
public static final String DEAD_LETTER_QUEUE = "dl.queue";
/**
* 定义直连交换机copyright.direct
*
* @return
*/
@Bean
public DirectExchange copyrightDirect() {
return new DirectExchange(COPYRIGHT_DIRECT, true, false, null);
}
/**
* 死信交换机
*
* @return
*/
@Bean
public DirectExchange dlDirect() {
return new DirectExchange(DEAD_LETTER_DIRECT, true, false, null);
}
/**
* 存放死信的队列,用户监听这个队列
*
* @return
*/
@Bean
public Queue copyrightQueue() {
return new Queue(COPYRIGHT_QUEUE, true);
}
/**
* 定义死信队列
*
* @return
*/
@Bean
public Queue dlQueue() {
return QueueBuilder.durable(DEAD_LETTER_QUEUE)
.ttl(1000 * 60 * 60 * 2)
.deadLetterExchange(DEAD_LETTER_DIRECT)
.deadLetterRoutingKey("copyright.notify")
.build();
}
@Bean
public Binding dlBinding() {
return BindingBuilder.bind(dlQueue()).to(copyrightDirect()).with("copyright.apply");
}
@Bean
public Binding copyrightBinding() {
return BindingBuilder.bind(copyrightQueue()).to(dlDirect()).with("copyright.notify");
}
@Bean
public MessageConverter messageConverter() {
return new Jackson2JsonMessageConverter();
}
}
......@@ -35,6 +35,9 @@ public class CopyrightApply {
@ApiModelProperty(value = "nft名称")
private String nftName;
@ApiModelProperty(value = "登记委托书")
private String registerEntrust;
@ApiModelProperty(value = "作品名称")
private String opusName;
......@@ -83,6 +86,9 @@ public class CopyrightApply {
@ApiModelProperty(value = "权力归属证明材料的文件地址")
private String authorityAscriptionProve;
@ApiModelProperty(value = "作品权力保证书")
private String opusPowerGuarantee;
@ApiModelProperty(value = "申请时间")
private Date applyTime;
......
......@@ -29,6 +29,10 @@ public class CopyrightDTO {
@ApiModelProperty(value = "nft名称")
private String nftName;
@NotBlank(message = "登记委托书不能为空")
@ApiModelProperty(value = "登记委托书")
private String registerEntrust;
@NotBlank(message = "作品名称不能为空")
@ApiModelProperty(value = "作品名称")
private String opusName;
......@@ -83,17 +87,21 @@ public class CopyrightDTO {
private String authorityAcquireMode;
@NotBlank(message = "权力取得证明材料不能为空")
@ApiModelProperty(value = "权力取得证明材料的文件地址")
@ApiModelProperty(value = "权力取得证明材料")
private String authorityAcquireProve;
@NotBlank(message = "权力归属方式不能为空")
@ApiModelProperty(value = "权力归属方式")
private String authorityAscriptionMode;
@NotBlank(message = "权力归属证明材料不能为空")
@NotBlank(message = "权力归属材料不能为空")
@ApiModelProperty(value = "权力归属证明材料的文件地址")
private String authorityAscriptionProve;
@NotBlank(message = "作品权力保证书不能为空")
@ApiModelProperty(value = "作品权力保证书")
private String opusPowerGuarantee;
@NotEmpty(message = "作者列表不能为空")
@ApiModelProperty(value = "作者列表")
private List<Author> authors;
......
package com.fzm.common.entity.dto;
import cn.hutool.core.date.DateUtil;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;
/**
* @author tangtuo
* @date 2021/12/23 17:26
*/
@Data
public class CopyrightQueryRequest {
private String app_id;
private String charset = "utf-8";
private String sign;
private String sign_type = "md5";
private String timestamp = DateUtil.format(new Date(), "yyyy-MM-dd HH:mm:ss");
private String version = "1.0";
private BizContent biz_content;
@Data
@AllArgsConstructor
public static class BizContent {
private String serial_code;
}
public CopyrightQueryRequest(String serial_code, String app_id) {
this.app_id = app_id;
this.biz_content = new BizContent(serial_code);
}
}
package com.fzm.common.entity.dto;
import lombok.Data;
/**
* @author tangtuo
* @date 2021/12/23 18:18
*/
@Data
public class CopyrightQueryResponse {
private Integer audit_status;
private CertificateInfo certificate;
private int code;
private CopyrightRequest.CopyrightDetail copyright_detail;
private String message;
private String remark;
private String sign;
private boolean success;
private String timestamp;
@Data
public static class CertificateInfo {
private String author_name;
private Integer cert_status;
private Integer cert_type;
private String create_time;
private String finish_time;
private Integer form_code;
private Integer is_publicity;
private Integer mail_status;
private String mail_time;
private String owner_name;
private String power_range;
private String publish_time;
private String register_code;
private String territorial_scope;
private String works_name;
private Integer works_type_code;
}
}
......@@ -25,10 +25,10 @@ import java.util.stream.Collectors;
@Data
public class CopyrightRequest {
private String app_id = "289391457858";
private String app_id;
private String charset = "utf-8";
private String sign;
private String sign_type = "RSA";
private String sign_type = "md5";
private String timestamp = DateUtil.format(new Date(), "yyyy-MM-dd HH:mm:ss");
private String version = "1.0";
private CopyrightDetail biz_content;
......@@ -42,7 +42,7 @@ public class CopyrightRequest {
@ApiModelProperty(value = "代理证明图片")//无
private String agency_photo;
@ApiModelProperty(value = "作者身份证明图片")//无
@ApiModelProperty(value = "作者身份证明图片")
private String author_photo;
@ApiModelProperty(value = "合作作者")
......@@ -54,7 +54,7 @@ public class CopyrightRequest {
@ApiModelProperty(value = "作品完成时间,格式:2021-09-10")
private String end_time;
@ApiModelProperty(value = "委托证明图片")//无
@ApiModelProperty(value = "委托证明图片")
private String entrust_photo;
@ApiModelProperty(value = "权利获得方式编码")
......@@ -144,7 +144,7 @@ public class CopyrightRequest {
public CopyrightDetail(CopyrightVo copyrightVo, OpusCategory opusCategory) {
this.affilia_photo = copyrightVo.getAuthorityAscriptionProve();
this.agency_photo = "";
this.agency_photo = copyrightVo.getRegisterEntrust();
this.author_photo = "";
this.end_address = copyrightVo.getOpusCompleteProvince() + copyrightVo.getOpusCompleteCity();
this.end_time = DateUtil.format(copyrightVo.getOpusCompleteDate(), "yyyy-MM-dd");
......@@ -182,7 +182,7 @@ public class CopyrightRequest {
copyrightVo.getAuthorities().stream().map(
Authority::getAuthority).collect(
Collectors.toList()), "、");
this.rights_guarantee_photo = "";
this.rights_guarantee_photo = copyrightVo.getOpusPowerGuarantee();
this.works_create_desc = copyrightVo.getCreateProcess();
this.works_desc = copyrightVo.getContentSynopsis();
for (CopyrightFile file : copyrightVo.getFiles()) {
......@@ -267,7 +267,7 @@ public class CopyrightRequest {
@ApiModelProperty(value = "著作权人姓名")
private String owner_name;
@ApiModelProperty(value = "署名")//无
@ApiModelProperty(value = "署名")
private String owner_sign_name;
@ApiModelProperty(value = "著作权人类别(1:自然人)")
......@@ -352,7 +352,9 @@ public class CopyrightRequest {
}
public CopyrightRequest(CopyrightVo copyrightVo,OpusCategory category) {
public CopyrightRequest(CopyrightVo copyrightVo, OpusCategory category, String app_id, String sign) {
this.biz_content = new CopyrightDetail(copyrightVo, category);
this.app_id = app_id;
this.sign = sign;
}
}
\ No newline at end of file
......@@ -24,6 +24,9 @@ public class CopyrightVo {
@ApiModelProperty(value = "用户id")
private Integer userId;
@ApiModelProperty(value = "登记委托书")
private String registerEntrust;
@ApiModelProperty(value = "nft哈希")
private String nftHash;
......@@ -78,6 +81,9 @@ public class CopyrightVo {
@ApiModelProperty(value = "权力归属证明材料的文件地址")
private String authorityAscriptionProve;
@ApiModelProperty(value = "作品权力保证书")
private String opusPowerGuarantee;
@ApiModelProperty(value = "登记状态 0-待审核 1-登记成功 2-审核失败")
private Integer registerState;
......
......@@ -13,7 +13,8 @@ import org.springframework.stereotype.Component;
@ConfigurationProperties(prefix = "copyright")
public class CopyrightProperties {
private String url;
private String applyUrl;
private String queryUrl;
private String appId;
private String appSecret;
......
......@@ -3,10 +3,12 @@ package com.fzm.common.service.impl;
import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.lang.TypeReference;
import cn.hutool.http.HttpUtil;
import cn.hutool.json.JSONUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fzm.common.config.RabbitMQConfig;
import com.fzm.common.constant.SystemConstant;
import com.fzm.common.entity.*;
import com.fzm.common.entity.dto.CopyrightDTO;
......@@ -18,20 +20,21 @@ import com.fzm.common.enums.CopyrightApplyState;
import com.fzm.common.enums.ResultCode;
import com.fzm.common.exception.GlobalException;
import com.fzm.common.mapper.CopyrightApplyMapper;
import com.fzm.common.properties.CopyrightProperties;
import com.fzm.common.service.*;
import com.fzm.common.utils.CopyrightSignUtil;
import com.fzm.common.utils.OssUtil;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.*;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
......@@ -80,6 +83,13 @@ public class CopyrightApplyServiceImpl extends ServiceImpl<CopyrightApplyMapper,
@Resource
private OpusCategoryService opusCategoryService;
@Resource
private CopyrightProperties copyrightProperties;
@Resource
private RabbitTemplate rabbitTemplate;
@Override
public Integer submit(CopyrightDTO copyrightDTO) {
// 判断此nft是否属于当前登录用户所有
......@@ -311,13 +321,16 @@ public class CopyrightApplyServiceImpl extends ServiceImpl<CopyrightApplyMapper,
if (CopyrightApplyState.TO_BE_REVIEWED.getCode() != copyright.getRegisterState()) {
throw GlobalException.newException(ResultCode.OPERATION_FAILED, "此版权申请记录的状态不是待提交,无法审核通过");
}
// todo 版权申请
// 请求版权局接口
CopyrightVo detail = this.getDetail(id);
OpusCategory category = opusCategoryService.getById(detail.getOpusCategoryId());
CopyrightRequest copyrightRequest = new CopyrightRequest(detail, category);
CopyrightRequest copyrightRequest = new CopyrightRequest(detail, category, copyrightProperties.getAppId(), null);
TreeMap<String, String> param = this.beanToMap(copyrightRequest, copyrightProperties.getAppSecret());
String sign = CopyrightSignUtil.generateSign(param);
copyrightRequest.setSign(sign);
String json = JSONUtil.toJsonStr(copyrightRequest);
log.info("请求版权局接口, 请求参数:{}", json);
String response = HttpUtil.post("https://p.yareiot.com/ccct/api/copyright/create", json, 10000);
log.info("请求版权局接口, 接口地址:{}, 请求参数:{}", copyrightProperties.getApplyUrl(), json);
String response = HttpUtil.post(copyrightProperties.getApplyUrl(), json, 10000);
log.info("版权局响应内容:{}", response);
if (StringUtils.isBlank(response)) {
throw GlobalException.newException(ResultCode.COPYRIGHT_FAILED, "版权局接口无响应,请稍后重试");
......@@ -329,12 +342,24 @@ public class CopyrightApplyServiceImpl extends ServiceImpl<CopyrightApplyMapper,
if (!copyrightResponse.isSuccess()) {
throw GlobalException.newException(ResultCode.COPYRIGHT_FAILED, copyrightResponse.getMessage());
}
copyright.setSerialNum(copyrightResponse.getSerial_code());
// 申请成功
String serial_code = copyrightResponse.getSerial_code();
rabbitTemplate.convertAndSend(RabbitMQConfig.COPYRIGHT_DIRECT, "copyright.apply", serial_code);
copyright.setSerialNum(serial_code);
copyright.setRegisterState(CopyrightApplyState.SUCCEEDED.getCode());
copyright.setRejectReason("");
return updateById(copyright);
}
private TreeMap<String, String> beanToMap(CopyrightRequest copyrightRequest, String app_secret) {
TreeMap<String, String> treeMap = JSONUtil.toBean(JSONUtil.toJsonStr(copyrightRequest), new TypeReference<TreeMap<String, String>>() {
}, true);
treeMap.put("biz_content", JSONUtil.toJsonStr(copyrightRequest.getBiz_content()));
treeMap.put("app_secret", app_secret);
return treeMap;
}
@Override
public int getSuccessCount() {
QueryWrapper<CopyrightApply> wrapper = new QueryWrapper<>();
......
package com.fzm.common.utils;
import cn.hutool.crypto.SecureUtil;
import cn.hutool.json.JSONUtil;
import com.fzm.common.entity.dto.CopyrightRequest;
import com.fzm.common.properties.CopyrightProperties;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.codec.CodecProperties;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
import java.util.Map;
import java.util.TreeMap;
/**
* @author tangtuo
* @date 2021/12/23 11:40
*/
@Slf4j
public class CopyrightSignUtil {
public static String generateSign(TreeMap<String, String> param) {
StringBuilder sb = new StringBuilder();
for (Map.Entry<String, String> entry : param.entrySet()) {
String key = entry.getKey();
if ("sign".equals(key)) continue;
String value = entry.getValue();
sb.append(key).append("=").append(value).append("&");
}
String signStr = sb.deleteCharAt(sb.length() - 1).toString();
log.info("signStr: {}", signStr);
return SecureUtil.md5(signStr);
}
}
2021-12-15 17:29:02.714 [main] INFO com.fzm.portal.LyPortalApplicationTests-Starting LyPortalApplicationTests on LAPTOP-AT8CNAMK with PID 9036 (started by tangtuo in D:\workspace\fzm-joying\joying-portal)
2021-12-15 17:29:02.715 [main] INFO com.fzm.portal.LyPortalApplicationTests-The following profiles are active: dev
2021-12-15 17:29:03.704 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Multiple Spring Data modules found, entering strict repository configuration mode!
2021-12-15 17:29:03.707 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2021-12-15 17:29:03.742 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Finished Spring Data repository scanning in 14ms. Found 0 Redis repository interfaces.
2021-12-15 17:29:04.847 [main] INFO c.a.d.s.b.a.DruidDataSourceAutoConfigure-Init DruidDataSource
2021-12-15 17:29:06.439 [main] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} inited
2021-12-15 17:29:08.975 [main] INFO org.redisson.Version-Redisson 3.16.0
2021-12-15 17:29:09.905 [redisson-netty-4-25] INFO o.r.connection.pool.MasterPubSubConnectionPool-1 connections initialized for 172.16.101.135/172.16.101.135:6379
2021-12-15 17:29:09.949 [redisson-netty-4-19] INFO org.redisson.connection.pool.MasterConnectionPool-24 connections initialized for 172.16.101.135/172.16.101.135:6379
2021-12-15 17:29:10.132 [main] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightApplyOwnerRelation.
2021-12-15 17:29:10.246 [main] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightAuthorityRelation.
2021-12-15 17:29:10.330 [main] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Initializing ExecutorService 'threadPoolTaskExecutor'
2021-12-15 17:29:11.348 [main] INFO s.d.s.w.PropertySourcedRequestMappingHandlerMapping-Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
2021-12-15 17:29:12.859 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Context refreshed
2021-12-15 17:29:12.889 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Found 1 custom documentation plugin(s)
2021-12-15 17:29:12.930 [main] INFO s.d.spring.web.scanners.ApiListingReferenceScanner-Scanning for api listing references
2021-12-15 17:29:13.105 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_1
2021-12-15 17:29:13.126 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_2
2021-12-15 17:29:13.156 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_3
2021-12-15 17:29:13.198 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_1
2021-12-15 17:29:13.216 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_4
2021-12-15 17:29:13.247 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: addUsingPOST_1
2021-12-15 17:29:13.249 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_1
2021-12-15 17:29:13.257 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_5
2021-12-15 17:29:13.260 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_1
2021-12-15 17:29:13.263 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_2
2021-12-15 17:29:13.270 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_6
2021-12-15 17:29:13.304 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_2
2021-12-15 17:29:13.319 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_7
2021-12-15 17:29:13.328 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: publishUsingPOST_1
2021-12-15 17:29:13.356 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: saveUsingPOST_1
2021-12-15 17:29:13.370 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getDetailUsingGET_1
2021-12-15 17:29:13.374 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_8
2021-12-15 17:29:13.377 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_9
2021-12-15 17:29:13.379 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_3
2021-12-15 17:29:13.381 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: downloadUsingPOST_1
2021-12-15 17:29:13.387 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: uploadUsingPOST_1
2021-12-15 17:29:13.422 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_2
2021-12-15 17:29:13.448 [main] INFO com.fzm.portal.LyPortalApplicationTests-Started LyPortalApplicationTests in 11.093 seconds (JVM running for 12.273)
2021-12-15 17:29:13.689 [main] DEBUG c.f.c.m.CopyrightAuthorityRelationMapper.insert-==> Preparing: INSERT INTO tb_copyright_authority_relation ( copyright_id, authority_id ) VALUES ( ?, ? )
2021-12-15 17:29:13.815 [main] DEBUG c.f.c.m.CopyrightAuthorityRelationMapper.insert-==> Parameters: 3(Integer), 5(Integer)
2021-12-15 17:29:13.827 [main] DEBUG c.f.c.m.CopyrightAuthorityRelationMapper.insert-<== Updates: 1
2021-12-15 17:29:13.870 [SpringContextShutdownHook] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Shutting down ExecutorService 'threadPoolTaskExecutor'
2021-12-15 17:29:13.931 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closing ...
2021-12-15 17:29:13.938 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closed
2021-12-15 17:30:39.083 [main] INFO com.fzm.portal.LyPortalApplicationTests-Starting LyPortalApplicationTests on LAPTOP-AT8CNAMK with PID 13380 (started by tangtuo in D:\workspace\fzm-joying\joying-portal)
2021-12-15 17:30:39.084 [main] INFO com.fzm.portal.LyPortalApplicationTests-The following profiles are active: dev
2021-12-15 17:30:40.039 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Multiple Spring Data modules found, entering strict repository configuration mode!
2021-12-15 17:30:40.041 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2021-12-15 17:30:40.069 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Finished Spring Data repository scanning in 14ms. Found 0 Redis repository interfaces.
2021-12-15 17:30:41.140 [main] INFO c.a.d.s.b.a.DruidDataSourceAutoConfigure-Init DruidDataSource
2021-12-15 17:30:43.566 [main] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} inited
2021-12-15 17:30:45.945 [main] INFO org.redisson.Version-Redisson 3.16.0
2021-12-15 17:30:46.900 [redisson-netty-4-24] INFO o.r.connection.pool.MasterPubSubConnectionPool-1 connections initialized for 172.16.101.135/172.16.101.135:6379
2021-12-15 17:30:47.002 [redisson-netty-4-19] INFO org.redisson.connection.pool.MasterConnectionPool-24 connections initialized for 172.16.101.135/172.16.101.135:6379
2021-12-15 17:30:47.186 [main] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightApplyOwnerRelation.
2021-12-15 17:30:47.308 [main] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightAuthorityRelation.
2021-12-15 17:30:47.389 [main] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Initializing ExecutorService 'threadPoolTaskExecutor'
2021-12-15 17:30:48.399 [main] INFO s.d.s.w.PropertySourcedRequestMappingHandlerMapping-Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
2021-12-15 17:30:49.771 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Context refreshed
2021-12-15 17:30:49.806 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Found 1 custom documentation plugin(s)
2021-12-15 17:30:49.861 [main] INFO s.d.spring.web.scanners.ApiListingReferenceScanner-Scanning for api listing references
2021-12-15 17:30:50.060 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_1
2021-12-15 17:30:50.079 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_2
2021-12-15 17:30:50.106 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_3
2021-12-15 17:30:50.149 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_1
2021-12-15 17:30:50.168 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_4
2021-12-15 17:30:50.197 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: addUsingPOST_1
2021-12-15 17:30:50.199 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_1
2021-12-15 17:30:50.205 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_5
2021-12-15 17:30:50.207 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_1
2021-12-15 17:30:50.210 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_2
2021-12-15 17:30:50.215 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_6
2021-12-15 17:30:50.239 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_2
2021-12-15 17:30:50.253 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_7
2021-12-15 17:30:50.261 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: publishUsingPOST_1
2021-12-15 17:30:50.288 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: saveUsingPOST_1
2021-12-15 17:30:50.303 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getDetailUsingGET_1
2021-12-15 17:30:50.308 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_8
2021-12-15 17:30:50.314 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_9
2021-12-15 17:30:50.316 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_3
2021-12-15 17:30:50.318 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: downloadUsingPOST_1
2021-12-15 17:30:50.326 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: uploadUsingPOST_1
2021-12-15 17:30:50.394 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_2
2021-12-15 17:30:50.419 [main] INFO com.fzm.portal.LyPortalApplicationTests-Started LyPortalApplicationTests in 11.702 seconds (JVM running for 12.828)
2021-12-15 17:30:50.656 [main] DEBUG c.f.c.m.CopyrightAuthorityRelationMapper.insert-==> Preparing: INSERT INTO tb_copyright_authority_relation ( copyright_id, authority_id ) VALUES ( ?, ? )
2021-12-15 17:30:50.809 [main] DEBUG c.f.c.m.CopyrightAuthorityRelationMapper.insert-==> Parameters: 3(Integer), 5(Integer)
2021-12-15 17:30:50.823 [main] DEBUG c.f.c.m.CopyrightAuthorityRelationMapper.insert-<== Updates: 1
2021-12-15 17:30:50.848 [SpringContextShutdownHook] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Shutting down ExecutorService 'threadPoolTaskExecutor'
2021-12-15 17:30:50.898 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closing ...
2021-12-15 17:30:50.903 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closed
2021-12-21 12:03:06.747 [main] INFO com.fzm.portal.LyPortalApplicationTests-Starting LyPortalApplicationTests on LAPTOP-AT8CNAMK with PID 18132 (started by tangtuo in D:\workspace\fzm-joying\joying-portal)
2021-12-21 12:03:06.749 [main] INFO com.fzm.portal.LyPortalApplicationTests-The following profiles are active: dev
2021-12-21 12:03:07.913 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Multiple Spring Data modules found, entering strict repository configuration mode!
2021-12-21 12:03:07.916 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2021-12-21 12:03:07.947 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Finished Spring Data repository scanning in 13ms. Found 0 Redis repository interfaces.
2021-12-21 12:03:09.137 [main] INFO c.a.d.s.b.a.DruidDataSourceAutoConfigure-Init DruidDataSource
2021-12-21 12:03:11.196 [main] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} inited
2021-12-21 12:03:13.888 [main] INFO org.redisson.Version-Redisson 3.16.0
2021-12-21 12:03:14.816 [redisson-netty-4-19] INFO o.r.connection.pool.MasterPubSubConnectionPool-1 connections initialized for 172.16.101.135/172.16.101.135:6379
2021-12-21 12:03:15.388 [redisson-netty-4-19] INFO org.redisson.connection.pool.MasterConnectionPool-24 connections initialized for 172.16.101.135/172.16.101.135:6379
2021-12-21 12:03:15.571 [main] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightApplyOwnerRelation.
2021-12-21 12:03:15.690 [main] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightAuthorityRelation.
2021-12-21 12:03:15.771 [main] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Initializing ExecutorService 'threadPoolTaskExecutor'
2021-12-21 12:03:16.756 [main] INFO s.d.s.w.PropertySourcedRequestMappingHandlerMapping-Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
2021-12-21 12:03:18.089 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Context refreshed
2021-12-21 12:03:18.124 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Found 1 custom documentation plugin(s)
2021-12-21 12:03:18.177 [main] INFO s.d.spring.web.scanners.ApiListingReferenceScanner-Scanning for api listing references
2021-12-21 12:03:18.337 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_1
2021-12-21 12:03:18.359 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_2
2021-12-21 12:03:18.391 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_3
2021-12-21 12:03:18.441 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_1
2021-12-21 12:03:18.467 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_4
2021-12-21 12:03:18.498 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: addUsingPOST_1
2021-12-21 12:03:18.500 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_1
2021-12-21 12:03:18.508 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_5
2021-12-21 12:03:18.510 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_1
2021-12-21 12:03:18.513 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_2
2021-12-21 12:03:18.521 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_6
2021-12-21 12:03:18.548 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_2
2021-12-21 12:03:18.570 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_7
2021-12-21 12:03:18.584 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: publishUsingPOST_1
2021-12-21 12:03:18.619 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: saveUsingPOST_1
2021-12-21 12:03:18.632 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getDetailUsingGET_1
2021-12-21 12:03:18.636 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_8
2021-12-21 12:03:18.641 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_9
2021-12-21 12:03:18.645 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_3
2021-12-21 12:03:18.647 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: downloadUsingPOST_1
2021-12-21 12:03:18.653 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: uploadUsingPOST_1
2021-12-21 12:03:18.681 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_2
2021-12-21 12:03:18.705 [main] INFO com.fzm.portal.LyPortalApplicationTests-Started LyPortalApplicationTests in 12.401 seconds (JVM running for 13.641)
2021-12-21 12:03:18.964 [Service-1] DEBUG c.f.common.mapper.CopyrightApplyMapper.selectById-==> Preparing: SELECT id,serial_num,user_id,nft_hash,nft_name,opus_name,opus_category_id,opus_property,content_synopsis,create_process,opus_complete_date,opus_complete_province,opus_complete_city,publish_state,first_publish_date,first_publish_province,first_publish_city,authority_acquire_mode,authority_acquire_prove,authority_ascription_mode,authority_ascription_prove,register_state,reject_reason,content,create_date,update_date FROM tb_copyright_apply WHERE id=?
2021-12-21 12:03:19.102 [Service-1] DEBUG c.f.common.mapper.CopyrightApplyMapper.selectById-==> Parameters: 48(Integer)
2021-12-21 12:03:19.135 [Service-1] DEBUG c.f.common.mapper.CopyrightApplyMapper.selectById-<== Total: 1
2021-12-21 12:03:19.190 [Service-2] DEBUG c.f.common.mapper.AuthorityMapper.getByCopyrightId-==> Preparing: select * from tb_authority where id in (select authority_id from tb_copyright_authority_relation where copyright_id = ?)
2021-12-21 12:03:19.194 [Service-2] DEBUG c.f.common.mapper.AuthorityMapper.getByCopyrightId-==> Parameters: 48(Integer)
2021-12-21 12:03:19.200 [Service-2] DEBUG c.f.common.mapper.AuthorityMapper.getByCopyrightId-<== Total: 1
2021-12-21 12:03:19.238 [Service-3] DEBUG c.f.c.m.C.selectList-==> Preparing: SELECT copyright_id,owner_id,type,owner,id_number,is_effective,effective_start_date,effective_end_date,province,province_code,city,city_code,id_type,positive_photo,back_photo,personal_photo,certificates_photo,entrust_prove,create_date,update_date FROM tb_copyright_apply_owner_relation WHERE (copyright_id = ?)
2021-12-21 12:03:19.238 [Service-4] DEBUG c.f.common.mapper.CopyrightAuthorMapper.selectList-==> Preparing: SELECT id,copyright_id,name,sign_type,sign,create_date,update_date FROM tb_copyright_author WHERE (copyright_id = ?)
2021-12-21 12:03:19.238 [Service-5] DEBUG c.fzm.common.mapper.CopyrightFileMapper.selectList-==> Preparing: SELECT id,copyright_id,nft_hash,file_name,file_url,file_hash,file_suffix,file_size,create_date,update_date FROM tb_copyright_file WHERE (copyright_id = ?)
2021-12-21 12:03:19.239 [Service-4] DEBUG c.f.common.mapper.CopyrightAuthorMapper.selectList-==> Parameters: 48(Integer)
2021-12-21 12:03:19.239 [Service-5] DEBUG c.fzm.common.mapper.CopyrightFileMapper.selectList-==> Parameters: 48(Integer)
2021-12-21 12:03:19.239 [Service-3] DEBUG c.f.c.m.C.selectList-==> Parameters: 48(Integer)
2021-12-21 12:03:19.244 [Service-4] DEBUG c.f.common.mapper.CopyrightAuthorMapper.selectList-<== Total: 1
2021-12-21 12:03:19.247 [Service-5] DEBUG c.fzm.common.mapper.CopyrightFileMapper.selectList-<== Total: 1
2021-12-21 12:03:19.253 [Service-3] DEBUG c.f.c.m.C.selectList-<== Total: 1
2021-12-21 12:03:19.265 [main] DEBUG c.fzm.common.mapper.OpusCategoryMapper.selectById-==> Preparing: SELECT id,value FROM tb_opus_category WHERE id=?
2021-12-21 12:03:19.265 [main] DEBUG c.fzm.common.mapper.OpusCategoryMapper.selectById-==> Parameters: 1(Integer)
2021-12-21 12:03:19.272 [main] DEBUG c.fzm.common.mapper.OpusCategoryMapper.selectById-<== Total: 1
2021-12-21 12:03:19.314 [SpringContextShutdownHook] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Shutting down ExecutorService 'threadPoolTaskExecutor'
2021-12-21 12:03:19.358 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closing ...
2021-12-21 12:03:19.363 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closed
2021-12-21 12:48:09.527 [main] INFO com.fzm.portal.LyPortalApplicationTests-Starting LyPortalApplicationTests on LAPTOP-AT8CNAMK with PID 3576 (started by tangtuo in D:\workspace\fzm-joying\joying-portal)
2021-12-21 12:48:09.528 [main] INFO com.fzm.portal.LyPortalApplicationTests-The following profiles are active: dev
2021-12-21 12:48:10.580 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Multiple Spring Data modules found, entering strict repository configuration mode!
2021-12-21 12:48:10.583 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2021-12-21 12:48:10.612 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Finished Spring Data repository scanning in 13ms. Found 0 Redis repository interfaces.
2021-12-21 12:48:11.913 [main] INFO c.a.d.s.b.a.DruidDataSourceAutoConfigure-Init DruidDataSource
2021-12-21 12:48:13.919 [main] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} inited
2021-12-21 12:48:17.445 [main] INFO org.redisson.Version-Redisson 3.16.0
2021-12-21 12:48:18.474 [redisson-netty-4-24] INFO o.r.connection.pool.MasterPubSubConnectionPool-1 connections initialized for 172.16.101.135/172.16.101.135:6379
2021-12-21 12:48:18.525 [redisson-netty-4-19] INFO org.redisson.connection.pool.MasterConnectionPool-24 connections initialized for 172.16.101.135/172.16.101.135:6379
2021-12-21 12:48:18.740 [main] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightApplyOwnerRelation.
2021-12-21 12:48:18.869 [main] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightAuthorityRelation.
2021-12-21 12:48:18.955 [main] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Initializing ExecutorService 'threadPoolTaskExecutor'
2021-12-21 12:48:20.019 [main] INFO s.d.s.w.PropertySourcedRequestMappingHandlerMapping-Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
2021-12-21 12:48:21.453 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Context refreshed
2021-12-21 12:48:21.495 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Found 1 custom documentation plugin(s)
2021-12-21 12:48:21.544 [main] INFO s.d.spring.web.scanners.ApiListingReferenceScanner-Scanning for api listing references
2021-12-21 12:48:21.712 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_1
2021-12-21 12:48:21.730 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_2
2021-12-21 12:48:21.755 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_3
2021-12-21 12:48:21.789 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_1
2021-12-21 12:48:21.808 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_4
2021-12-21 12:48:21.830 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: addUsingPOST_1
2021-12-21 12:48:21.831 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_1
2021-12-21 12:48:21.837 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_5
2021-12-21 12:48:21.839 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_1
2021-12-21 12:48:21.841 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_2
2021-12-21 12:48:21.846 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_6
2021-12-21 12:48:21.866 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_2
2021-12-21 12:48:21.880 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_7
2021-12-21 12:48:21.890 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: publishUsingPOST_1
2021-12-21 12:48:21.910 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: saveUsingPOST_1
2021-12-21 12:48:21.920 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getDetailUsingGET_1
2021-12-21 12:48:21.925 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_8
2021-12-21 12:48:21.930 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_9
2021-12-21 12:48:21.933 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_3
2021-12-21 12:48:21.935 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: downloadUsingPOST_1
2021-12-21 12:48:21.941 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: uploadUsingPOST_1
2021-12-21 12:48:21.976 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_2
2021-12-21 12:48:22.000 [main] INFO com.fzm.portal.LyPortalApplicationTests-Started LyPortalApplicationTests in 12.9 seconds (JVM running for 14.463)
2021-12-21 12:48:22.224 [Service-1] DEBUG c.f.common.mapper.CopyrightApplyMapper.selectById-==> Preparing: SELECT id,serial_num,user_id,nft_hash,nft_name,opus_name,opus_category_id,opus_property,content_synopsis,create_process,opus_complete_date,opus_complete_province,opus_complete_city,publish_state,first_publish_date,first_publish_province,first_publish_city,authority_acquire_mode,authority_acquire_prove,authority_ascription_mode,authority_ascription_prove,register_state,reject_reason,content,create_date,update_date FROM tb_copyright_apply WHERE id=?
2021-12-21 12:48:22.375 [Service-1] DEBUG c.f.common.mapper.CopyrightApplyMapper.selectById-==> Parameters: 48(Integer)
2021-12-21 12:48:22.410 [Service-1] DEBUG c.f.common.mapper.CopyrightApplyMapper.selectById-<== Total: 1
2021-12-21 12:48:22.478 [Service-2] DEBUG c.f.common.mapper.AuthorityMapper.getByCopyrightId-==> Preparing: select * from tb_authority where id in (select authority_id from tb_copyright_authority_relation where copyright_id = ?)
2021-12-21 12:48:22.480 [Service-2] DEBUG c.f.common.mapper.AuthorityMapper.getByCopyrightId-==> Parameters: 48(Integer)
2021-12-21 12:48:22.487 [Service-2] DEBUG c.f.common.mapper.AuthorityMapper.getByCopyrightId-<== Total: 1
2021-12-21 12:48:22.538 [Service-3] DEBUG c.f.c.m.C.selectList-==> Preparing: SELECT copyright_id,owner_id,type,owner,id_number,is_effective,effective_start_date,effective_end_date,province,province_code,city,city_code,id_type,positive_photo,back_photo,personal_photo,certificates_photo,entrust_prove,create_date,update_date FROM tb_copyright_apply_owner_relation WHERE (copyright_id = ?)
2021-12-21 12:48:22.538 [Service-4] DEBUG c.f.common.mapper.CopyrightAuthorMapper.selectList-==> Preparing: SELECT id,copyright_id,name,sign_type,sign,create_date,update_date FROM tb_copyright_author WHERE (copyright_id = ?)
2021-12-21 12:48:22.538 [Service-5] DEBUG c.fzm.common.mapper.CopyrightFileMapper.selectList-==> Preparing: SELECT id,copyright_id,nft_hash,file_name,file_url,file_hash,file_suffix,file_size,create_date,update_date FROM tb_copyright_file WHERE (copyright_id = ?)
2021-12-21 12:48:22.539 [Service-4] DEBUG c.f.common.mapper.CopyrightAuthorMapper.selectList-==> Parameters: 48(Integer)
2021-12-21 12:48:22.540 [Service-3] DEBUG c.f.c.m.C.selectList-==> Parameters: 48(Integer)
2021-12-21 12:48:22.541 [Service-5] DEBUG c.fzm.common.mapper.CopyrightFileMapper.selectList-==> Parameters: 48(Integer)
2021-12-21 12:48:22.548 [Service-4] DEBUG c.f.common.mapper.CopyrightAuthorMapper.selectList-<== Total: 1
2021-12-21 12:48:22.552 [Service-5] DEBUG c.fzm.common.mapper.CopyrightFileMapper.selectList-<== Total: 1
2021-12-21 12:48:22.553 [Service-3] DEBUG c.f.c.m.C.selectList-<== Total: 1
2021-12-21 12:48:22.568 [main] DEBUG c.fzm.common.mapper.OpusCategoryMapper.selectById-==> Preparing: SELECT id,value FROM tb_opus_category WHERE id=?
2021-12-21 12:48:22.569 [main] DEBUG c.fzm.common.mapper.OpusCategoryMapper.selectById-==> Parameters: 1(Integer)
2021-12-21 12:48:22.575 [main] DEBUG c.fzm.common.mapper.OpusCategoryMapper.selectById-<== Total: 1
2021-12-21 12:48:22.622 [SpringContextShutdownHook] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Shutting down ExecutorService 'threadPoolTaskExecutor'
2021-12-21 12:48:22.670 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closing ...
2021-12-21 12:48:22.674 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closed
......@@ -27,7 +27,7 @@ spring:
connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
useGlobalDataSourceStat: true
redis:
host: localhost
host: 172.16.101.135
port: 6379
password: 123456
lettuce:
......@@ -45,16 +45,19 @@ spring:
type: redis
redis:
time-to-live: 86400000
# rabbitmq:
# host: 172.16.101.135
# port: 5672
# username: admin
# password: admin
# listener:
# simple:
# ####开启手动签收
# acknowledge-mode: manual
rabbitmq:
host: 10.0.0.81
port: 5672
username: admin
password: admin
listener:
simple:
retry:
enabled: true
max-attempts: 5
initial-interval: 1000
multiplier: 2
stateless: true
swagger:
title: 乐映影视门户系统
description: 乐映影视门户系统RESTFUL API
......@@ -72,14 +75,6 @@ swagger:
name: tangtuo
email: ttuo@33.com
aliyun:
oss:
app-key: LTAI5tHGn7cVJdEtihTFLSeB
app-secret: XYmfBSbLaZoblGXZwIXkbhfBD7a1eg
end-point: oss-cn-hangzhou.aliyuncs.com
simple-bucket: test-nft
encrypt-bucket: test-nft-2
sms:
app-key: Yiru
app-secret: mx5oaR^RY8!(ziHn
......@@ -103,4 +98,10 @@ chain:
contract-name: user.evm.0x72ab91df57d70ddca74c219fee29a4e08632bb7b1109c1627fc11173961b180c
contract-address: 1ErrPnk5mocNL5k87Yx66ihqmprc8avjPJ
aliyun:
oss:
app-key: LTAI5tHGn7cVJdEtihTFLSeB
app-secret: XYmfBSbLaZoblGXZwIXkbhfBD7a1eg
end-point: oss-cn-hangzhou.aliyuncs.com
simple-bucket: test-nft
encrypt-bucket: test-nft-2
server:
port: 8001
spring:
main:
allow-bean-definition-overriding: true
datasource:
url: jdbc:mysql://146.56.197.42:3306/joying?useUnicode=true&characterEncoding=utf8&useSSL=false&tinyInt1isBit=false
username: root
password: fzm_db_01@TEST
platform: mysql
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
druid:
initial-size: 5
min-idle: 5
max-active: 20
max-wait: 60000
time-between-eviction-runs-millis: 60000
min-evictable-idle-time-millis: 300000
validation-query: SELECT 1 FROM DUAL
test-while-idle: true
test-on-borrow: false
test-on-return: false
pool-prepared-statements: false
max-pool-prepared-statement-per-connection-size: 20
filters: stat ,wall
connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
useGlobalDataSourceStat: true
redis:
database: 2
host: 146.56.218.121
port: 6379
password: fzmcache
lettuce:
pool:
# 连接池最大连接数(使用负值表示没有限制) 默认 8
max-active: 100
# 连接池最大阻塞等待时间(使用负值表示没有限制) 默认 -1
max-wait: -1
# 连接池中的最大空闲连接 默认 8
max-idle: 8
# 连接池中的最小空闲连接 默认 0
min-idle: 0
cache:
# 整合SpringCache,redis作为缓存类型
type: redis
redis:
time-to-live: 86400000
swagger:
title: 乐映影视门户系统
description: 乐映影视门户系统RESTFUL API
version: 1.0.0
base-package: com.fzm.portal.controller
base-path: /**
enabled: true
globalOperationParameters:
- description: Authorization
modelRef: string
name: Authorization
parameterType: header
required: false
contact:
name: tangtuo
email: ttuo@33.com
sms:
app-key: Yiru
app-secret: mx5oaR^RY8!(ziHn
login-message-codetype: quick
login-email-codetype: quick
login-voice-codetype: quick
send-sms-url: http://118.31.52.32/send/sms2
validate-code-url: http://118.31.52.32/validate/code
transfer-nft-message-codetype: notice_transfer
transfer-nft-email-codetype: notice_transfer
transfer-nft-voice-codetype: notice_transfer
chain:
para:
rpc-url: http://146.56.197.42:12021
withhold-addr: 1417K9fd5vt4zYW86xinWiCbAkNP794aNy
withhold-key: 19d78691584930407e63cd35ac6e67fae6113894b41812e65847d4a365a802a0
title: user.p.mall.
admin: 133AfuMYQXRxc45JGUb1jLk1M1W4ka39L1
admin-key: 85c6c95bcb41779f1d197e686d26b228a523fa36b77cfed79edb59b8853b569b
contract-name: user.evm.0xb3ae98ac253679602d54d1513aa9cad7d1b10d5f5117d5ce999c1bf67906ba99
contract-address: 15DtbSyS4eVFxdF87jmrcAdXMSAwXEHVLW
aliyun:
oss:
app-key: LTAI5tHGn7cVJdEtihTFLSeB
app-secret: XYmfBSbLaZoblGXZwIXkbhfBD7a1eg
end-point: oss-cn-hangzhou.aliyuncs.com
simple-bucket: test-nft
encrypt-bucket: test-nft-2
spring:
profiles:
active: dev
active: nj
application:
name: joying-portal
servlet:
......
......@@ -62,6 +62,10 @@
<appender-ref ref="CONSOLE"/>
<appender-ref ref="INFO_FILE"/>
</springProfile>
<springProfile name="nj">
<appender-ref ref="CONSOLE"/>
<appender-ref ref="INFO_FILE"/>
</springProfile>
</root>
</configuration>
\ No newline at end of file
......@@ -3,6 +3,7 @@ package com.fzm.portal;
import cn.hutool.crypto.SecureUtil;
import java.io.File;
import java.util.TreeMap;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.Semaphore;
......@@ -13,6 +14,11 @@ import java.util.concurrent.Semaphore;
public class FileTest {
public static void main(String[] args) {
TreeMap<String, Object> paramMap = new TreeMap<>();
paramMap.put("appId", 123);
paramMap.put("bizContent", "bizContent");
paramMap.put("signType", "UTF-8");
paramMap.put("appSecret", 456);
System.out.println(paramMap);
}
}
package com.fzm.portal;
import cn.fzm.chain.simplesdk.client.ParaChainClient;
import cn.hutool.crypto.SecureUtil;
import cn.hutool.json.JSON;
import cn.hutool.json.JSONUtil;
import com.fzm.common.constant.RedisConstant;
import com.fzm.common.entity.CopyrightAuthorityRelation;
......@@ -9,6 +11,7 @@ import com.fzm.common.entity.dto.CopyrightRequest;
import com.fzm.common.entity.vo.CopyrightVo;
import com.fzm.common.enums.ResultCode;
import com.fzm.common.exception.GlobalException;
import com.fzm.common.properties.CopyrightProperties;
import com.fzm.common.service.CopyrightApplyService;
import com.fzm.common.service.CopyrightAuthorityRelationService;
import com.fzm.common.service.OpusCategoryService;
......@@ -26,6 +29,8 @@ import org.springframework.security.crypto.password.PasswordEncoder;
import javax.annotation.Resource;
import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;
import java.util.concurrent.ExecutionException;
@SpringBootTest
......@@ -52,12 +57,31 @@ class LyPortalApplicationTests {
@Resource
private OpusCategoryService opusCategoryService;
@Resource
private CopyrightProperties copyrightProperties;
@Test
void test1() throws ExecutionException, InterruptedException {
CopyrightVo detail = copyrightApplyService.getDetail(48);
OpusCategory opusCategory = opusCategoryService.getById(1);
CopyrightRequest.CopyrightDetail copyrightDetail = new CopyrightRequest.CopyrightDetail(detail, opusCategory);
// CopyrightRequest copyrightRequest = new CopyrightRequest(copyrightDetail);
// CopyrightVo detail = copyrightApplyService.getDetail(48);
// OpusCategory opusCategory = opusCategoryService.getById(1);
// CopyrightRequest copyrightRequest = new CopyrightRequest(detail, opusCategory);
// TreeMap<String, String> map = new TreeMap<>();
// map.put("app_id", "289391457858");
// map.put("app_secret", "xExjKUCYH1nrze6Hpxf8s1dYWdxEggo2FiwKlZKygCItOV7E8bFhkyr4C192uhK");
// map.put("biz_content", JSONUtil.toJsonStr(copyrightRequest.getBiz_content()));
// map.put("charset", copyrightRequest.getCharset());
// map.put("sign_type", copyrightRequest.getSign_type());
// map.put("timestamp", copyrightRequest.getTimestamp());
// map.put("version", copyrightRequest.getVersion());
// StringBuilder sb = new StringBuilder();
// for (Map.Entry<String, String> entry : map.entrySet()) {
// String key = entry.getKey();
// String value = entry.getValue();
// sb.append(key).append("=").append(value).append("&");
// }
// String signStr = sb.deleteCharAt(sb.length() - 1).toString();
// System.out.println(signStr);
// System.out.println(SecureUtil.md5(signStr));
// System.out.println(JSONUtil.toJsonStr(copyrightRequest));
}
......@@ -65,7 +89,6 @@ class LyPortalApplicationTests {
void contextLoads() {
System.out.println("redisson = " + redisson);
RSemaphore semaphore = redisson.getSemaphore("banner09");
boolean b = semaphore.trySetPermits(10);
for (int i = 0; i < 3; i++) {
boolean acquire = semaphore.tryAcquire();
......
package com.fzm.portal;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import javax.annotation.Resource;
/**
* @author tangtuo
* @date 2021/12/23 14:41
*/
@Slf4j
@SpringBootTest
public class RabbitTestDemo {
/* @Resource
private RabbitTemplate rabbitTemplate;
@Test
void test1() {
rabbitTemplate.convertAndSend("copyright.direct", "copyright.apply", 123);
log.info("发送消息-------,{}", 123);
}*/
}
This source diff could not be displayed because it is too large. You can view the blob instead.
2021-12-10 14:32:34.911 [main] INFO com.fzm.portal.JoyingPortalApplication-Starting JoyingPortalApplication on LAPTOP-AT8CNAMK with PID 148008 (D:\workspace\fzm-joying\joying-portal\target\classes started by tangtuo in D:\workspace\fzm-joying)
2021-12-10 14:32:34.915 [main] INFO com.fzm.portal.JoyingPortalApplication-The following profiles are active: dev
2021-12-10 14:32:36.200 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Multiple Spring Data modules found, entering strict repository configuration mode!
2021-12-10 14:32:36.203 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2021-12-10 14:32:36.233 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Finished Spring Data repository scanning in 13ms. Found 0 Redis repository interfaces.
2021-12-10 14:32:37.011 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat initialized with port(s): 8001 (http)
2021-12-10 14:32:37.020 [main] INFO org.apache.coyote.http11.Http11NioProtocol-Initializing ProtocolHandler ["http-nio-8001"]
2021-12-10 14:32:37.020 [main] INFO org.apache.catalina.core.StandardService-Starting service [Tomcat]
2021-12-10 14:32:37.021 [main] INFO org.apache.catalina.core.StandardEngine-Starting Servlet engine: [Apache Tomcat/9.0.35]
2021-12-10 14:32:37.151 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]-Initializing Spring embedded WebApplicationContext
2021-12-10 14:32:37.151 [main] INFO org.springframework.web.context.ContextLoader-Root WebApplicationContext: initialization completed in 2166 ms
2021-12-10 14:32:37.295 [main] INFO c.a.d.s.b.a.DruidDataSourceAutoConfigure-Init DruidDataSource
2021-12-10 14:32:40.213 [main] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} inited
2021-12-10 14:32:41.866 [main] INFO org.redisson.Version-Redisson 3.16.0
2021-12-10 14:32:43.086 [redisson-netty-4-24] INFO o.r.connection.pool.MasterPubSubConnectionPool-1 connections initialized for 172.16.101.135/172.16.101.135:6379
2021-12-10 14:32:43.478 [redisson-netty-4-18] INFO org.redisson.connection.pool.MasterConnectionPool-24 connections initialized for 172.16.101.135/172.16.101.135:6379
2021-12-10 14:32:43.939 [main] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightAuthorityRelation.
2021-12-10 14:32:44.686 [main] INFO s.d.s.w.PropertySourcedRequestMappingHandlerMapping-Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
2021-12-10 14:32:44.930 [main] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Initializing ExecutorService 'applicationTaskExecutor'
2021-12-10 14:32:45.606 [main] INFO org.apache.coyote.http11.Http11NioProtocol-Starting ProtocolHandler ["http-nio-8001"]
2021-12-10 14:32:45.626 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat started on port(s): 8001 (http) with context path ''
2021-12-10 14:32:45.628 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Context refreshed
2021-12-10 14:32:45.662 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Found 1 custom documentation plugin(s)
2021-12-10 14:32:45.723 [main] INFO s.d.spring.web.scanners.ApiListingReferenceScanner-Scanning for api listing references
2021-12-10 14:32:45.923 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_1
2021-12-10 14:32:45.937 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_2
2021-12-10 14:32:45.960 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_3
2021-12-10 14:32:45.995 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_4
2021-12-10 14:32:46.020 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_1
2021-12-10 14:32:46.036 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_5
2021-12-10 14:32:46.041 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: publishUsingPOST_1
2021-12-10 14:32:46.066 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: saveUsingPOST_1
2021-12-10 14:32:46.079 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_6
2021-12-10 14:32:46.082 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_7
2021-12-10 14:32:46.150 [main] INFO com.fzm.portal.JoyingPortalApplication-Started JoyingPortalApplication in 11.963 seconds (JVM running for 14.545)
2021-12-10 14:32:57.406 [http-nio-8001-exec-1] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]-Initializing Spring DispatcherServlet 'dispatcherServlet'
2021-12-10 14:32:57.406 [http-nio-8001-exec-1] INFO org.springframework.web.servlet.DispatcherServlet-Initializing Servlet 'dispatcherServlet'
2021-12-10 14:32:57.413 [http-nio-8001-exec-1] INFO org.springframework.web.servlet.DispatcherServlet-Completed initialization in 7 ms
2021-12-10 14:33:54.021 [http-nio-8001-exec-8] ERROR c.f.c.exception.handler.GlobalExceptionHandler-请先登录
com.fzm.common.exception.GlobalException: 请先登录
at com.fzm.common.exception.GlobalException.newException(GlobalException.java:30)
at com.fzm.common.interceptor.AuthenticationInterceptor.preHandle(AuthenticationInterceptor.java:54)
at org.springframework.web.servlet.HandlerExecutionChain.applyPreHandle(HandlerExecutionChain.java:141)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1035)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:373)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1590)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
2021-12-10 14:34:08.867 [http-nio-8001-exec-10] INFO com.fzm.portal.aop.LogAop-请求路径: /user/login,请求参数:[LoginParam(telephone=17620078872, email=null, password=123456, verificationCode=null, codetype=null)]
2021-12-10 14:34:08.995 [http-nio-8001-exec-10] DEBUG com.fzm.common.mapper.UserMapper.selectOne-==> Preparing: SELECT id,telephone,email,password,wallet,nickname,signature,avatar,auth_type,auth_status,is_publish,create_date,update_date,create_time,update_time FROM tb_user WHERE (telephone = ? OR email = ?)
2021-12-10 14:34:09.098 [http-nio-8001-exec-10] DEBUG com.fzm.common.mapper.UserMapper.selectOne-==> Parameters: 17620078872(String), 17620078872(String)
2021-12-10 14:34:09.163 [http-nio-8001-exec-10] DEBUG com.fzm.common.mapper.UserMapper.selectOne-<== Total: 1
2021-12-10 14:34:09.238 [http-nio-8001-exec-10] DEBUG com.fzm.common.mapper.AuthPersonMapper.selectOne-==> Preparing: SELECT id,user_id,name,id_card,card_picture_front,card_picture_back,create_date,update_date FROM tb_auth_person WHERE (user_id = ?)
2021-12-10 14:34:09.239 [http-nio-8001-exec-10] DEBUG com.fzm.common.mapper.AuthPersonMapper.selectOne-==> Parameters: 1(Integer)
2021-12-10 14:34:09.262 [http-nio-8001-exec-10] DEBUG com.fzm.common.mapper.AuthPersonMapper.selectOne-<== Total: 1
2021-12-10 14:34:09.849 [http-nio-8001-exec-10] INFO com.fzm.portal.aop.LogAop-请求路径:/user/login,接口耗时:983ms
2021-12-10 14:34:34.164 [http-nio-8001-exec-1] DEBUG com.fzm.common.mapper.UserMapper.selectById-==> Preparing: SELECT id,telephone,email,password,wallet,nickname,signature,avatar,auth_type,auth_status,is_publish,create_date,update_date,create_time,update_time FROM tb_user WHERE id=?
2021-12-10 14:34:34.165 [http-nio-8001-exec-1] DEBUG com.fzm.common.mapper.UserMapper.selectById-==> Parameters: 1(Integer)
2021-12-10 14:34:34.181 [http-nio-8001-exec-1] DEBUG com.fzm.common.mapper.UserMapper.selectById-<== Total: 1
2021-12-10 14:34:34.197 [http-nio-8001-exec-1] INFO com.fzm.portal.aop.LogAop-请求路径: /oss/upload,请求参数:[]
2021-12-10 14:34:34.636 [http-nio-8001-exec-1] INFO com.fzm.portal.aop.LogAop-请求路径:/oss/upload,接口耗时:439ms
2021-12-10 14:37:19.634 [http-nio-8001-exec-5] DEBUG com.fzm.common.mapper.UserMapper.selectById-==> Preparing: SELECT id,telephone,email,password,wallet,nickname,signature,avatar,auth_type,auth_status,is_publish,create_date,update_date,create_time,update_time FROM tb_user WHERE id=?
2021-12-10 14:37:19.635 [http-nio-8001-exec-5] DEBUG com.fzm.common.mapper.UserMapper.selectById-==> Parameters: 1(Integer)
2021-12-10 14:37:19.671 [http-nio-8001-exec-5] DEBUG com.fzm.common.mapper.UserMapper.selectById-<== Total: 1
2021-12-10 14:37:19.703 [http-nio-8001-exec-5] INFO com.fzm.portal.aop.LogAop-请求路径: /oss/upload,请求参数:[]
2021-12-10 14:37:19.847 [http-nio-8001-exec-5] INFO com.fzm.portal.aop.LogAop-请求路径:/oss/upload,接口耗时:144ms
2021-12-10 16:09:59.012 [main] INFO com.fzm.portal.JoyingPortalApplication-Starting JoyingPortalApplication on LAPTOP-AT8CNAMK with PID 178452 (D:\workspace\fzm-joying\joying-portal\target\classes started by tangtuo in D:\workspace\fzm-joying)
2021-12-10 16:09:59.015 [main] INFO com.fzm.portal.JoyingPortalApplication-The following profiles are active: dev
2021-12-10 16:10:00.275 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Multiple Spring Data modules found, entering strict repository configuration mode!
2021-12-10 16:10:00.277 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2021-12-10 16:10:00.309 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Finished Spring Data repository scanning in 14ms. Found 0 Redis repository interfaces.
2021-12-10 16:10:01.237 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat initialized with port(s): 8001 (http)
2021-12-10 16:10:01.245 [main] INFO org.apache.coyote.http11.Http11NioProtocol-Initializing ProtocolHandler ["http-nio-8001"]
2021-12-10 16:10:01.246 [main] INFO org.apache.catalina.core.StandardService-Starting service [Tomcat]
2021-12-10 16:10:01.246 [main] INFO org.apache.catalina.core.StandardEngine-Starting Servlet engine: [Apache Tomcat/9.0.35]
2021-12-10 16:10:01.412 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]-Initializing Spring embedded WebApplicationContext
2021-12-10 16:10:01.413 [main] INFO org.springframework.web.context.ContextLoader-Root WebApplicationContext: initialization completed in 2353 ms
2021-12-10 16:10:01.586 [main] INFO c.a.d.s.b.a.DruidDataSourceAutoConfigure-Init DruidDataSource
2021-12-10 16:10:03.446 [main] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} inited
2021-12-10 16:10:05.671 [main] INFO org.redisson.Version-Redisson 3.16.0
2021-12-10 16:10:07.491 [redisson-netty-4-15] INFO o.r.connection.pool.MasterPubSubConnectionPool-1 connections initialized for 172.16.101.135/172.16.101.135:6379
2021-12-10 16:10:08.072 [redisson-netty-4-17] INFO org.redisson.connection.pool.MasterConnectionPool-24 connections initialized for 172.16.101.135/172.16.101.135:6379
2021-12-10 16:10:08.910 [main] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightAuthorityRelation.
2021-12-10 16:10:09.772 [main] INFO s.d.s.w.PropertySourcedRequestMappingHandlerMapping-Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
2021-12-10 16:10:10.137 [main] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Initializing ExecutorService 'applicationTaskExecutor'
2021-12-10 16:10:10.759 [main] INFO org.apache.coyote.http11.Http11NioProtocol-Starting ProtocolHandler ["http-nio-8001"]
2021-12-10 16:10:10.772 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat started on port(s): 8001 (http) with context path ''
2021-12-10 16:10:10.773 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Context refreshed
2021-12-10 16:10:10.792 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Found 1 custom documentation plugin(s)
2021-12-10 16:10:10.825 [main] INFO s.d.spring.web.scanners.ApiListingReferenceScanner-Scanning for api listing references
2021-12-10 16:10:10.984 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_1
2021-12-10 16:10:11.008 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_2
2021-12-10 16:10:11.036 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_3
2021-12-10 16:10:11.090 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_4
2021-12-10 16:10:11.128 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_1
2021-12-10 16:10:11.155 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_5
2021-12-10 16:10:11.164 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: publishUsingPOST_1
2021-12-10 16:10:11.212 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: saveUsingPOST_1
2021-12-10 16:10:11.245 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_6
2021-12-10 16:10:11.254 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_7
2021-12-10 16:10:11.369 [main] INFO com.fzm.portal.JoyingPortalApplication-Started JoyingPortalApplication in 12.875 seconds (JVM running for 14.029)
2021-12-10 16:10:20.046 [http-nio-8001-exec-1] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]-Initializing Spring DispatcherServlet 'dispatcherServlet'
2021-12-10 16:10:20.046 [http-nio-8001-exec-1] INFO org.springframework.web.servlet.DispatcherServlet-Initializing Servlet 'dispatcherServlet'
2021-12-10 16:10:20.057 [http-nio-8001-exec-1] INFO org.springframework.web.servlet.DispatcherServlet-Completed initialization in 11 ms
2021-12-10 16:15:41.970 [SpringContextShutdownHook] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Shutting down ExecutorService 'applicationTaskExecutor'
2021-12-10 16:15:42.068 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closing ...
2021-12-10 16:15:42.079 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closed
2021-12-10 16:15:49.516 [main] INFO com.fzm.portal.JoyingPortalApplication-Starting JoyingPortalApplication on LAPTOP-AT8CNAMK with PID 178164 (D:\workspace\fzm-joying\joying-portal\target\classes started by tangtuo in D:\workspace\fzm-joying)
2021-12-10 16:15:49.520 [main] INFO com.fzm.portal.JoyingPortalApplication-The following profiles are active: dev
2021-12-10 16:15:51.052 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Multiple Spring Data modules found, entering strict repository configuration mode!
2021-12-10 16:15:51.054 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2021-12-10 16:15:51.082 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Finished Spring Data repository scanning in 12ms. Found 0 Redis repository interfaces.
2021-12-10 16:15:52.009 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat initialized with port(s): 8001 (http)
2021-12-10 16:15:52.018 [main] INFO org.apache.coyote.http11.Http11NioProtocol-Initializing ProtocolHandler ["http-nio-8001"]
2021-12-10 16:15:52.018 [main] INFO org.apache.catalina.core.StandardService-Starting service [Tomcat]
2021-12-10 16:15:52.018 [main] INFO org.apache.catalina.core.StandardEngine-Starting Servlet engine: [Apache Tomcat/9.0.35]
2021-12-10 16:15:52.158 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]-Initializing Spring embedded WebApplicationContext
2021-12-10 16:15:52.158 [main] INFO org.springframework.web.context.ContextLoader-Root WebApplicationContext: initialization completed in 2596 ms
2021-12-10 16:15:52.392 [main] INFO c.a.d.s.b.a.DruidDataSourceAutoConfigure-Init DruidDataSource
2021-12-10 16:15:54.263 [main] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} inited
2021-12-10 16:15:56.489 [main] INFO org.redisson.Version-Redisson 3.16.0
2021-12-10 16:15:57.901 [redisson-netty-4-24] INFO o.r.connection.pool.MasterPubSubConnectionPool-1 connections initialized for 172.16.101.135/172.16.101.135:6379
2021-12-10 16:15:57.986 [redisson-netty-4-18] INFO org.redisson.connection.pool.MasterConnectionPool-24 connections initialized for 172.16.101.135/172.16.101.135:6379
2021-12-10 16:15:58.476 [main] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightAuthorityRelation.
2021-12-10 16:15:59.289 [main] INFO s.d.s.w.PropertySourcedRequestMappingHandlerMapping-Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
2021-12-10 16:15:59.505 [main] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Initializing ExecutorService 'applicationTaskExecutor'
2021-12-10 16:16:00.046 [main] INFO org.apache.coyote.http11.Http11NioProtocol-Starting ProtocolHandler ["http-nio-8001"]
2021-12-10 16:16:00.069 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat started on port(s): 8001 (http) with context path ''
2021-12-10 16:16:00.071 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Context refreshed
2021-12-10 16:16:00.100 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Found 1 custom documentation plugin(s)
2021-12-10 16:16:00.165 [main] INFO s.d.spring.web.scanners.ApiListingReferenceScanner-Scanning for api listing references
2021-12-10 16:16:00.371 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_1
2021-12-10 16:16:00.393 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_2
2021-12-10 16:16:00.429 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_3
2021-12-10 16:16:00.479 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_4
2021-12-10 16:16:00.513 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_1
2021-12-10 16:16:00.531 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_5
2021-12-10 16:16:00.538 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: publishUsingPOST_1
2021-12-10 16:16:00.560 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: saveUsingPOST_1
2021-12-10 16:16:00.572 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_6
2021-12-10 16:16:00.576 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_7
2021-12-10 16:16:00.642 [main] INFO com.fzm.portal.JoyingPortalApplication-Started JoyingPortalApplication in 11.636 seconds (JVM running for 13.084)
2021-12-10 16:16:10.190 [SpringContextShutdownHook] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Shutting down ExecutorService 'applicationTaskExecutor'
2021-12-10 16:16:10.300 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closing ...
2021-12-10 16:16:10.310 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closed
2021-12-10 16:16:17.821 [main] INFO com.fzm.portal.JoyingPortalApplication-Starting JoyingPortalApplication on LAPTOP-AT8CNAMK with PID 176628 (D:\workspace\fzm-joying\joying-portal\target\classes started by tangtuo in D:\workspace\fzm-joying)
2021-12-10 16:16:17.823 [main] INFO com.fzm.portal.JoyingPortalApplication-The following profiles are active: dev
2021-12-10 16:16:19.040 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Multiple Spring Data modules found, entering strict repository configuration mode!
2021-12-10 16:16:19.047 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2021-12-10 16:16:19.098 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Finished Spring Data repository scanning in 25ms. Found 0 Redis repository interfaces.
2021-12-10 16:16:20.266 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat initialized with port(s): 8001 (http)
2021-12-10 16:16:20.282 [main] INFO org.apache.coyote.http11.Http11NioProtocol-Initializing ProtocolHandler ["http-nio-8001"]
2021-12-10 16:16:20.283 [main] INFO org.apache.catalina.core.StandardService-Starting service [Tomcat]
2021-12-10 16:16:20.283 [main] INFO org.apache.catalina.core.StandardEngine-Starting Servlet engine: [Apache Tomcat/9.0.35]
2021-12-10 16:16:20.444 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]-Initializing Spring embedded WebApplicationContext
2021-12-10 16:16:20.445 [main] INFO org.springframework.web.context.ContextLoader-Root WebApplicationContext: initialization completed in 2581 ms
2021-12-10 16:16:20.618 [main] INFO c.a.d.s.b.a.DruidDataSourceAutoConfigure-Init DruidDataSource
2021-12-10 16:16:23.072 [main] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} inited
2021-12-10 16:16:25.463 [main] INFO org.redisson.Version-Redisson 3.16.0
2021-12-10 16:16:26.659 [redisson-netty-4-24] INFO o.r.connection.pool.MasterPubSubConnectionPool-1 connections initialized for 172.16.101.135/172.16.101.135:6379
2021-12-10 16:16:27.966 [redisson-netty-4-17] INFO org.redisson.connection.pool.MasterConnectionPool-24 connections initialized for 172.16.101.135/172.16.101.135:6379
2021-12-10 16:16:28.849 [main] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightAuthorityRelation.
2021-12-10 16:16:30.015 [main] INFO s.d.s.w.PropertySourcedRequestMappingHandlerMapping-Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
2021-12-10 16:16:30.312 [main] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Initializing ExecutorService 'applicationTaskExecutor'
2021-12-10 16:16:31.133 [main] INFO org.apache.coyote.http11.Http11NioProtocol-Starting ProtocolHandler ["http-nio-8001"]
2021-12-10 16:16:31.154 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat started on port(s): 8001 (http) with context path ''
2021-12-10 16:16:31.155 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Context refreshed
2021-12-10 16:16:31.186 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Found 1 custom documentation plugin(s)
2021-12-10 16:16:31.235 [main] INFO s.d.spring.web.scanners.ApiListingReferenceScanner-Scanning for api listing references
2021-12-10 16:16:31.467 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_1
2021-12-10 16:16:31.489 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_2
2021-12-10 16:16:31.537 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_3
2021-12-10 16:16:31.618 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_4
2021-12-10 16:16:31.684 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_1
2021-12-10 16:16:31.719 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_5
2021-12-10 16:16:31.731 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: publishUsingPOST_1
2021-12-10 16:16:31.777 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: saveUsingPOST_1
2021-12-10 16:16:31.804 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_6
2021-12-10 16:16:31.813 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_7
2021-12-10 16:16:31.946 [main] INFO com.fzm.portal.JoyingPortalApplication-Started JoyingPortalApplication in 14.574 seconds (JVM running for 15.797)
2021-12-10 16:16:37.157 [http-nio-8001-exec-1] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]-Initializing Spring DispatcherServlet 'dispatcherServlet'
2021-12-10 16:16:37.158 [http-nio-8001-exec-1] INFO org.springframework.web.servlet.DispatcherServlet-Initializing Servlet 'dispatcherServlet'
2021-12-10 16:16:37.175 [http-nio-8001-exec-1] INFO org.springframework.web.servlet.DispatcherServlet-Completed initialization in 17 ms
2021-12-10 16:17:08.628 [SpringContextShutdownHook] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Shutting down ExecutorService 'applicationTaskExecutor'
2021-12-10 16:17:08.690 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closing ...
2021-12-10 16:17:08.700 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closed
2021-12-10 16:17:16.290 [main] INFO com.fzm.portal.JoyingPortalApplication-Starting JoyingPortalApplication on LAPTOP-AT8CNAMK with PID 170696 (D:\workspace\fzm-joying\joying-portal\target\classes started by tangtuo in D:\workspace\fzm-joying)
2021-12-10 16:17:16.292 [main] INFO com.fzm.portal.JoyingPortalApplication-The following profiles are active: dev
2021-12-10 16:17:17.391 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Multiple Spring Data modules found, entering strict repository configuration mode!
2021-12-10 16:17:17.393 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2021-12-10 16:17:17.417 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Finished Spring Data repository scanning in 11ms. Found 0 Redis repository interfaces.
2021-12-10 16:17:18.371 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat initialized with port(s): 8001 (http)
2021-12-10 16:17:18.387 [main] INFO org.apache.coyote.http11.Http11NioProtocol-Initializing ProtocolHandler ["http-nio-8001"]
2021-12-10 16:17:18.388 [main] INFO org.apache.catalina.core.StandardService-Starting service [Tomcat]
2021-12-10 16:17:18.388 [main] INFO org.apache.catalina.core.StandardEngine-Starting Servlet engine: [Apache Tomcat/9.0.35]
2021-12-10 16:17:18.522 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]-Initializing Spring embedded WebApplicationContext
2021-12-10 16:17:18.522 [main] INFO org.springframework.web.context.ContextLoader-Root WebApplicationContext: initialization completed in 2191 ms
2021-12-10 16:17:18.717 [main] INFO c.a.d.s.b.a.DruidDataSourceAutoConfigure-Init DruidDataSource
2021-12-10 16:17:20.583 [main] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} inited
2021-12-10 16:17:22.489 [main] INFO org.redisson.Version-Redisson 3.16.0
2021-12-10 16:17:23.837 [redisson-netty-4-13] INFO o.r.connection.pool.MasterPubSubConnectionPool-1 connections initialized for 172.16.101.135/172.16.101.135:6379
2021-12-10 16:17:24.024 [redisson-netty-4-19] INFO org.redisson.connection.pool.MasterConnectionPool-24 connections initialized for 172.16.101.135/172.16.101.135:6379
2021-12-10 16:17:24.504 [main] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightAuthorityRelation.
2021-12-10 16:17:25.485 [main] INFO s.d.s.w.PropertySourcedRequestMappingHandlerMapping-Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
2021-12-10 16:17:25.663 [main] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Initializing ExecutorService 'applicationTaskExecutor'
2021-12-10 16:17:26.174 [main] INFO org.apache.coyote.http11.Http11NioProtocol-Starting ProtocolHandler ["http-nio-8001"]
2021-12-10 16:17:26.188 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat started on port(s): 8001 (http) with context path ''
2021-12-10 16:17:26.189 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Context refreshed
2021-12-10 16:17:26.207 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Found 1 custom documentation plugin(s)
2021-12-10 16:17:26.242 [main] INFO s.d.spring.web.scanners.ApiListingReferenceScanner-Scanning for api listing references
2021-12-10 16:17:26.390 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_1
2021-12-10 16:17:26.406 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_2
2021-12-10 16:17:26.425 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_3
2021-12-10 16:17:26.455 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_4
2021-12-10 16:17:26.479 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_1
2021-12-10 16:17:26.491 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_5
2021-12-10 16:17:26.497 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: publishUsingPOST_1
2021-12-10 16:17:26.516 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: saveUsingPOST_1
2021-12-10 16:17:26.527 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_6
2021-12-10 16:17:26.531 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_7
2021-12-10 16:17:26.587 [main] INFO com.fzm.portal.JoyingPortalApplication-Started JoyingPortalApplication in 10.8 seconds (JVM running for 12.083)
2021-12-10 16:17:40.687 [http-nio-8001-exec-3] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]-Initializing Spring DispatcherServlet 'dispatcherServlet'
2021-12-10 16:17:40.688 [http-nio-8001-exec-3] INFO org.springframework.web.servlet.DispatcherServlet-Initializing Servlet 'dispatcherServlet'
2021-12-10 16:17:40.704 [http-nio-8001-exec-3] INFO org.springframework.web.servlet.DispatcherServlet-Completed initialization in 16 ms
2021-12-10 16:19:03.157 [http-nio-8001-exec-7] INFO com.fzm.portal.aop.LogAop-请求路径: /file/template/list/5,请求参数:[{type=5}]
2021-12-10 16:19:03.419 [http-nio-8001-exec-7] DEBUG c.fzm.common.mapper.FileTemplateMapper.selectList-==> Preparing: SELECT id,file_name,file_url,type FROM tb_file_template WHERE (type = ?)
2021-12-10 16:19:03.594 [http-nio-8001-exec-7] DEBUG c.fzm.common.mapper.FileTemplateMapper.selectList-==> Parameters: 5(Integer)
2021-12-10 16:19:03.647 [http-nio-8001-exec-7] DEBUG c.fzm.common.mapper.FileTemplateMapper.selectList-<== Total: 2
2021-12-10 16:19:03.651 [http-nio-8001-exec-7] INFO com.fzm.portal.aop.LogAop-请求路径:/file/template/list/5,接口耗时:505ms
2021-12-10 16:19:19.771 [http-nio-8001-exec-8] INFO com.fzm.portal.aop.LogAop-请求路径: /file/template/list/5,请求参数:[{type=5}]
2021-12-10 16:19:19.775 [http-nio-8001-exec-8] DEBUG c.fzm.common.mapper.FileTemplateMapper.selectList-==> Preparing: SELECT id,file_name,file_url,type FROM tb_file_template WHERE (type = ?)
2021-12-10 16:19:19.777 [http-nio-8001-exec-8] DEBUG c.fzm.common.mapper.FileTemplateMapper.selectList-==> Parameters: 5(Integer)
2021-12-10 16:19:19.789 [http-nio-8001-exec-8] DEBUG c.fzm.common.mapper.FileTemplateMapper.selectList-<== Total: 2
2021-12-10 16:19:19.791 [http-nio-8001-exec-8] INFO com.fzm.portal.aop.LogAop-请求路径:/file/template/list/5,接口耗时:20ms
2021-12-10 16:31:23.836 [SpringContextShutdownHook] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Shutting down ExecutorService 'applicationTaskExecutor'
2021-12-10 16:31:23.891 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closing ...
2021-12-10 16:31:23.896 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closed
2021-12-10 16:31:28.964 [main] INFO com.fzm.portal.JoyingPortalApplication-Starting JoyingPortalApplication on LAPTOP-AT8CNAMK with PID 175132 (D:\workspace\fzm-joying\joying-portal\target\classes started by tangtuo in D:\workspace\fzm-joying)
2021-12-10 16:31:28.967 [main] INFO com.fzm.portal.JoyingPortalApplication-The following profiles are active: dev
2021-12-10 16:31:29.835 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Multiple Spring Data modules found, entering strict repository configuration mode!
2021-12-10 16:31:29.837 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2021-12-10 16:31:29.860 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Finished Spring Data repository scanning in 11ms. Found 0 Redis repository interfaces.
2021-12-10 16:31:30.573 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat initialized with port(s): 8001 (http)
2021-12-10 16:31:30.581 [main] INFO org.apache.coyote.http11.Http11NioProtocol-Initializing ProtocolHandler ["http-nio-8001"]
2021-12-10 16:31:30.581 [main] INFO org.apache.catalina.core.StandardService-Starting service [Tomcat]
2021-12-10 16:31:30.581 [main] INFO org.apache.catalina.core.StandardEngine-Starting Servlet engine: [Apache Tomcat/9.0.35]
2021-12-10 16:31:30.705 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]-Initializing Spring embedded WebApplicationContext
2021-12-10 16:31:30.705 [main] INFO org.springframework.web.context.ContextLoader-Root WebApplicationContext: initialization completed in 1698 ms
2021-12-10 16:31:30.845 [main] INFO c.a.d.s.b.a.DruidDataSourceAutoConfigure-Init DruidDataSource
2021-12-10 16:31:33.101 [main] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} inited
2021-12-10 16:31:34.646 [main] INFO org.redisson.Version-Redisson 3.16.0
2021-12-10 16:31:35.737 [redisson-netty-4-25] INFO o.r.connection.pool.MasterPubSubConnectionPool-1 connections initialized for 172.16.101.135/172.16.101.135:6379
2021-12-10 16:31:35.908 [redisson-netty-4-19] INFO org.redisson.connection.pool.MasterConnectionPool-24 connections initialized for 172.16.101.135/172.16.101.135:6379
2021-12-10 16:31:36.313 [main] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightAuthorityRelation.
2021-12-10 16:31:36.908 [main] INFO s.d.s.w.PropertySourcedRequestMappingHandlerMapping-Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
2021-12-10 16:31:37.079 [main] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Initializing ExecutorService 'applicationTaskExecutor'
2021-12-10 16:31:37.486 [main] INFO org.apache.coyote.http11.Http11NioProtocol-Starting ProtocolHandler ["http-nio-8001"]
2021-12-10 16:31:37.498 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat started on port(s): 8001 (http) with context path ''
2021-12-10 16:31:37.499 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Context refreshed
2021-12-10 16:31:37.513 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Found 1 custom documentation plugin(s)
2021-12-10 16:31:37.540 [main] INFO s.d.spring.web.scanners.ApiListingReferenceScanner-Scanning for api listing references
2021-12-10 16:31:37.650 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_1
2021-12-10 16:31:37.662 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_2
2021-12-10 16:31:37.680 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_3
2021-12-10 16:31:37.708 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_4
2021-12-10 16:31:37.731 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_1
2021-12-10 16:31:37.742 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_5
2021-12-10 16:31:37.746 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: publishUsingPOST_1
2021-12-10 16:31:37.764 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: saveUsingPOST_1
2021-12-10 16:31:37.775 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_6
2021-12-10 16:31:37.779 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_7
2021-12-10 16:31:37.828 [main] INFO com.fzm.portal.JoyingPortalApplication-Started JoyingPortalApplication in 9.361 seconds (JVM running for 10.342)
2021-12-10 16:31:48.126 [http-nio-8001-exec-1] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]-Initializing Spring DispatcherServlet 'dispatcherServlet'
2021-12-10 16:31:48.126 [http-nio-8001-exec-1] INFO org.springframework.web.servlet.DispatcherServlet-Initializing Servlet 'dispatcherServlet'
2021-12-10 16:31:48.134 [http-nio-8001-exec-1] INFO org.springframework.web.servlet.DispatcherServlet-Completed initialization in 8 ms
2021-12-10 16:32:58.515 [SpringContextShutdownHook] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Shutting down ExecutorService 'applicationTaskExecutor'
2021-12-10 16:32:58.566 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closing ...
2021-12-10 16:32:58.573 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closed
2021-12-10 16:33:03.424 [main] INFO com.fzm.portal.JoyingPortalApplication-Starting JoyingPortalApplication on LAPTOP-AT8CNAMK with PID 147660 (D:\workspace\fzm-joying\joying-portal\target\classes started by tangtuo in D:\workspace\fzm-joying)
2021-12-10 16:33:03.426 [main] INFO com.fzm.portal.JoyingPortalApplication-The following profiles are active: dev
2021-12-10 16:33:04.300 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Multiple Spring Data modules found, entering strict repository configuration mode!
2021-12-10 16:33:04.302 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2021-12-10 16:33:04.324 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Finished Spring Data repository scanning in 10ms. Found 0 Redis repository interfaces.
2021-12-10 16:33:05.014 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat initialized with port(s): 8001 (http)
2021-12-10 16:33:05.021 [main] INFO org.apache.coyote.http11.Http11NioProtocol-Initializing ProtocolHandler ["http-nio-8001"]
2021-12-10 16:33:05.022 [main] INFO org.apache.catalina.core.StandardService-Starting service [Tomcat]
2021-12-10 16:33:05.022 [main] INFO org.apache.catalina.core.StandardEngine-Starting Servlet engine: [Apache Tomcat/9.0.35]
2021-12-10 16:33:05.161 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]-Initializing Spring embedded WebApplicationContext
2021-12-10 16:33:05.161 [main] INFO org.springframework.web.context.ContextLoader-Root WebApplicationContext: initialization completed in 1696 ms
2021-12-10 16:33:05.300 [main] INFO c.a.d.s.b.a.DruidDataSourceAutoConfigure-Init DruidDataSource
2021-12-10 16:33:07.053 [main] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} inited
2021-12-10 16:33:08.480 [main] INFO org.redisson.Version-Redisson 3.16.0
2021-12-10 16:33:09.577 [redisson-netty-4-13] INFO o.r.connection.pool.MasterPubSubConnectionPool-1 connections initialized for 172.16.101.135/172.16.101.135:6379
2021-12-10 16:33:09.687 [redisson-netty-4-17] INFO org.redisson.connection.pool.MasterConnectionPool-24 connections initialized for 172.16.101.135/172.16.101.135:6379
2021-12-10 16:33:10.066 [main] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightAuthorityRelation.
2021-12-10 16:33:10.637 [main] INFO s.d.s.w.PropertySourcedRequestMappingHandlerMapping-Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
2021-12-10 16:33:10.812 [main] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Initializing ExecutorService 'applicationTaskExecutor'
2021-12-10 16:33:11.202 [main] INFO org.apache.coyote.http11.Http11NioProtocol-Starting ProtocolHandler ["http-nio-8001"]
2021-12-10 16:33:11.214 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat started on port(s): 8001 (http) with context path ''
2021-12-10 16:33:11.215 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Context refreshed
2021-12-10 16:33:11.229 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Found 1 custom documentation plugin(s)
2021-12-10 16:33:11.255 [main] INFO s.d.spring.web.scanners.ApiListingReferenceScanner-Scanning for api listing references
2021-12-10 16:33:11.372 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_1
2021-12-10 16:33:11.383 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_2
2021-12-10 16:33:11.402 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_3
2021-12-10 16:33:11.429 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_4
2021-12-10 16:33:11.453 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_1
2021-12-10 16:33:11.464 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_5
2021-12-10 16:33:11.470 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: publishUsingPOST_1
2021-12-10 16:33:11.488 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: saveUsingPOST_1
2021-12-10 16:33:11.498 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_6
2021-12-10 16:33:11.501 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_7
2021-12-10 16:33:11.551 [main] INFO com.fzm.portal.JoyingPortalApplication-Started JoyingPortalApplication in 8.546 seconds (JVM running for 9.489)
2021-12-10 16:33:19.668 [http-nio-8001-exec-1] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]-Initializing Spring DispatcherServlet 'dispatcherServlet'
2021-12-10 16:33:19.668 [http-nio-8001-exec-1] INFO org.springframework.web.servlet.DispatcherServlet-Initializing Servlet 'dispatcherServlet'
2021-12-10 16:33:19.675 [http-nio-8001-exec-1] INFO org.springframework.web.servlet.DispatcherServlet-Completed initialization in 7 ms
2021-12-10 18:30:12.201 [SpringContextShutdownHook] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Shutting down ExecutorService 'applicationTaskExecutor'
2021-12-10 18:30:12.317 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closing ...
2021-12-10 18:30:12.340 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closed
2021-12-10 18:30:21.668 [main] INFO com.fzm.portal.JoyingPortalApplication-Starting JoyingPortalApplication on LAPTOP-AT8CNAMK with PID 159252 (D:\workspace\fzm-joying\joying-portal\target\classes started by tangtuo in D:\workspace\fzm-joying)
2021-12-10 18:30:21.671 [main] INFO com.fzm.portal.JoyingPortalApplication-The following profiles are active: dev
2021-12-10 18:30:22.725 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Multiple Spring Data modules found, entering strict repository configuration mode!
2021-12-10 18:30:22.728 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2021-12-10 18:30:22.759 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Finished Spring Data repository scanning in 12ms. Found 0 Redis repository interfaces.
2021-12-10 18:30:23.639 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat initialized with port(s): 8001 (http)
2021-12-10 18:30:23.649 [main] INFO org.apache.coyote.http11.Http11NioProtocol-Initializing ProtocolHandler ["http-nio-8001"]
2021-12-10 18:30:23.649 [main] INFO org.apache.catalina.core.StandardService-Starting service [Tomcat]
2021-12-10 18:30:23.649 [main] INFO org.apache.catalina.core.StandardEngine-Starting Servlet engine: [Apache Tomcat/9.0.35]
2021-12-10 18:30:23.783 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]-Initializing Spring embedded WebApplicationContext
2021-12-10 18:30:23.783 [main] INFO org.springframework.web.context.ContextLoader-Root WebApplicationContext: initialization completed in 2064 ms
2021-12-10 18:30:23.933 [main] INFO c.a.d.s.b.a.DruidDataSourceAutoConfigure-Init DruidDataSource
2021-12-10 18:30:25.701 [main] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} inited
2021-12-10 18:30:27.421 [main] INFO org.redisson.Version-Redisson 3.16.0
2021-12-10 18:30:28.408 [redisson-netty-4-23] INFO o.r.connection.pool.MasterPubSubConnectionPool-1 connections initialized for 172.16.101.135/172.16.101.135:6379
2021-12-10 18:30:28.514 [redisson-netty-4-18] INFO org.redisson.connection.pool.MasterConnectionPool-24 connections initialized for 172.16.101.135/172.16.101.135:6379
2021-12-10 18:30:28.925 [main] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightAuthorityRelation.
2021-12-10 18:30:29.571 [main] INFO s.d.s.w.PropertySourcedRequestMappingHandlerMapping-Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
2021-12-10 18:30:29.759 [main] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Initializing ExecutorService 'applicationTaskExecutor'
2021-12-10 18:30:30.198 [main] INFO org.apache.coyote.http11.Http11NioProtocol-Starting ProtocolHandler ["http-nio-8001"]
2021-12-10 18:30:30.211 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat started on port(s): 8001 (http) with context path ''
2021-12-10 18:30:30.212 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Context refreshed
2021-12-10 18:30:30.229 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Found 1 custom documentation plugin(s)
2021-12-10 18:30:30.261 [main] INFO s.d.spring.web.scanners.ApiListingReferenceScanner-Scanning for api listing references
2021-12-10 18:30:30.389 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_1
2021-12-10 18:30:30.401 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_2
2021-12-10 18:30:30.419 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_3
2021-12-10 18:30:30.436 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_4
2021-12-10 18:30:30.454 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_1
2021-12-10 18:30:30.460 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_5
2021-12-10 18:30:30.483 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_1
2021-12-10 18:30:30.494 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_6
2021-12-10 18:30:30.499 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: publishUsingPOST_1
2021-12-10 18:30:30.516 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: saveUsingPOST_1
2021-12-10 18:30:30.529 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_7
2021-12-10 18:30:30.532 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_8
2021-12-10 18:30:30.582 [main] INFO com.fzm.portal.JoyingPortalApplication-Started JoyingPortalApplication in 9.469 seconds (JVM running for 10.622)
2021-12-10 18:30:46.292 [SpringContextShutdownHook] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Shutting down ExecutorService 'applicationTaskExecutor'
2021-12-10 18:30:46.341 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closing ...
2021-12-10 18:30:46.348 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closed
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
2021-12-21 15:54:25.212 [main] INFO com.fzm.portal.JoyingPortalApplication-Starting JoyingPortalApplication on LAPTOP-AT8CNAMK with PID 1860 (D:\workspace\fzm-joying\joying-portal\target\classes started by tangtuo in D:\workspace\fzm-joying)
2021-12-21 15:54:25.214 [main] INFO com.fzm.portal.JoyingPortalApplication-The following profiles are active: dev
2021-12-21 15:54:26.286 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Multiple Spring Data modules found, entering strict repository configuration mode!
2021-12-21 15:54:26.288 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2021-12-21 15:54:26.310 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Finished Spring Data repository scanning in 10ms. Found 0 Redis repository interfaces.
2021-12-21 15:54:27.037 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat initialized with port(s): 8001 (http)
2021-12-21 15:54:27.044 [main] INFO org.apache.coyote.http11.Http11NioProtocol-Initializing ProtocolHandler ["http-nio-8001"]
2021-12-21 15:54:27.045 [main] INFO org.apache.catalina.core.StandardService-Starting service [Tomcat]
2021-12-21 15:54:27.045 [main] INFO org.apache.catalina.core.StandardEngine-Starting Servlet engine: [Apache Tomcat/9.0.35]
2021-12-21 15:54:27.169 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]-Initializing Spring embedded WebApplicationContext
2021-12-21 15:54:27.169 [main] INFO org.springframework.web.context.ContextLoader-Root WebApplicationContext: initialization completed in 1915 ms
2021-12-21 15:54:27.313 [main] INFO c.a.d.s.b.a.DruidDataSourceAutoConfigure-Init DruidDataSource
2021-12-21 15:54:28.552 [main] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} inited
2021-12-21 15:54:30.063 [main] INFO org.redisson.Version-Redisson 3.16.0
2021-12-21 15:54:30.958 [redisson-netty-4-23] INFO o.r.connection.pool.MasterPubSubConnectionPool-1 connections initialized for 172.16.101.135/172.16.101.135:6379
2021-12-21 15:54:31.034 [redisson-netty-4-19] INFO org.redisson.connection.pool.MasterConnectionPool-24 connections initialized for 172.16.101.135/172.16.101.135:6379
2021-12-21 15:54:31.212 [main] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightApplyOwnerRelation.
2021-12-21 15:54:31.300 [main] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightAuthorityRelation.
2021-12-21 15:54:31.380 [main] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Initializing ExecutorService 'threadPoolTaskExecutor'
2021-12-21 15:54:32.062 [main] INFO s.d.s.w.PropertySourcedRequestMappingHandlerMapping-Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
2021-12-21 15:54:32.627 [main] INFO org.apache.coyote.http11.Http11NioProtocol-Starting ProtocolHandler ["http-nio-8001"]
2021-12-21 15:54:32.639 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat started on port(s): 8001 (http) with context path ''
2021-12-21 15:54:32.640 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Context refreshed
2021-12-21 15:54:32.653 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Found 1 custom documentation plugin(s)
2021-12-21 15:54:32.680 [main] INFO s.d.spring.web.scanners.ApiListingReferenceScanner-Scanning for api listing references
2021-12-21 15:54:32.787 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_1
2021-12-21 15:54:32.799 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_2
2021-12-21 15:54:32.817 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_3
2021-12-21 15:54:32.845 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_1
2021-12-21 15:54:32.860 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_4
2021-12-21 15:54:32.881 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: addUsingPOST_1
2021-12-21 15:54:32.882 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_1
2021-12-21 15:54:32.888 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_5
2021-12-21 15:54:32.889 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_1
2021-12-21 15:54:32.891 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_2
2021-12-21 15:54:32.896 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_6
2021-12-21 15:54:32.915 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_2
2021-12-21 15:54:32.926 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_7
2021-12-21 15:54:32.931 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: publishUsingPOST_1
2021-12-21 15:54:32.946 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: saveUsingPOST_1
2021-12-21 15:54:32.955 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getDetailUsingGET_1
2021-12-21 15:54:32.958 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_8
2021-12-21 15:54:32.960 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_9
2021-12-21 15:54:32.961 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_3
2021-12-21 15:54:32.962 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: downloadUsingPOST_1
2021-12-21 15:54:32.967 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: uploadUsingPOST_1
2021-12-21 15:54:32.990 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_2
2021-12-21 15:54:33.010 [main] INFO com.fzm.portal.JoyingPortalApplication-Started JoyingPortalApplication in 8.27 seconds (JVM running for 10.009)
2021-12-21 15:54:37.577 [SpringContextShutdownHook] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Shutting down ExecutorService 'threadPoolTaskExecutor'
2021-12-21 15:54:37.622 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closing ...
2021-12-21 15:54:37.626 [SpringContextShutdownHook] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} closed
2021-12-22 14:20:10.146 [main] INFO com.fzm.portal.JoyingPortalApplication-Starting JoyingPortalApplication on LAPTOP-AT8CNAMK with PID 20028 (D:\workspace\fzm-joying\joying-portal\target\classes started by tangtuo in D:\workspace\fzm-joying)
2021-12-22 14:20:10.149 [main] INFO com.fzm.portal.JoyingPortalApplication-The following profiles are active: dev
2021-12-22 14:20:11.120 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Multiple Spring Data modules found, entering strict repository configuration mode!
2021-12-22 14:20:11.122 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2021-12-22 14:20:11.153 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Finished Spring Data repository scanning in 11ms. Found 0 Redis repository interfaces.
2021-12-22 14:20:12.047 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat initialized with port(s): 8001 (http)
2021-12-22 14:20:12.055 [main] INFO org.apache.coyote.http11.Http11NioProtocol-Initializing ProtocolHandler ["http-nio-8001"]
2021-12-22 14:20:12.056 [main] INFO org.apache.catalina.core.StandardService-Starting service [Tomcat]
2021-12-22 14:20:12.056 [main] INFO org.apache.catalina.core.StandardEngine-Starting Servlet engine: [Apache Tomcat/9.0.35]
2021-12-22 14:20:12.199 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]-Initializing Spring embedded WebApplicationContext
2021-12-22 14:20:12.200 [main] INFO org.springframework.web.context.ContextLoader-Root WebApplicationContext: initialization completed in 2011 ms
2021-12-22 14:20:12.392 [main] INFO c.a.d.s.b.a.DruidDataSourceAutoConfigure-Init DruidDataSource
2021-12-22 14:20:13.891 [main] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} inited
2021-12-22 14:20:15.407 [main] INFO org.redisson.Version-Redisson 3.16.0
2021-12-22 14:20:16.248 [redisson-netty-4-13] INFO o.r.connection.pool.MasterPubSubConnectionPool-1 connections initialized for 172.16.101.135/172.16.101.135:6379
2021-12-22 14:20:16.368 [redisson-netty-4-20] INFO org.redisson.connection.pool.MasterConnectionPool-24 connections initialized for 172.16.101.135/172.16.101.135:6379
2021-12-22 14:20:16.684 [main] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightApplyOwnerRelation.
2021-12-22 14:20:16.762 [main] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightAuthorityRelation.
2021-12-22 14:20:16.829 [main] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Initializing ExecutorService 'threadPoolTaskExecutor'
2021-12-22 14:20:17.439 [main] INFO s.d.s.w.PropertySourcedRequestMappingHandlerMapping-Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
2021-12-22 14:20:18.020 [main] INFO org.apache.coyote.http11.Http11NioProtocol-Starting ProtocolHandler ["http-nio-8001"]
2021-12-22 14:20:18.032 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat started on port(s): 8001 (http) with context path ''
2021-12-22 14:20:18.033 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Context refreshed
2021-12-22 14:20:18.046 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Found 1 custom documentation plugin(s)
2021-12-22 14:20:18.073 [main] INFO s.d.spring.web.scanners.ApiListingReferenceScanner-Scanning for api listing references
2021-12-22 14:20:18.179 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_1
2021-12-22 14:20:18.191 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_2
2021-12-22 14:20:18.209 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_3
2021-12-22 14:20:18.235 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_1
2021-12-22 14:20:18.252 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_4
2021-12-22 14:20:18.272 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: addUsingPOST_1
2021-12-22 14:20:18.273 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_1
2021-12-22 14:20:18.279 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_5
2021-12-22 14:20:18.281 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_1
2021-12-22 14:20:18.282 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_2
2021-12-22 14:20:18.287 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_6
2021-12-22 14:20:18.307 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_2
2021-12-22 14:20:18.319 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_7
2021-12-22 14:20:18.324 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: publishUsingPOST_1
2021-12-22 14:20:18.339 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: saveUsingPOST_1
2021-12-22 14:20:18.347 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getDetailUsingGET_1
2021-12-22 14:20:18.350 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_8
2021-12-22 14:20:18.353 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_9
2021-12-22 14:20:18.354 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_3
2021-12-22 14:20:18.355 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: downloadUsingPOST_1
2021-12-22 14:20:18.359 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: uploadUsingPOST_1
2021-12-22 14:20:18.382 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_2
2021-12-22 14:20:18.401 [main] INFO com.fzm.portal.JoyingPortalApplication-Started JoyingPortalApplication in 8.673 seconds (JVM running for 10.384)
2021-12-22 14:20:40.874 [http-nio-8001-exec-5] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]-Initializing Spring DispatcherServlet 'dispatcherServlet'
2021-12-22 14:20:40.874 [http-nio-8001-exec-5] INFO org.springframework.web.servlet.DispatcherServlet-Initializing Servlet 'dispatcherServlet'
2021-12-22 14:20:40.881 [http-nio-8001-exec-5] INFO org.springframework.web.servlet.DispatcherServlet-Completed initialization in 7 ms
2021-12-22 14:21:32.072 [http-nio-8001-exec-9] INFO com.fzm.portal.aop.LogAop-请求路径: /open/nft/hash,请求参数:[{tokenId=1431186204212203520}]
2021-12-22 14:21:32.165 [http-nio-8001-exec-9] DEBUG com.fzm.common.mapper.NftMapper.selectOne-==> Preparing: SELECT id,category_id,user_id,publish_address,name,cover,author,synopsis,file_name,file_url,file_hash,nft_id,nft_hash,token_id,publish_time,transfer_hash,commemorate_id,is_top,status,is_commemorate,create_date,update_date,create_time,update_time FROM tb_nft WHERE (token_id = ?)
2021-12-22 14:21:32.259 [http-nio-8001-exec-9] DEBUG com.fzm.common.mapper.NftMapper.selectOne-==> Parameters: 1431186204212203520(Long)
2021-12-22 14:21:32.322 [http-nio-8001-exec-9] DEBUG com.fzm.common.mapper.NftMapper.selectOne-<== Total: 1
2021-12-22 14:21:32.336 [http-nio-8001-exec-9] INFO com.fzm.portal.aop.LogAop-请求路径:/open/nft/hash,接口耗时:268ms
2021-12-24 10:22:15.454 [background-preinit] INFO org.hibernate.validator.internal.util.Version-HV000001: Hibernate Validator 6.1.7.Final
2021-12-24 10:22:15.481 [main] INFO com.fzm.portal.JoyingPortalApplication-Starting JoyingPortalApplication on LAPTOP-AT8CNAMK with PID 24636 (D:\workspace\fzm-joying\joying-portal\target\classes started by tangtuo in D:\workspace\fzm-joying)
2021-12-24 10:22:15.482 [main] INFO com.fzm.portal.JoyingPortalApplication-The following profiles are active: nj
2021-12-24 10:22:16.423 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Multiple Spring Data modules found, entering strict repository configuration mode!
2021-12-24 10:22:16.426 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2021-12-24 10:22:16.456 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Finished Spring Data repository scanning in 15ms. Found 0 Redis repository interfaces.
2021-12-24 10:22:17.267 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat initialized with port(s): 8001 (http)
2021-12-24 10:22:17.277 [main] INFO org.apache.coyote.http11.Http11NioProtocol-Initializing ProtocolHandler ["http-nio-8001"]
2021-12-24 10:22:17.277 [main] INFO org.apache.catalina.core.StandardService-Starting service [Tomcat]
2021-12-24 10:22:17.278 [main] INFO org.apache.catalina.core.StandardEngine-Starting Servlet engine: [Apache Tomcat/9.0.43]
2021-12-24 10:22:17.410 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]-Initializing Spring embedded WebApplicationContext
2021-12-24 10:22:17.410 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext-Root WebApplicationContext: initialization completed in 1890 ms
2021-12-24 10:22:17.563 [main] INFO c.a.d.s.b.a.DruidDataSourceAutoConfigure-Init DruidDataSource
2021-12-24 10:22:18.758 [main] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} inited
2021-12-24 10:22:20.314 [main] INFO org.redisson.Version-Redisson 3.16.0
2021-12-24 10:22:21.262 [redisson-netty-4-32] INFO o.r.connection.pool.MasterPubSubConnectionPool-1 connections initialized for 146.56.218.121/146.56.218.121:6379
2021-12-24 10:22:21.384 [redisson-netty-4-19] INFO org.redisson.connection.pool.MasterConnectionPool-24 connections initialized for 146.56.218.121/146.56.218.121:6379
2021-12-24 10:22:21.599 [main] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightApplyOwnerRelation.
2021-12-24 10:22:21.681 [main] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightAuthorityRelation.
2021-12-24 10:22:21.755 [main] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Initializing ExecutorService 'threadPoolTaskExecutor'
2021-12-24 10:22:22.895 [main] INFO s.d.s.w.PropertySourcedRequestMappingHandlerMapping-Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
2021-12-24 10:22:23.598 [main] INFO org.apache.coyote.http11.Http11NioProtocol-Starting ProtocolHandler ["http-nio-8001"]
2021-12-24 10:22:23.611 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat started on port(s): 8001 (http) with context path ''
2021-12-24 10:22:23.612 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Context refreshed
2021-12-24 10:22:23.625 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Found 1 custom documentation plugin(s)
2021-12-24 10:22:23.656 [main] INFO s.d.spring.web.scanners.ApiListingReferenceScanner-Scanning for api listing references
2021-12-24 10:22:23.766 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_1
2021-12-24 10:22:23.778 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_2
2021-12-24 10:22:23.796 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_3
2021-12-24 10:22:23.827 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_1
2021-12-24 10:22:23.843 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_4
2021-12-24 10:22:23.864 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: addUsingPOST_1
2021-12-24 10:22:23.866 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_1
2021-12-24 10:22:23.872 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_5
2021-12-24 10:22:23.874 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_1
2021-12-24 10:22:23.876 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_2
2021-12-24 10:22:23.882 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_6
2021-12-24 10:22:23.900 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getByIdUsingGET_2
2021-12-24 10:22:23.915 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_7
2021-12-24 10:22:23.920 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: publishUsingPOST_1
2021-12-24 10:22:23.937 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: saveUsingPOST_1
2021-12-24 10:22:23.946 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: getDetailUsingGET_1
2021-12-24 10:22:23.949 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_8
2021-12-24 10:22:23.952 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_9
2021-12-24 10:22:23.953 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: deleteUsingPOST_3
2021-12-24 10:22:23.954 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: downloadUsingPOST_1
2021-12-24 10:22:23.957 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: uploadUsingPOST_1
2021-12-24 10:22:23.981 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: updateUsingPOST_2
2021-12-24 10:22:23.999 [main] INFO com.fzm.portal.JoyingPortalApplication-Started JoyingPortalApplication in 8.906 seconds (JVM running for 9.917)
2021-12-24 10:24:11.826 [background-preinit] INFO org.hibernate.validator.internal.util.Version-HV000001: Hibernate Validator 6.1.7.Final
2021-12-24 10:24:11.858 [main] INFO com.fzm.admin.JoyingAdminApplication-Starting JoyingAdminApplication on LAPTOP-AT8CNAMK with PID 28332 (D:\workspace\fzm-joying\joying-admin\target\classes started by tangtuo in D:\workspace\fzm-joying)
2021-12-24 10:24:11.859 [main] INFO com.fzm.admin.JoyingAdminApplication-The following profiles are active: nj
2021-12-24 10:24:12.787 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Multiple Spring Data modules found, entering strict repository configuration mode!
2021-12-24 10:24:12.789 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2021-12-24 10:24:12.815 [main] INFO o.s.d.r.config.RepositoryConfigurationDelegate-Finished Spring Data repository scanning in 13ms. Found 0 Redis repository interfaces.
2021-12-24 10:24:13.471 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat initialized with port(s): 8002 (http)
2021-12-24 10:24:13.480 [main] INFO org.apache.coyote.http11.Http11NioProtocol-Initializing ProtocolHandler ["http-nio-8002"]
2021-12-24 10:24:13.481 [main] INFO org.apache.catalina.core.StandardService-Starting service [Tomcat]
2021-12-24 10:24:13.481 [main] INFO org.apache.catalina.core.StandardEngine-Starting Servlet engine: [Apache Tomcat/9.0.43]
2021-12-24 10:24:13.620 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]-Initializing Spring embedded WebApplicationContext
2021-12-24 10:24:13.620 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext-Root WebApplicationContext: initialization completed in 1722 ms
2021-12-24 10:24:13.793 [main] INFO c.a.d.s.b.a.DruidDataSourceAutoConfigure-Init DruidDataSource
2021-12-24 10:24:15.041 [main] INFO com.alibaba.druid.pool.DruidDataSource-{dataSource-1} inited
2021-12-24 10:24:16.142 [main] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightApplyOwnerRelation.
2021-12-24 10:24:16.207 [main] WARN c.b.mybatisplus.core.metadata.TableInfoHelper-Warn: Could not find @TableId in Class: com.fzm.common.entity.CopyrightAuthorityRelation.
2021-12-24 10:24:16.361 [main] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor-Initializing ExecutorService 'threadPoolTaskExecutor'
2021-12-24 10:24:16.974 [main] INFO org.redisson.Version-Redisson 3.16.0
2021-12-24 10:24:17.790 [redisson-netty-4-30] INFO o.r.connection.pool.MasterPubSubConnectionPool-1 connections initialized for 146.56.218.121/146.56.218.121:6379
2021-12-24 10:24:17.898 [redisson-netty-4-18] INFO org.redisson.connection.pool.MasterConnectionPool-24 connections initialized for 146.56.218.121/146.56.218.121:6379
2021-12-24 10:24:18.525 [main] INFO s.d.s.w.PropertySourcedRequestMappingHandlerMapping-Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
2021-12-24 10:24:19.028 [main] INFO org.apache.coyote.http11.Http11NioProtocol-Starting ProtocolHandler ["http-nio-8002"]
2021-12-24 10:24:19.039 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer-Tomcat started on port(s): 8002 (http) with context path ''
2021-12-24 10:24:19.040 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Context refreshed
2021-12-24 10:24:19.056 [main] INFO s.d.s.web.plugins.DocumentationPluginsBootstrapper-Found 1 custom documentation plugin(s)
2021-12-24 10:24:19.087 [main] INFO s.d.spring.web.scanners.ApiListingReferenceScanner-Scanning for api listing references
2021-12-24 10:24:19.286 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_1
2021-12-24 10:24:19.311 [main] INFO s.d.s.w.r.operation.CachingOperationNameGenerator-Generating unique operation named: listUsingGET_2
2021-12-24 10:24:19.321 [main] INFO o.s.a.rabbit.connection.CachingConnectionFactory-Attempting to connect to: [129.211.166.223:5672]
2021-12-24 10:24:19.409 [main] INFO o.s.a.rabbit.connection.CachingConnectionFactory-Created new connection: rabbitConnectionFactory#56f61d74:0/SimpleConnection@6889e714 [delegate=amqp://guest@129.211.166.223:5672/, localPort= 57466]
2021-12-24 10:24:19.666 [main] INFO com.fzm.admin.JoyingAdminApplication-Started JoyingAdminApplication in 8.217 seconds (JVM running for 9.159)
......@@ -17,7 +17,7 @@
<parent>
<artifactId>spring-boot-starter-parent</artifactId>
<groupId>org.springframework.boot</groupId>
<version>2.3.0.RELEASE</version>
<version>2.3.9.RELEASE</version>
</parent>
<dependencies>
......
......@@ -5,13 +5,13 @@
Source Server Type : MySQL
Source Server Version : 50734
Source Host : 172.16.101.135:3306
Source Schema : joying
Source Schema : joying_dev
Target Server Type : MySQL
Target Server Version : 50734
File Encoding : 65001
Date: 18/09/2021 16:50:44
Date: 24/12/2021 09:59:15
*/
SET NAMES utf8mb4;
......@@ -33,10 +33,9 @@ CREATE TABLE `tb_admin` (
`update_time` bigint(20) NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '后台管理用户' ROW_FORMAT = Dynamic;
INSERT INTO `joying`.`tb_admin`(`id`, `username`, `nickname`, `password`, `role_id`, `create_date`, `update_date`, `create_time`, `update_time`) VALUES (1, '18888888888', 'admin', '$2a$10$IFbt4AT8s4JyaNfqvNlHQumP0jqEjffjuWABYrk4xFWeGOx1tkudu', 1, '2021-07-05 06:56:44', '2021-07-05 06:56:44', NULL, NULL);
INSERT INTO `joying`.`tb_admin`(`id`, `username`, `nickname`, `password`, `role_id`, `create_date`, `update_date`, `create_time`, `update_time`) VALUES (2, '17620078872', 'admin', '$2a$10$IFbt4AT8s4JyaNfqvNlHQumP0jqEjffjuWABYrk4xFWeGOx1tkudu', 1, '2021-07-05 06:56:44', '2021-07-05 06:56:44', NULL, NULL);
INSERT INTO `joying`.`tb_admin`(`id`, `username`, `nickname`, `password`, `role_id`, `create_date`, `update_date`, `create_time`, `update_time`) VALUES (3, '18888886666', 'admin', '$2a$10$IFbt4AT8s4JyaNfqvNlHQumP0jqEjffjuWABYrk4xFWeGOx1tkudu', 1, '2021-07-05 06:56:44', '2021-07-05 06:56:44', NULL, NULL);
INSERT INTO `tb_admin` VALUES (1, '18888888888', 'admin', '$2a$10$IFbt4AT8s4JyaNfqvNlHQumP0jqEjffjuWABYrk4xFWeGOx1tkudu', 1, '2021-07-05 06:56:44', '2021-07-05 06:56:44', NULL, NULL);
INSERT INTO `tb_admin` VALUES (2, '17620078872', 'admin', '$2a$10$IFbt4AT8s4JyaNfqvNlHQumP0jqEjffjuWABYrk4xFWeGOx1tkudu', 1, '2021-07-05 06:56:44', '2021-07-05 06:56:44', NULL, NULL);
INSERT INTO `tb_admin` VALUES (3, '18888886666', 'admin', '$2a$10$IFbt4AT8s4JyaNfqvNlHQumP0jqEjffjuWABYrk4xFWeGOx1tkudu', 1, '2021-07-05 06:56:44', '2021-07-05 06:56:44', NULL, NULL);
-- ----------------------------
-- Table structure for tb_auth_enterprise
......@@ -78,9 +77,104 @@ CREATE TABLE `tb_auth_person` (
`update_time` bigint(20) NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `idx_userid`(`user_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '个人认证信息表' ROW_FORMAT = Dynamic;
) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '个人认证信息表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for tb_authority
-- ----------------------------
DROP TABLE IF EXISTS `tb_authority`;
CREATE TABLE `tb_authority` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`authority` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '权力',
`type` tinyint(255) NOT NULL DEFAULT 0 COMMENT '类型 0-个人作品 1-合作作品 2-法人作品 3-职务作品 4-委托作品',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 86 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '权力拥有情况表' ROW_FORMAT = Dynamic;
INSERT INTO `tb_authority` VALUES (1, '发版权', 1);
INSERT INTO `tb_authority` VALUES (2, '署名权', 1);
INSERT INTO `tb_authority` VALUES (3, '修改权', 1);
INSERT INTO `tb_authority` VALUES (4, '保护作品完整权', 1);
INSERT INTO `tb_authority` VALUES (5, '复制权', 1);
INSERT INTO `tb_authority` VALUES (6, '发行权', 1);
INSERT INTO `tb_authority` VALUES (7, '出租权', 1);
INSERT INTO `tb_authority` VALUES (8, '展览权', 1);
INSERT INTO `tb_authority` VALUES (9, '表演权', 1);
INSERT INTO `tb_authority` VALUES (10, '放映权', 1);
INSERT INTO `tb_authority` VALUES (11, '广播权', 1);
INSERT INTO `tb_authority` VALUES (12, '信息网络传播权', 1);
INSERT INTO `tb_authority` VALUES (13, '摄制权', 1);
INSERT INTO `tb_authority` VALUES (14, '改编权', 1);
INSERT INTO `tb_authority` VALUES (15, '翻译权', 1);
INSERT INTO `tb_authority` VALUES (16, '汇编权', 1);
INSERT INTO `tb_authority` VALUES (17, '其他', 1);
INSERT INTO `tb_authority` VALUES (18, '发版权', 2);
INSERT INTO `tb_authority` VALUES (19, '署名权', 2);
INSERT INTO `tb_authority` VALUES (20, '修改权', 2);
INSERT INTO `tb_authority` VALUES (21, '保护作品完整权', 2);
INSERT INTO `tb_authority` VALUES (22, '复制权', 2);
INSERT INTO `tb_authority` VALUES (23, '发行权', 2);
INSERT INTO `tb_authority` VALUES (24, '出租权', 2);
INSERT INTO `tb_authority` VALUES (25, '展览权', 2);
INSERT INTO `tb_authority` VALUES (26, '表演权', 2);
INSERT INTO `tb_authority` VALUES (27, '放映权', 2);
INSERT INTO `tb_authority` VALUES (28, '广播权', 2);
INSERT INTO `tb_authority` VALUES (29, '信息网络传播权', 2);
INSERT INTO `tb_authority` VALUES (30, '摄制权', 2);
INSERT INTO `tb_authority` VALUES (31, '改编权', 2);
INSERT INTO `tb_authority` VALUES (32, '翻译权', 2);
INSERT INTO `tb_authority` VALUES (33, '汇编权', 2);
INSERT INTO `tb_authority` VALUES (34, '其他', 2);
INSERT INTO `tb_authority` VALUES (35, '发版权', 3);
INSERT INTO `tb_authority` VALUES (36, '署名权', 3);
INSERT INTO `tb_authority` VALUES (37, '修改权', 3);
INSERT INTO `tb_authority` VALUES (38, '保护作品完整权', 3);
INSERT INTO `tb_authority` VALUES (39, '复制权', 3);
INSERT INTO `tb_authority` VALUES (40, '发行权', 3);
INSERT INTO `tb_authority` VALUES (41, '出租权', 3);
INSERT INTO `tb_authority` VALUES (42, '展览权', 3);
INSERT INTO `tb_authority` VALUES (43, '表演权', 3);
INSERT INTO `tb_authority` VALUES (44, '放映权', 3);
INSERT INTO `tb_authority` VALUES (45, '广播权', 3);
INSERT INTO `tb_authority` VALUES (46, '信息网络传播权', 3);
INSERT INTO `tb_authority` VALUES (47, '摄制权', 3);
INSERT INTO `tb_authority` VALUES (48, '改编权', 3);
INSERT INTO `tb_authority` VALUES (49, '翻译权', 3);
INSERT INTO `tb_authority` VALUES (50, '汇编权', 3);
INSERT INTO `tb_authority` VALUES (51, '其他', 3);
INSERT INTO `tb_authority` VALUES (52, '发版权', 4);
INSERT INTO `tb_authority` VALUES (53, '署名权', 4);
INSERT INTO `tb_authority` VALUES (54, '修改权', 4);
INSERT INTO `tb_authority` VALUES (55, '保护作品完整权', 4);
INSERT INTO `tb_authority` VALUES (56, '复制权', 4);
INSERT INTO `tb_authority` VALUES (57, '发行权', 4);
INSERT INTO `tb_authority` VALUES (58, '出租权', 4);
INSERT INTO `tb_authority` VALUES (59, '展览权', 4);
INSERT INTO `tb_authority` VALUES (60, '表演权', 4);
INSERT INTO `tb_authority` VALUES (61, '放映权', 4);
INSERT INTO `tb_authority` VALUES (62, '广播权', 4);
INSERT INTO `tb_authority` VALUES (63, '信息网络传播权', 4);
INSERT INTO `tb_authority` VALUES (64, '摄制权', 4);
INSERT INTO `tb_authority` VALUES (65, '改编权', 4);
INSERT INTO `tb_authority` VALUES (66, '翻译权', 4);
INSERT INTO `tb_authority` VALUES (67, '汇编权', 4);
INSERT INTO `tb_authority` VALUES (68, '其他', 4);
INSERT INTO `tb_authority` VALUES (69, '发版权', 5);
INSERT INTO `tb_authority` VALUES (70, '署名权', 5);
INSERT INTO `tb_authority` VALUES (71, '修改权', 5);
INSERT INTO `tb_authority` VALUES (72, '保护作品完整权', 5);
INSERT INTO `tb_authority` VALUES (73, '复制权', 5);
INSERT INTO `tb_authority` VALUES (74, '发行权', 5);
INSERT INTO `tb_authority` VALUES (75, '出租权', 5);
INSERT INTO `tb_authority` VALUES (76, '展览权', 5);
INSERT INTO `tb_authority` VALUES (77, '表演权', 5);
INSERT INTO `tb_authority` VALUES (78, '放映权', 5);
INSERT INTO `tb_authority` VALUES (79, '广播权', 5);
INSERT INTO `tb_authority` VALUES (80, '信息网络传播权', 5);
INSERT INTO `tb_authority` VALUES (81, '摄制权', 5);
INSERT INTO `tb_authority` VALUES (82, '改编权', 5);
INSERT INTO `tb_authority` VALUES (83, '翻译权', 5);
INSERT INTO `tb_authority` VALUES (84, '汇编权', 5);
INSERT INTO `tb_authority` VALUES (85, '其他', 5);
-- ----------------------------
-- Table structure for tb_category
-- ----------------------------
DROP TABLE IF EXISTS `tb_category`;
......@@ -94,15 +188,14 @@ CREATE TABLE `tb_category` (
`create_time` bigint(20) NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '首页类目表' ROW_FORMAT = Dynamic;
INSERT INTO `joying`.`tb_category`(`id`, `category_name`, `english_name`, `create_date`, `update_date`, `update_time`, `create_time`) VALUES (1, '剧本', 'SCRIPT', '2021-07-01 06:28:16', '2021-07-01 06:28:16', NULL, NULL);
INSERT INTO `joying`.`tb_category`(`id`, `category_name`, `english_name`, `create_date`, `update_date`, `update_time`, `create_time`) VALUES (2, '视频', 'VIDEO', '2021-07-01 06:29:03', '2021-07-01 06:29:03', NULL, NULL);
INSERT INTO `joying`.`tb_category`(`id`, `category_name`, `english_name`, `create_date`, `update_date`, `update_time`, `create_time`) VALUES (3, '电影', 'FILE', '2021-07-01 06:29:20', '2021-07-01 06:29:20', NULL, NULL);
INSERT INTO `joying`.`tb_category`(`id`, `category_name`, `english_name`, `create_date`, `update_date`, `update_time`, `create_time`) VALUES (4, '音频', 'AUDIO', '2021-07-01 06:29:42', '2021-07-01 06:29:42', NULL, NULL);
INSERT INTO `joying`.`tb_category`(`id`, `category_name`, `english_name`, `create_date`, `update_date`, `update_time`, `create_time`) VALUES (5, '图片', 'PICTURE', '2021-07-01 06:29:58', '2021-07-01 06:29:58', NULL, NULL);
INSERT INTO `joying`.`tb_category`(`id`, `category_name`, `english_name`, `create_date`, `update_date`, `update_time`, `create_time`) VALUES (6, '衍生品', 'DERIVATIVE', '2021-07-01 06:30:39', '2021-07-01 06:30:39', NULL, NULL);
INSERT INTO `joying`.`tb_category`(`id`, `category_name`, `english_name`, `create_date`, `update_date`, `update_time`, `create_time`) VALUES (7, '其他', 'OTHER', '2021-07-01 06:30:50', '2021-07-01 06:30:50', NULL, NULL);
INSERT INTO `tb_category` VALUES (1, '剧本', 'SCRIPT', '2021-07-01 06:28:16', '2021-07-01 06:28:16', NULL, NULL);
INSERT INTO `tb_category` VALUES (2, '视频', 'VIDEO', '2021-07-01 06:29:03', '2021-07-01 06:29:03', NULL, NULL);
INSERT INTO `tb_category` VALUES (3, '电影', 'FILE', '2021-07-01 06:29:20', '2021-07-01 06:29:20', NULL, NULL);
INSERT INTO `tb_category` VALUES (4, '音频', 'AUDIO', '2021-07-01 06:29:42', '2021-07-01 06:29:42', NULL, NULL);
INSERT INTO `tb_category` VALUES (5, '图片', 'PICTURE', '2021-07-01 06:29:58', '2021-07-01 06:29:58', NULL, NULL);
INSERT INTO `tb_category` VALUES (6, '衍生品', 'DERIVATIVE', '2021-07-01 06:30:39', '2021-07-01 06:30:39', NULL, NULL);
INSERT INTO `tb_category` VALUES (7, '其他', 'OTHER', '2021-07-01 06:30:50', '2021-07-01 06:30:50', NULL, NULL);
-- ----------------------------
-- Table structure for tb_collection
......@@ -143,56 +236,174 @@ CREATE TABLE `tb_commemorate_nft` (
) ENGINE = InnoDB AUTO_INCREMENT = 9 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '纪念版nft基本信息表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for tb_label
-- Table structure for tb_copyright_apply
-- ----------------------------
DROP TABLE IF EXISTS `tb_copyright_apply`;
CREATE TABLE `tb_copyright_apply` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`serial_num` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '流水号',
`user_id` int(11) NOT NULL COMMENT '用户id',
`nft_hash` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT 'nft哈希',
`nft_name` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT 'nft名称',
`register_entrust` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '登记委托书',
`opus_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '作品名称',
`opus_category_id` int(11) NOT NULL COMMENT '作品类别id',
`opus_property` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '作品性质',
`content_synopsis` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '内容简介',
`create_process` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '创作过程',
`opus_complete_date` date NOT NULL COMMENT '作品完成日期',
`opus_complete_province` varchar(8) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '作品完成省份',
`opus_complete_city` varchar(8) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '作品完成城市',
`publish_state` tinyint(1) NOT NULL DEFAULT 0 COMMENT '发表状态 0-未发表 1-已发表',
`first_publish_date` date NULL DEFAULT NULL COMMENT '首次发表日期',
`first_publish_province` varchar(8) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '首次发表省份',
`first_publish_city` varchar(8) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '首次发表城市',
`authority_acquire_mode` varchar(8) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '权力取得方式',
`authority_acquire_prove` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '权力取得证明材料',
`authority_ascription_mode` varchar(8) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '权力归属方式',
`authority_ascription_prove` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '权力归属证明材料',
`opus_power_guarantee` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '作品权力保证书',
`apply_time` datetime(0) NOT NULL COMMENT '申请时间',
`register_state` tinyint(1) NOT NULL DEFAULT 0 COMMENT '登记状态 -1:已撤回 0:待审核 2:已提交 3:已驳回 4:登记成功 5:审核失败',
`reject_reason` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '驳回原因',
`content` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT 'json',
`create_date` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_date` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0),
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 65 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '版权申请表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for tb_copyright_apply_owner_relation
-- ----------------------------
DROP TABLE IF EXISTS `tb_copyright_apply_owner_relation`;
CREATE TABLE `tb_copyright_apply_owner_relation` (
`copyright_id` int(11) NOT NULL COMMENT '版权id',
`owner_id` int(11) NOT NULL COMMENT '著作权人id',
`type` tinyint(1) NOT NULL DEFAULT 0 COMMENT '类别 0-自然人 1-法人',
`owner` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '著作权人',
`id_number` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '证件号码',
`is_effective` tinyint(1) NOT NULL DEFAULT 1 COMMENT '是否长期有效 0-否 1-是',
`effective_start_date` date NULL DEFAULT NULL COMMENT '证件有效起止时间',
`effective_end_date` date NULL DEFAULT NULL COMMENT '证件有效终止时间',
`province` varchar(8) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '用户所在省份',
`province_code` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '省对应的code',
`city` varchar(8) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '用户所在城市',
`city_code` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '市对应的code',
`id_type` tinyint(1) NOT NULL DEFAULT 0 COMMENT '证件类型 0-身份证 1-营业执照 2-企业法人营业执照 3-组织机构代码证书 4-事业单位法人证书 5-社团法人证书 6-统一社会信用代码 7其他有效证件',
`positive_photo` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '正面照片 (身份证人像面照片)',
`back_photo` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '反面照片(身份证国徽面照片)',
`personal_photo` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '手持身份证照片',
`certificates_photo` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '证件照片(营业执照等)',
`entrust_prove` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '委托证明',
`create_date` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_date` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0),
PRIMARY KEY (`copyright_id`, `owner_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '版权申请记录和著作权人关联表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for tb_copyright_author
-- ----------------------------
DROP TABLE IF EXISTS `tb_copyright_author`;
CREATE TABLE `tb_copyright_author` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`copyright_id` int(11) NOT NULL COMMENT '版权id',
`name` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '作者姓名或名称',
`sign_type` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '署名类型 (本名 | 别名 | 匿名)',
`sign` varchar(8) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '签名',
`create_date` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_date` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0),
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 33 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '版权作者表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for tb_copyright_authority_relation
-- ----------------------------
DROP TABLE IF EXISTS `tb_copyright_authority_relation`;
CREATE TABLE `tb_copyright_authority_relation` (
`copyright_id` int(11) NOT NULL COMMENT '版权id',
`authority_id` int(11) NOT NULL COMMENT '权力id'
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '版权和权力关联表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for tb_copyright_file
-- ----------------------------
DROP TABLE IF EXISTS `tb_label`;
CREATE TABLE `tb_label` (
DROP TABLE IF EXISTS `tb_copyright_file`;
CREATE TABLE `tb_copyright_file` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`copyright_id` int(11) NOT NULL COMMENT '版权id',
`nft_hash` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT 'nft哈希',
`file_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '附件名',
`file_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '附件路径',
`file_hash` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '文件hash',
`file_suffix` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '文件扩展名',
`file_size` int(11) NOT NULL DEFAULT 0 COMMENT '文件大小(字节数)',
`create_date` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_date` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0),
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 32 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '版权附件表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for tb_copyright_owner
-- ----------------------------
DROP TABLE IF EXISTS `tb_copyright_owner`;
CREATE TABLE `tb_copyright_owner` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(8) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '名称',
`category_id` int(2) NULL DEFAULT NULL COMMENT '类目',
`user_id` int(11) NOT NULL COMMENT '用户id',
`type` tinyint(1) NOT NULL DEFAULT 0 COMMENT '类别 0-自然人 1-法人',
`owner` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '著作权人',
`id_number` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '证件号码',
`is_effective` tinyint(1) NOT NULL DEFAULT 1 COMMENT '是否长期有效 0-否 1-是',
`effective_start_date` date NULL DEFAULT NULL COMMENT '证件有效起止时间',
`effective_end_date` date NULL DEFAULT NULL COMMENT '证件有效终止时间',
`province` varchar(8) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '用户所在省份',
`province_code` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '省对应的code',
`city` varchar(8) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '用户所在城市',
`city_code` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '市对应的code',
`id_type` tinyint(1) NOT NULL DEFAULT 0 COMMENT '证件类型 0-身份证 1-营业执照 2-企业法人营业执照 3-组织机构代码证书 4-事业单位法人证书 5-社团法人证书 6-统一社会信用代码 7其他有效证件',
`positive_photo` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '正面照片 (身份证人像面照片)',
`back_photo` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '反面照片(身份证国徽面照片)',
`personal_photo` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '手持身份证照片',
`certificates_photo` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '证件照片(营业执照等)',
`entrust_prove` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '委托证明',
`create_date` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_date` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0),
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 42 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (1, '古装', 1);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (2, '偶像', 1);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (3, '青春', 1);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (4, '军旅', 1);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (5, '罪案', 1);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (6, '历史', 1);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (7, '年代', 1);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (8, '剧情', 1);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (9, '魔幻', 1);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (10, '爱情', 1);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (11, '言情', 1);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (12, '家庭', 1);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (13, '喜剧', 1);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (14, '谍战', 1);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (15, '穿越', 1);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (16, '神话', 1);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (17, '农村', 1);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (18, '奇幻', 1);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (19, '动作', 1);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (20, '儿童', 1);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (21, '武侠', 1);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (22, '都市', 1);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (23, '战争', 1);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (24, '悬疑', 1);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (25, '宫廷', 1);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (26, '科幻', 1);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (27, '商战', 1);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (28, '玄幻', 1);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (29, '惊悚', 1);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (30, '其他', 1);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (31, '电影短片', 2);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (32, '拍摄现场', 2);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (33, '演员专访', 2);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (34, '新闻发布', 2);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (35, '其他', 2);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (36, '海报', 5);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (37, '剧照', 5);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (38, '服装', 5);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (39, '道具', 5);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (40, '置景', 5);
INSERT INTO `joying`.`tb_label`(`id`, `name`, `category_id`) VALUES (41, '其他', 5);
) ENGINE = InnoDB AUTO_INCREMENT = 23 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '著作权人信息表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for tb_draft
-- ----------------------------
DROP TABLE IF EXISTS `tb_draft`;
CREATE TABLE `tb_draft` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL COMMENT '用户id',
`content` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '草稿类容',
`json` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '草稿json串',
`step` int(2) NOT NULL COMMENT '保存草稿时编辑到了第几步,方便再次编辑时页面跳转',
`create_date` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_date` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0),
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 126 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '草稿表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for tb_file_template
-- ----------------------------
DROP TABLE IF EXISTS `tb_file_template`;
CREATE TABLE `tb_file_template` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`file_name` varchar(48) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件名',
`file_url` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件路径',
`type` tinyint(1) NULL DEFAULT NULL COMMENT '类型',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '版权附件模板表' ROW_FORMAT = Dynamic;
INSERT INTO `tb_file_template` VALUES (1, '权利取得方式证明材料附件.docx', 'https://test-nft.oss-cn-hangzhou.aliyuncs.com/20211210/02aba8bb6ad14d828534d741ae6ff0c7/权利取得方式证明材料附件.docx', 0);
INSERT INTO `tb_file_template` VALUES (2, '代理委托书.docx', 'https://test-nft.oss-cn-hangzhou.aliyuncs.com/20211210/1a3f7812993f4f8785b6d50536541f36/代理委托书.docx', 1);
INSERT INTO `tb_file_template` VALUES (3, '权利归属证明材料《合作作品权属协议书》附件.docx', 'https://test-nft.oss-cn-hangzhou.aliyuncs.com/20211210/a2a155f3d0c044b5955a3431fe0dcdab/权利归属证明材料《合作作品权属协议书》附件.docx', 2);
INSERT INTO `tb_file_template` VALUES (4, '权利归属证明材料《著作权权属申请》附件.docx', 'https://test-nft.oss-cn-hangzhou.aliyuncs.com/20211210/252cdb300d984427859b7b6c5daabfeb/权利归属证明材料《著作权权属申请》附件.docx', 3);
INSERT INTO `tb_file_template` VALUES (5, '权利归属证明材料《职务作品权属约定》附件.docx', 'https://test-nft.oss-cn-hangzhou.aliyuncs.com/20211210/ba81002e5d98484e94d141a17d5c47f6/权利归属证明材料《职务作品权属约定》附件.docx', 4);
INSERT INTO `tb_file_template` VALUES (6, '权利归属证明材料《委托创作协议书(甲方享有全部权利)》附件.docx', 'https://test-nft.oss-cn-hangzhou.aliyuncs.com/20211210/d42e75a9c31f49729758518f9f7fa323/权利归属证明材料《委托创作协议书(甲方享有全部权利)》附件.docx', 5);
INSERT INTO `tb_file_template` VALUES (7, '权利归属证明材料《委托创作协议书(作者保留署名权)》附件.docx', 'https://test-nft.oss-cn-hangzhou.aliyuncs.com/20211210/519f7ecab6cd4e7eb24847621249e416/权利归属证明材料《委托创作协议书(作者保留署名权)》附件.docx', 5);
-- ----------------------------
-- Table structure for tb_nft
......@@ -206,13 +417,10 @@ CREATE TABLE `tb_nft` (
`name` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '名称',
`cover` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '封面',
`author` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '作者',
`theme` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '题材',
`synopsis` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '简介',
`file_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件名',
`file_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件地址--用户选择不存档的情况下为空',
`file_hash` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '文件上链hash',
`is_archives` tinyint(1) NOT NULL COMMENT '平台存档 0-不存档 1-加密存档',
`is_grant` tinyint(1) NULL DEFAULT NULL COMMENT '授权阅读 0-不需要授权 1-需要授权',
`nft_id` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT 'nft编号',
`nft_hash` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT 'nft哈希',
`token_id` bigint(20) NULL DEFAULT NULL COMMENT 'nft token',
......@@ -227,7 +435,7 @@ CREATE TABLE `tb_nft` (
`create_time` bigint(20) NULL DEFAULT NULL,
`update_time` bigint(20) NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 469 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
) ENGINE = InnoDB AUTO_INCREMENT = 503 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for tb_nft_transfer_record
......@@ -247,6 +455,16 @@ CREATE TABLE `tb_nft_transfer_record` (
) ENGINE = InnoDB AUTO_INCREMENT = 28 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = 'nft转让记录表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for tb_opus_category
-- ----------------------------
DROP TABLE IF EXISTS `tb_opus_category`;
CREATE TABLE `tb_opus_category` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`value` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '作品类别',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 19 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '作品类别' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for tb_user
-- ----------------------------
DROP TABLE IF EXISTS `tb_user`;
......@@ -269,6 +487,6 @@ CREATE TABLE `tb_user` (
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `idx_telephone`(`telephone`) USING BTREE,
UNIQUE INDEX `idx_email`(`email`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 31 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '门户用户表' ROW_FORMAT = Dynamic;
) ENGINE = InnoDB AUTO_INCREMENT = 36 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '门户用户表' ROW_FORMAT = Dynamic;
SET FOREIGN_KEY_CHECKS = 1;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment