Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
fc1de5b9
提交
fc1de5b9
authored
12月 29, 2020
作者:
邓砥奕
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改bug
上级
92dc38fa
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
42 行增加
和
36 行删除
+42
-36
DeviceLogDto.java
...com/tykj/dev/device/library/subject/Dto/DeviceLogDto.java
+3
-2
DeviceLog.java
.../com/tykj/dev/device/library/subject/domin/DeviceLog.java
+23
-21
DeviceLibrarySaveVo.java
...kj/dev/device/library/subject/vo/DeviceLibrarySaveVo.java
+1
-1
RfidServiceImpl.java
.../java/com/tykj/dev/rfid/service/impl/RfidServiceImpl.java
+10
-7
BigScreenServiceImpl.java
...kj/dev/statistical/service/impl/BigScreenServiceImpl.java
+1
-1
StorageBillController.java
.../dev/device/storage/controller/StorageBillController.java
+4
-4
没有找到文件。
dev-library/src/main/java/com/tykj/dev/device/library/subject/Dto/DeviceLogDto.java
浏览文件 @
fc1de5b9
...
...
@@ -12,6 +12,7 @@ import lombok.Data;
import
lombok.NoArgsConstructor
;
import
org.modelmapper.ModelMapper
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
...
...
@@ -36,7 +37,7 @@ public class DeviceLogDto {
private
String
remark
;
@ApiModelProperty
(
value
=
"附件信息"
)
private
List
<
FileVo
>
fileVoList
;
private
List
<
FileVo
>
fileVoList
=
new
ArrayList
<>()
;
@ApiModelProperty
(
value
=
"操作人"
)
private
Integer
createUserId
;
...
...
@@ -90,7 +91,7 @@ public class DeviceLogDto {
ModelMapper
modelMapper
=
BeanHelper
.
getUserMapper
();
DeviceLogUserVo
deviceLogUserVo
=
modelMapper
.
map
(
this
,
DeviceLogUserVo
.
class
);
//set vo字段
if
(
userPublicService
!=
null
)
{
if
(
userPublicService
!=
null
&&
this
.
createUserId
!=
null
)
{
deviceLogUserVo
.
setUser
(
userPublicService
.
getOne
(
this
.
createUserId
).
getName
());
deviceLogUserVo
.
setUnit
(
userPublicService
.
findUnitsNameByUserId
(
this
.
createUserId
));
}
...
...
dev-library/src/main/java/com/tykj/dev/device/library/subject/domin/DeviceLog.java
浏览文件 @
fc1de5b9
...
...
@@ -99,31 +99,33 @@ public class DeviceLog {
//modelMap复制
ModelMapper
mapper
=
BeanHelper
.
getUserMapper
();
DeviceLogDto
deviceLogDto
=
mapper
.
map
(
this
,
DeviceLogDto
.
class
);
//解析组合字段并添加
String
[]
strings
=
this
.
fileDetail
.
split
(
"Ǵ"
);
List
<
FileVo
>
fileVos
=
new
ArrayList
<>();
if
(
strings
.
length
>
0
)
{
for
(
String
s
:
strings
)
{
if
(
s
.
length
()
>
0
)
{
String
[]
strings1
=
s
.
split
(
"Ǒ"
);
if
(
""
.
equals
(
strings1
[
0
])
&&
strings1
.
length
==
4
)
{
FileVo
fileVo
=
new
FileVo
();
fileVo
.
setFileName
(
strings1
[
1
]);
fileVo
.
setFileUrl
(
strings1
[
2
]);
fileVo
.
setTitle
(
strings1
[
3
]);
fileVos
.
add
(
fileVo
);
}
if
(!
""
.
equals
(
strings1
[
0
])
&&
strings1
.
length
==
3
)
{
FileVo
fileVo
=
new
FileVo
();
fileVo
.
setFileName
(
strings1
[
0
]);
fileVo
.
setFileUrl
(
strings1
[
1
]);
fileVo
.
setTitle
(
strings1
[
2
]);
fileVos
.
add
(
fileVo
);
if
(
this
.
fileDetail
!=
null
)
{
//解析组合字段并添加
String
[]
strings
=
this
.
fileDetail
.
split
(
"Ǵ"
);
List
<
FileVo
>
fileVos
=
new
ArrayList
<>();
if
(
strings
.
length
>
0
)
{
for
(
String
s
:
strings
)
{
if
(
s
.
length
()
>
0
)
{
String
[]
strings1
=
s
.
split
(
"Ǒ"
);
if
(
""
.
equals
(
strings1
[
0
])
&&
strings1
.
length
==
4
)
{
FileVo
fileVo
=
new
FileVo
();
fileVo
.
setFileName
(
strings1
[
1
]);
fileVo
.
setFileUrl
(
strings1
[
2
]);
fileVo
.
setTitle
(
strings1
[
3
]);
fileVos
.
add
(
fileVo
);
}
if
(!
""
.
equals
(
strings1
[
0
])
&&
strings1
.
length
==
3
)
{
FileVo
fileVo
=
new
FileVo
();
fileVo
.
setFileName
(
strings1
[
0
]);
fileVo
.
setFileUrl
(
strings1
[
1
]);
fileVo
.
setTitle
(
strings1
[
2
]);
fileVos
.
add
(
fileVo
);
}
}
}
}
deviceLogDto
.
setFileVoList
(
fileVos
);
}
deviceLogDto
.
setFileVoList
(
fileVos
);
return
deviceLogDto
;
}
...
...
dev-library/src/main/java/com/tykj/dev/device/library/subject/vo/DeviceLibrarySaveVo.java
浏览文件 @
fc1de5b9
...
...
@@ -33,7 +33,7 @@ public class DeviceLibrarySaveVo {
@ApiModelProperty
(
value
=
"rfid表面号"
)
private
String
rfidSurfaceId
;
@NotNull
(
message
=
"rfidCardId不能为空"
)
//
@NotNull(message = "rfidCardId不能为空")
@ApiModelProperty
(
value
=
"rfid卡号"
)
private
String
rfidCardId
;
...
...
dev-rfid/src/main/java/com/tykj/dev/rfid/service/impl/RfidServiceImpl.java
浏览文件 @
fc1de5b9
...
...
@@ -230,14 +230,17 @@ public class RfidServiceImpl implements RfidService {
}
else
{
stringBuffer
.
append
(
deviceNumber
.
substring
(
deviceNumber
.
length
()
-
4
));
}
if
(
produceNumber
.
length
()
<
4
)
{
for
(
int
i
=
0
;
i
<
4
-
produceNumber
.
length
();
i
++)
{
stringBuffer
.
append
(
"0"
);
if
(
produceNumber
==
null
){
stringBuffer
.
append
(
"0000"
);
}
else
{
if
(
produceNumber
.
length
()
<
4
)
{
for
(
int
i
=
0
;
i
<
4
-
produceNumber
.
length
();
i
++)
{
stringBuffer
.
append
(
"0"
);
}
stringBuffer
.
append
(
produceNumber
);
}
else
{
stringBuffer
.
append
(
produceNumber
.
substring
(
produceNumber
.
length
()
-
4
));
}
stringBuffer
.
append
(
produceNumber
);
}
else
{
stringBuffer
.
append
(
produceNumber
.
substring
(
produceNumber
.
length
()
-
4
));
}
return
stringBuffer
.
toString
();
}
...
...
dev-statistical/src/main/java/com/tykj/dev/statistical/service/impl/BigScreenServiceImpl.java
浏览文件 @
fc1de5b9
...
...
@@ -141,7 +141,7 @@ public class BigScreenServiceImpl implements BigScreenService {
//本年度业务总数
centerNum
.
setBusinessCount
((
int
)
taskDao
.
findAll
().
stream
().
filter
(
task
->
isPresentYear
(
task
.
getCreateTime
())).
count
());
//新增设备数
centerNum
.
setDeviceAddCount
((
int
)
deviceLibraryDao
.
findAll
().
stream
().
filter
(
deviceLibrary
->
isPresentYear
(
deviceLibrary
.
getCreateTime
())).
count
());
centerNum
.
setDeviceAddCount
((
int
)
deviceLibraryDao
.
findAll
().
stream
().
filter
(
deviceLibrary
->
deviceLibrary
.
getCreateTime
()!=
null
&&
isPresentYear
(
deviceLibrary
.
getCreateTime
())).
count
());
//故障率
Set
<
Integer
>
repairDeviceIds
=
new
HashSet
<>();
double
num
=
0
;
...
...
dev-storage/src/main/java/com/tykj/dev/device/storage/controller/StorageBillController.java
浏览文件 @
fc1de5b9
...
...
@@ -39,10 +39,7 @@ import org.springframework.transaction.annotation.Transactional;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.*
;
/**
* @author dengdiyi
...
...
@@ -187,6 +184,9 @@ public class StorageBillController {
deviceLibraryEntity
.
setLocationUnit
(
userUtils
.
getCurrentUserUnitName
());
deviceLibraryEntity
.
setOwnUnit
(
userUtils
.
getCurrentUserUnitName
());
deviceLibraryEntity
.
setPartParentId
(
null
);
if
(
deviceLibraryEntity
.
getRfidCardId
()==
null
||
""
.
equals
(
deviceLibraryEntity
.
getRfidCardId
())){
deviceLibraryEntity
.
setRfidCardId
(
UUID
.
randomUUID
().
toString
());
}
//如果不是单独的配件,设置父装备id为上一个装备的id
if
(
d
.
getIsSinglePart
()
==
0
)
{
if
(
deviceLibraryEntity
.
getIsPart
()
==
0
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论