Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataDeclaration
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
黄夏豪
dataDeclaration
Commits
5eb327f5
提交
5eb327f5
authored
5月 24, 2021
作者:
xc
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[excel导入]修改路径
上级
98686cd9
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
25 行增加
和
5 行删除
+25
-5
ExcelController.java
...java/com/tykj/model_layer/controller/ExcelController.java
+3
-2
ScreenSettingController.java
.../com/tykj/setting/controller/ScreenSettingController.java
+14
-0
application.yml
src/main/resources/application.yml
+8
-3
没有找到文件。
src/main/java/com/tykj/model_layer/controller/ExcelController.java
浏览文件 @
5eb327f5
...
@@ -9,6 +9,7 @@ import io.swagger.annotations.Api;
...
@@ -9,6 +9,7 @@ import io.swagger.annotations.Api;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.repository.query.Param
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.springframework.web.multipart.MultipartFile
;
...
@@ -38,10 +39,10 @@ public class ExcelController {
...
@@ -38,10 +39,10 @@ public class ExcelController {
@ApiOperation
(
"导入excel模板"
)
@ApiOperation
(
"导入excel模板"
)
@PostMapping
(
"/template"
)
@PostMapping
(
"/template"
)
public
ResponseEntity
importTemplate
(
@RequestBody
MultipartFile
templat
e
){
public
ResponseEntity
importTemplate
(
MultipartFile
fil
e
){
Map
<
String
,
int
[]>
i
=
null
;
Map
<
String
,
int
[]>
i
=
null
;
try
{
try
{
i
=
excelData
.
getIndenxMap
(
templat
e
);
i
=
excelData
.
getIndenxMap
(
fil
e
);
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
return
ResultUtil
.
failed
(
"导入失败!"
);
return
ResultUtil
.
failed
(
"导入失败!"
);
...
...
src/main/java/com/tykj/setting/controller/ScreenSettingController.java
浏览文件 @
5eb327f5
...
@@ -2,9 +2,11 @@ package com.tykj.setting.controller;
...
@@ -2,9 +2,11 @@ package com.tykj.setting.controller;
import
com.tykj.base.result.ResultUtil
;
import
com.tykj.base.result.ResultUtil
;
import
com.tykj.setting.entity.vo.ScreenSettingVo
;
import
com.tykj.setting.entity.vo.ScreenSettingVo
;
import
com.tykj.setting.repository.ConditionSettingRepository
;
import
com.tykj.setting.service.ScreenSettingService
;
import
com.tykj.setting.service.ScreenSettingService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.checkerframework.checker.units.qual.A
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
...
@@ -18,6 +20,9 @@ public class ScreenSettingController {
...
@@ -18,6 +20,9 @@ public class ScreenSettingController {
@Autowired
@Autowired
private
ScreenSettingService
screenSettingService
;
private
ScreenSettingService
screenSettingService
;
@Autowired
ConditionSettingRepository
conditionSettingRepository
;
@PostMapping
@PostMapping
@ApiOperation
(
"新增筛选设置"
)
@ApiOperation
(
"新增筛选设置"
)
public
ResponseEntity
save
(
@RequestBody
ScreenSettingVo
screenSettingVo
){
public
ResponseEntity
save
(
@RequestBody
ScreenSettingVo
screenSettingVo
){
...
@@ -51,4 +56,13 @@ public class ScreenSettingController {
...
@@ -51,4 +56,13 @@ public class ScreenSettingController {
return
ResultUtil
.
success
(
""
,
"删除成功"
);
return
ResultUtil
.
success
(
""
,
"删除成功"
);
}
}
@DeleteMapping
(
"/condition/{id}"
)
@ApiOperation
(
"按id删除单个筛选设置"
)
public
ResponseEntity
conditionDeleteById
(
@PathVariable
Integer
id
){
conditionSettingRepository
.
deleteById
(
id
);
return
ResultUtil
.
success
(
""
,
"删除成功"
);
}
}
}
src/main/resources/application.yml
浏览文件 @
5eb327f5
spring
:
spring
:
jackson
:
jackson
:
date-format
:
yyyy-MM-dd HH:mm:ss
date-format
:
yyyy-MM-dd HH:mm:ss
time-zone
:
GMT+8
time-zone
:
GMT+8
datasource
:
datasource
:
username
:
root
username
:
root
password
:
Huang123+
password
:
Huang123+
url
:
jdbc:mysql://47.106.142.73:3306/dataTest?useSSL=false&serverTimezone=GMT%2b8&characterEncoding=utf-8&nullCatalogMeansCurrent=true
url
:
jdbc:h2:file:/home/xie/dataBase/dataBase
driver-class-name
:
com.mysql.cj.jdbc.Driver
# url: jdbc:h2:file:/opt/dateDec/dataBase
driver-class-name
:
org.h2.Driver
h2
:
console
:
path=/h2-console
:
enabled
:
true
hikari
:
hikari
:
read-only
:
false
read-only
:
false
connection-timeout
:
60000
connection-timeout
:
60000
...
@@ -16,7 +22,6 @@ spring:
...
@@ -16,7 +22,6 @@ spring:
login-timeout
:
5
login-timeout
:
5
maximum-pool-size
:
60
maximum-pool-size
:
60
minimum-idle
:
10
minimum-idle
:
10
jpa
:
jpa
:
show-sql
:
true
show-sql
:
true
hibernate
:
hibernate
:
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论