Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
319e872e
提交
319e872e
authored
9月 11, 2020
作者:
133
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1
上级
7650b9c6
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
55 行增加
和
10 行删除
+55
-10
MyWebMvcConfig.java
...fig/src/main/java/com/tykj/dev/config/MyWebMvcConfig.java
+24
-0
FileController.java
...a/com/tykj/dev/device/file/Controller/FileController.java
+5
-4
TrainJobController.java
.../tykj/dev/device/train/controller/TrainJobController.java
+0
-0
signUpReturn.java
...ava/com/tykj/dev/device/train/entity/vo/signUpReturn.java
+1
-1
UserTrainVo.java
...n/java/com/tykj/dev/device/user/base/ret/UserTrainVo.java
+8
-1
User.java
...in/java/com/tykj/dev/device/user/subject/entity/User.java
+1
-1
UserServiceImpl.java
...dev/device/user/subject/service/impl/UserServiceImpl.java
+1
-1
InventoryScheduled.java
...n/java/com/tykj/dev/rfid/timeTask/InventoryScheduled.java
+2
-1
pom.xml
dev-union/pom.xml
+12
-0
application.properties
dev-union/src/main/resources/application.properties
+1
-1
没有找到文件。
dev-config/src/main/java/com/tykj/dev/config/MyWebMvcConfig.java
0 → 100644
浏览文件 @
319e872e
package
com
.
tykj
.
dev
.
config
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry
;
import
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
;
/**
* @author zjm
* @version 1.0.0
* @ClassName MyWebMvcConfig.java
* @Description TODO
* @createTime 2020年08月09日 17:28:00
*/
@Configuration
public
class
MyWebMvcConfig
implements
WebMvcConfigurer
{
@Value
(
"${file.path}"
)
private
String
path
;
@Override
public
void
addResourceHandlers
(
ResourceHandlerRegistry
registry
)
{
// 将/static/**访问映射到classpath:/mystatic/
registry
.
addResourceHandler
(
"/file/**"
).
addResourceLocations
(
"file:"
+
path
);
}
}
dev-device/device-file/src/main/java/com/tykj/dev/device/file/Controller/FileController.java
浏览文件 @
319e872e
...
...
@@ -154,12 +154,13 @@ public class FileController {
List
<
MultipartFile
>
multipartFiles
=
((
MultipartHttpServletRequest
)
request
).
getFiles
(
"file"
);
System
.
out
.
println
(
"数据条数"
+
multipartFiles
.
size
());
File
file1
=
new
File
(
url
+
"print/"
);
if
(!
file1
.
exists
()){
file1
.
mkdirs
();
}
String
fileName
=
UUID
.
randomUUID
().
toString
()+
".pdf"
;
File
file
=
new
File
(
url
+
"print/"
+
fileName
);
if
(
file
.
exists
()){
file
.
mkdirs
();
}
// 第一步:创建一个document对象。
Document
document
=
new
Document
();
document
.
setMargins
(
0
,
0
,
0
,
0
);
...
...
dev-device/device-train/src/main/java/com/tykj/dev/device/train/controller/TrainJobController.java
浏览文件 @
319e872e
差异被折叠。
点击展开。
dev-device/device-train/src/main/java/com/tykj/dev/device/train/entity/vo/signUpReturn.java
浏览文件 @
319e872e
...
...
@@ -23,7 +23,7 @@ public class signUpReturn {
@ApiModelProperty
(
value
=
"是否报名 0 报名 1否"
,
name
=
"returns"
)
private
Integer
returns
;
@ApiModelProperty
(
value
=
"job——id"
,
name
=
"
job
Id"
)
@ApiModelProperty
(
value
=
"job——id"
,
name
=
"
task
Id"
)
private
Integer
taskId
;
@ApiModelProperty
(
value
=
"培训id"
,
name
=
"trainThemeId"
)
...
...
dev-device/device-user/src/main/java/com/tykj/dev/device/user/base/ret/UserTrainVo.java
浏览文件 @
319e872e
...
...
@@ -62,14 +62,21 @@ public class UserTrainVo {
/**
* 用户单位
*/
@ApiModelProperty
(
value
=
"用户单位"
,
name
=
"units
Id
"
,
example
=
"12321L"
)
@ApiModelProperty
(
value
=
"用户单位"
,
name
=
"units
Name
"
,
example
=
"12321L"
)
private
String
unitsName
;
/**
* 用户单位id
*/
@ApiModelProperty
(
value
=
"用户单位id"
,
name
=
"unitsId"
,
example
=
"12321L"
)
private
Integer
unitsId
;
/**
* 培训状态 0.已培训 1.已过期 2.未培训 3.快过期
*/
private
Integer
trainStatus
;
/**
* 0 是 1 否
*/
...
...
dev-device/device-user/src/main/java/com/tykj/dev/device/user/subject/entity/User.java
浏览文件 @
319e872e
...
...
@@ -86,7 +86,7 @@ public class User {
private
String
fax
;
/**
* 状态 默认0
,1表示删除
* 状态 默认0
、1表示冻结
*/
@ApiModelProperty
(
value
=
"状态"
,
name
=
"isDel"
,
example
=
"12321L"
)
private
Integer
isDel
=
0
;
...
...
dev-device/device-user/src/main/java/com/tykj/dev/device/user/subject/service/impl/UserServiceImpl.java
浏览文件 @
319e872e
...
...
@@ -226,7 +226,7 @@ public class UserServiceImpl implements UserService {
}
else
{
userTrainVo
.
setIsMustJoin
(
1
);
}
userTrainVo
.
setUnitsName
(
units
.
getName
());
userTrainVo
.
setUnitsName
(
units
Service
.
findById
(
user
.
getUnitsId
())
.
getName
());
list
.
add
(
userTrainVo
);
}
);
...
...
dev-rfid/src/main/java/com/tykj/dev/rfid/timeTask/InventoryScheduled.java
浏览文件 @
319e872e
...
...
@@ -31,7 +31,8 @@ import java.util.List;
@Component
public
class
InventoryScheduled
{
private
String
cron
=
"0 0/1 * * * ? "
;
// private String cron = "0 0/1 * * * ? ";
private
String
cron
=
"0 0 1 * * ?"
;
private
ThreadPoolTaskScheduler
threadPoolTaskScheduler
;
...
...
dev-union/pom.xml
浏览文件 @
319e872e
...
...
@@ -62,6 +62,18 @@
</exclusions>
</dependency>
<dependency>
<groupId>
com.tykj.dev
</groupId>
<artifactId>
device-usereport
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<exclusions>
<exclusion>
<groupId>
com.tykj.dev
</groupId>
<artifactId>
union
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
com.tykj.dev
</groupId>
<artifactId>
device-apply
</artifactId>
...
...
dev-union/src/main/resources/application.properties
浏览文件 @
319e872e
...
...
@@ -16,6 +16,6 @@ server.servlet.session.timeout=PT1H
spring.jackson.date-format
=
yyyy-MM-dd HH:mm:ss
spring.jackson.time-zone
=
GMT+8
file.path
=
/Users/zjm/code/
preview.path
=
192.168.
0.10
:8087/file/
preview.path
=
192.168.
102.26
:8087/file/
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论