Browse Source

修改无法下载bug

master
zy_Java 4 years ago
parent
commit
8f77037a77
  1. 1
      src/main/java/com/ccsens/filedeal/service/FileService.java
  2. 2
      src/main/resources/application-dev.yml
  3. 2
      src/main/resources/application-prod.yml
  4. 2
      src/main/resources/application-test.yml
  5. 2
      src/main/resources/application.yml
  6. 8
      src/main/resources/druid-prod.yml
  7. 2
      src/main/resources/mapper_dao/FileDao.xml

1
src/main/java/com/ccsens/filedeal/service/FileService.java

@ -158,6 +158,7 @@ public class FileService extends AbstractRedisService implements IFileService {
@Override @Override
public FileVo.FilePosition getById(Long id) { public FileVo.FilePosition getById(Long id) {
// return fileDao.getByLinkId(id);
return fileDao.getByLinkId(id); return fileDao.getByLinkId(id);
} }

2
src/main/resources/application-dev.yml

@ -1,5 +1,5 @@
server: server:
port: 8001 port: 7180
spring: spring:
snowflake: snowflake:
datacenterId: 1 datacenterId: 1

2
src/main/resources/application-prod.yml

@ -1,5 +1,5 @@
server: server:
port: 8001 port: 7180
spring: spring:
snowflake: snowflake:
datacenterId: 1 datacenterId: 1

2
src/main/resources/application-test.yml

@ -1,5 +1,5 @@
server: server:
port: 8001 port: 7180
spring: spring:
snowflake: snowflake:
datacenterId: 1 datacenterId: 1

2
src/main/resources/application.yml

@ -1,4 +1,4 @@
spring: spring:
profiles: profiles:
active: prod active: test
include: common include: common

8
src/main/resources/druid-prod.yml

@ -15,8 +15,8 @@ spring:
maxWait: 60000 maxWait: 60000
minEvictableIdleTimeMillis: 300000 minEvictableIdleTimeMillis: 300000
minIdle: 5 minIdle: 5
# password: 7cdefb88e0b8c8a401b66a83ee0cf80387461268074d1c3dcb146ab485318633 password: 68073a279b399baa1fa12cf39bfbb65bfc1480ffee7b659ccc81cf19be8c4473
password: # password:
poolPreparedStatements: true poolPreparedStatements: true
servletLogSlowSql: true servletLogSlowSql: true
servletLoginPassword: 111111 servletLoginPassword: 111111
@ -28,7 +28,7 @@ spring:
testOnReturn: false testOnReturn: false
testWhileIdle: true testWhileIdle: true
timeBetweenEvictionRunsMillis: 60000 timeBetweenEvictionRunsMillis: 60000
url: jdbc:mysql://127.0.0.1/common?useUnicode=true&characterEncoding=UTF-8 url: jdbc:mysql://www.tall.wiki/common?useUnicode=true&characterEncoding=UTF-8
username: root username: root
validationQuery: SELECT 1 FROM DUAL validationQuery: SELECT 1 FROM DUAL
env: CCSENS_HEALTH env: CCSENS_TALL

2
src/main/resources/mapper_dao/FileDao.xml

@ -32,7 +32,7 @@
t_file_commit c t_file_commit c
WHERE WHERE
l.commit_id = c.id l.commit_id = c.id
AND c.id = #{linkId} AND l.id = #{linkId}
AND l.rec_status = 0 AND l.rec_status = 0
AND c.rec_status = 0 AND c.rec_status = 0
limit 1 limit 1

Loading…
Cancel
Save