Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
e7b35eae
提交
e7b35eae
authored
10月 19, 2020
作者:
133
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[清退]、[培训] 添加json时间返回格式 yyyy mm dd
上级
c7120aaf
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
37 行增加
和
12 行删除
+37
-12
WebMvcConfigConfig.java
...src/main/java/com/tykj/dev/config/WebMvcConfigConfig.java
+7
-0
SendBackBill.java
.../tykj/dev/device/sendback/entity/domain/SendBackBill.java
+3
-0
SendBackBillDetail.java
...dev/device/sendback/entity/domain/SendBackBillDetail.java
+5
-0
SendBackOutFormVo.java
...tykj/dev/device/sendback/entity/vo/SendBackOutFormVo.java
+15
-12
SendBackOutVo.java
...com/tykj/dev/device/sendback/entity/vo/SendBackOutVo.java
+2
-0
SendBackVo.java
...va/com/tykj/dev/device/sendback/entity/vo/SendBackVo.java
+2
-0
UnDeviceDesVo.java
...com/tykj/dev/device/sendback/entity/vo/UnDeviceDesVo.java
+2
-0
TrainTheme.java
...ain/java/com/tykj/dev/device/train/entity/TrainTheme.java
+1
-0
没有找到文件。
dev-config/src/main/java/com/tykj/dev/config/WebMvcConfigConfig.java
浏览文件 @
e7b35eae
...
...
@@ -8,10 +8,13 @@ import org.springframework.format.datetime.DateFormatterRegistrar;
import
org.springframework.format.datetime.standard.DateTimeFormatterRegistrar
;
import
org.springframework.format.support.DefaultFormattingConversionService
;
import
org.springframework.format.support.FormattingConversionService
;
import
org.springframework.security.web.method.annotation.AuthenticationPrincipalArgumentResolver
;
import
org.springframework.web.method.support.HandlerMethodArgumentResolver
;
import
org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry
;
import
org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
;
import
java.time.format.DateTimeFormatter
;
import
java.util.List
;
/**
* DateTimeConfig.
...
...
@@ -60,4 +63,8 @@ public class WebMvcConfigConfig extends WebMvcConfigurationSupport {
return
conversionService
;
}
@Override
protected
void
addArgumentResolvers
(
List
<
HandlerMethodArgumentResolver
>
argumentResolvers
)
{
argumentResolvers
.
add
(
new
AuthenticationPrincipalArgumentResolver
());
}
}
dev-sendback/src/main/java/com/tykj/dev/device/sendback/entity/domain/SendBackBill.java
浏览文件 @
e7b35eae
package
com
.
tykj
.
dev
.
device
.
sendback
.
entity
.
domain
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
...
...
@@ -47,6 +48,7 @@ public class SendBackBill {
* 截止时间
*/
@ApiModelProperty
(
value
=
"截止时间"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
deadLine
;
/**
* 涉及装备id(x作为分隔符),例如x1x2x,意为id为1,2的装备需要退回
...
...
@@ -64,6 +66,7 @@ public class SendBackBill {
*/
@CreatedDate
@ApiModelProperty
(
value
=
"创建时间"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
createTime
;
/**
* 更新用户id
...
...
dev-sendback/src/main/java/com/tykj/dev/device/sendback/entity/domain/SendBackBillDetail.java
浏览文件 @
e7b35eae
package
com
.
tykj
.
dev
.
device
.
sendback
.
entity
.
domain
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.tykj.dev.device.library.subject.domin.DeviceLibrary
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
...
...
@@ -66,12 +67,14 @@ public class SendBackBillDetail {
*/
@Column
(
name
=
"send_time"
,
columnDefinition
=
"not null datetime 配发时间"
)
@ApiModelProperty
(
value
=
"配发时间"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
sendTime
;
/**
* 接收时间
*/
@Column
(
name
=
"receive_time"
,
columnDefinition
=
"null datetime 接收时间"
)
@ApiModelProperty
(
value
=
"接收时间"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
receiveTime
;
/**
* 发件方id(A岗位)
...
...
@@ -202,6 +205,7 @@ public class SendBackBillDetail {
@LastModifiedDate
@Column
(
name
=
"update_time"
,
columnDefinition
=
"not null datetime 更新时间"
)
@ApiModelProperty
(
value
=
"更新时间"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
updateTime
;
/**
* 删除标记(0:未删除,1:已删除)
...
...
@@ -240,6 +244,7 @@ public class SendBackBillDetail {
private
String
num
;
@ApiModelProperty
(
value
=
"截至日期"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
time
;
@ApiModelProperty
(
value
=
"发件单位签章id"
)
...
...
dev-sendback/src/main/java/com/tykj/dev/device/sendback/entity/vo/SendBackOutFormVo.java
浏览文件 @
e7b35eae
package
com
.
tykj
.
dev
.
device
.
sendback
.
entity
.
vo
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
...
...
@@ -20,66 +21,68 @@ public class SendBackOutFormVo {
/**
* 申请文号
*/
@Column
(
name
=
"apply_number"
,
columnDefinition
=
"not null varchar(255) 申请文号"
)
@Column
(
name
=
"apply_number"
)
@ApiModelProperty
(
value
=
"申请文号"
)
private
String
applyNumber
;
/**
* 批复文号
*/
@Column
(
name
=
"replay_number"
,
columnDefinition
=
"not null varchar(255) 批复文号"
)
@Column
(
name
=
"replay_number"
)
@ApiModelProperty
(
value
=
"批复文号"
)
private
String
replayNumber
;
/**
* 发件单位
*/
@Column
(
name
=
"send_unit"
,
columnDefinition
=
"not null varchar(32) 发件单位"
)
@Column
(
name
=
"send_unit"
)
@ApiModelProperty
(
value
=
"发件单位"
)
private
String
sendUnit
;
/**
* 收件单位
*/
@Column
(
name
=
"receive_unit"
,
columnDefinition
=
"not null varchar(32) 收件单位"
)
@Column
(
name
=
"receive_unit"
)
@ApiModelProperty
(
value
=
"收件单位"
)
private
String
receiveUnit
;
/**
* 配发时间
*/
@Column
(
name
=
"send_time"
,
columnDefinition
=
"not null datetime 配发时间"
)
@Column
(
name
=
"send_time"
)
@ApiModelProperty
(
value
=
"配发时间"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
sendTime
;
/**
* 接收时间
*/
@Column
(
name
=
"receive_time"
,
columnDefinition
=
"null datetime 接收时间"
)
@Column
(
name
=
"receive_time"
)
@ApiModelProperty
(
value
=
"接收时间"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
receiveTime
;
/**
* 发件方id(A岗位)
*/
@Column
(
name
=
"send_userA_id"
,
columnDefinition
=
"not null int(11) 发件方id(A岗位)"
)
@Column
(
name
=
"send_userA_id"
)
@ApiModelProperty
(
value
=
"发件方id(A岗位)"
)
private
String
sendUserAName
;
/**
* 发件方id(B岗位)
*/
@Column
(
name
=
"send_userB_id"
,
columnDefinition
=
"not null int(11) 发件方id(B岗位)"
)
@Column
(
name
=
"send_userB_id"
)
@ApiModelProperty
(
value
=
"发件方id(B岗位)"
)
private
String
sendUserBName
;
/**
* 收件方id(A岗位)
*/
@Column
(
name
=
"receive_userA_id"
,
columnDefinition
=
"not null int(11) 收件方id(A岗位)"
)
@Column
(
name
=
"receive_userA_id"
)
@ApiModelProperty
(
value
=
"收件方id(A岗位)"
)
private
String
receiveUserAName
;
/**
* 收件方id(B岗位)
*/
@Column
(
name
=
"receive_userB_id"
,
columnDefinition
=
"null int(11) 收件方id(B岗位)"
)
@Column
(
name
=
"receive_userB_id"
)
@ApiModelProperty
(
value
=
"收件方id(B岗位)"
)
private
String
receiveUserBName
;
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
startTime
;
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
endTime
;
private
Integer
page
;
...
...
dev-sendback/src/main/java/com/tykj/dev/device/sendback/entity/vo/SendBackOutVo.java
浏览文件 @
e7b35eae
package
com
.
tykj
.
dev
.
device
.
sendback
.
entity
.
vo
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.tykj.dev.device.library.subject.domin.DeviceLibrary
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
...
...
@@ -27,6 +28,7 @@ public class SendBackOutVo {
private
Integer
id
;
@ApiModelProperty
(
value
=
"截止时间"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
time
;
@ApiModelProperty
(
value
=
"应出库"
)
...
...
dev-sendback/src/main/java/com/tykj/dev/device/sendback/entity/vo/SendBackVo.java
浏览文件 @
e7b35eae
package
com
.
tykj
.
dev
.
device
.
sendback
.
entity
.
vo
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.tykj.dev.device.library.subject.domin.DeviceLibrary
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
...
...
@@ -24,6 +25,7 @@ public class SendBackVo {
private
String
name
;
@ApiModelProperty
(
value
=
"截至日期"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
time
;
@ApiModelProperty
(
value
=
"是否可以办结"
)
...
...
dev-sendback/src/main/java/com/tykj/dev/device/sendback/entity/vo/UnDeviceDesVo.java
浏览文件 @
e7b35eae
package
com
.
tykj
.
dev
.
device
.
sendback
.
entity
.
vo
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
...
...
@@ -19,6 +20,7 @@ import java.util.List;
public
class
UnDeviceDesVo
{
@ApiModelProperty
(
value
=
"时间"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
time
;
@ApiModelProperty
(
value
=
"用户名称"
)
...
...
dev-train/src/main/java/com/tykj/dev/device/train/entity/TrainTheme.java
浏览文件 @
e7b35eae
...
...
@@ -46,6 +46,7 @@ public class TrainTheme {
/**
* 报名截止时间
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
@ApiModelProperty
(
value
=
"报名截止时间"
)
private
Date
trainTime
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论