Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
4c84fe6e
提交
4c84fe6e
authored
2月 24, 2021
作者:
133
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[清退 文件] 代码提交
上级
a0b8e009
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
30 行增加
和
14 行删除
+30
-14
ConfirmDevice.java
...n/java/com/tykj/dev/device/file/entity/ConfirmDevice.java
+3
-2
DestructionDevice.java
...va/com/tykj/dev/device/file/entity/DestructionDevice.java
+5
-3
DocumentDevice.java
.../java/com/tykj/dev/device/file/entity/DocumentDevice.java
+8
-5
JavaToPdfHtmlFreeMarker.java
...om/tykj/dev/device/file/util/JavaToPdfHtmlFreeMarker.java
+8
-0
RepelBusinessServiceImpl.java
...evice/sendback/service/impl/RepelBusinessServiceImpl.java
+4
-2
RepelQueryServiceImpl.java
...v/device/sendback/service/impl/RepelQueryServiceImpl.java
+1
-1
bill.html
dev-union/src/main/resources/bill.html
+0
-0
bill1.html
dev-union/src/main/resources/bill1.html
+1
-1
没有找到文件。
dev-file/src/main/java/com/tykj/dev/device/file/entity/ConfirmDevice.java
浏览文件 @
4c84fe6e
...
...
@@ -62,9 +62,10 @@ public class ConfirmDevice {
case
"7"
:
category
=
"密码软件"
;
break
;
default
:
case
"8"
:
category
=
"密码卡"
;
default
:
category
=
"-"
;
break
;
}
...
...
dev-file/src/main/java/com/tykj/dev/device/file/entity/DestructionDevice.java
浏览文件 @
4c84fe6e
...
...
@@ -69,9 +69,11 @@ public class DestructionDevice {
category
=
"密码软件"
;
break
;
default
:
category
=
"密码卡"
;
break
;
case
"8"
:
category
=
"密码卡"
;
default
:
category
=
"-"
;
break
;
}
...
...
dev-file/src/main/java/com/tykj/dev/device/file/entity/DocumentDevice.java
浏览文件 @
4c84fe6e
...
...
@@ -18,6 +18,10 @@ import lombok.NoArgsConstructor;
@Data
@ApiModel
(
value
=
"单据涉及装备实体"
,
description
=
"单据涉及装备实体"
)
public
class
DocumentDevice
{
@ApiModelProperty
(
name
=
"序号"
)
private
Integer
code
;
@ApiModelProperty
(
name
=
"型号"
)
private
String
model
;
...
...
@@ -68,12 +72,14 @@ public class DocumentDevice {
category
=
"密码软件"
;
break
;
default
:
case
"8"
:
category
=
"密码卡"
;
default
:
category
=
"-"
;
break
;
}
switch
(
securityClassification
){
case
"1"
:
securityClassification
=
"绝密"
;
...
...
@@ -89,7 +95,6 @@ public class DocumentDevice {
break
;
}
switch
(
applicationField
){
case
"1"
:
applicationField
=
"省一级"
;
...
...
@@ -103,9 +108,7 @@ public class DocumentDevice {
default
:
applicationField
=
"无"
;
break
;
}
return
this
;
}
}
dev-file/src/main/java/com/tykj/dev/device/file/util/JavaToPdfHtmlFreeMarker.java
浏览文件 @
4c84fe6e
...
...
@@ -16,6 +16,7 @@ import org.xhtmlrenderer.pdf.ITextRenderer;
import
java.io.*
;
import
java.util.*
;
import
java.util.concurrent.atomic.AtomicInteger
;
import
java.util.stream.Collectors
;
/**
...
...
@@ -208,6 +209,13 @@ public class JavaToPdfHtmlFreeMarker {
data
.
put
(
"receiveUnit"
,
documents
.
getReceiveUnit
());
data
.
put
(
"replyNum"
,
documents
.
getReplyNum
());
data
.
put
(
"senderUnit"
,
documents
.
getSenderUnit
());
AtomicInteger
i
=
new
AtomicInteger
(
1
);
list
.
forEach
(
documentDevice
->
{
documentDevice
.
setCode
(
i
.
get
());
i
.
set
(
i
.
get
()
+
1
);
}
);
data
.
put
(
"documentDevices"
,
list
.
stream
().
map
(
DocumentDevice:
:
toDocumentDevice
).
collect
(
Collectors
.
toList
()));
return
data
;
}
...
...
dev-sendback/src/main/java/com/tykj/dev/device/sendback/service/impl/RepelBusinessServiceImpl.java
浏览文件 @
4c84fe6e
...
...
@@ -632,9 +632,11 @@ public class RepelBusinessServiceImpl implements RepelBusinessService {
Units
units
=
unitsService
.
findById
(
user
.
getUnitsId
());
DeviceRepelDetail
deviceRepelDetail
=
orderOutData
.
toTrainDetailsVo
();
deviceRepelDetail
.
setDeviceIds
(
StringUtils
.
ListToString
(
orderOutData
.
getDevIds
()));
deviceRepelDetail
.
setNum
(
"NO:第"
+
LocalDateTime
.
now
().
getYear
()+
"QT"
+
deviceRepelDetail
.
getId
());
deviceRepelDetail
.
setOutboundFile
(
FilesUtil
.
stringFileToList
(
orderOutData
.
getOutboundFileList
()));
deviceRepelDetailService
.
saveDeviceRepelDetail
(
deviceRepelDetail
);
deviceRepelDetail
.
setNum
(
"NO:第"
+
LocalDateTime
.
now
().
getYear
()+
"QT"
+
deviceRepelDetail
.
getId
());
deviceRepelDetailService
.
saveDeviceRepelDetail
(
deviceRepelDetail
);
deviceLibraryDao
.
upDateLeftStatusAndOwnUnitName
(
DeviceLifeStatus
.
REPEL
.
id
,
orderOutData
.
getReceiveUnit
(),
orderOutData
.
getDevIds
());
deviceRepelDetail
.
setDeviceLibraryEntities
(
findInvoleDevice
(
deviceRepelDetail
.
getDeviceIds
()));
sendOutSuperior
(
units
.
getUnitId
(),
deviceRepelDetail
.
getId
(),
null
);
return
deviceRepelDetail
;
...
...
@@ -715,7 +717,7 @@ public class RepelBusinessServiceImpl implements RepelBusinessService {
private
TaskBto
cityInitiateTask
(
Integer
unitId
,
Integer
repelDetailId
,
String
title
,
Integer
userId
){
//省清退任务待市提交
List
<
Integer
>
list
=
new
ArrayList
<>();
list
.
add
(
u
nit
Id
);
list
.
add
(
u
ser
Id
);
list
.
add
(
0
);
return
taskService
.
start
(
new
TaskBto
(
StatusEnum
.
SEND_BACK_1211
.
id
,
title
,
null
,
"."
,
repelDetailId
,
BusinessEnum
.
SEND_BACK_STATISTICAL
.
id
,
unitId
,
0
,
""
,
list
));
}
...
...
dev-sendback/src/main/java/com/tykj/dev/device/sendback/service/impl/RepelQueryServiceImpl.java
浏览文件 @
4c84fe6e
...
...
@@ -94,7 +94,7 @@ public class RepelQueryServiceImpl implements RepelQueryService {
@Override
public
List
<
ModelNameGroup
>
toRepelList
(
RepelManagementVo
repelManagementVo
)
{
Units
units
=
unitsService
.
findById
(
repelManagementVo
.
getUnitId
());
return
toModelNameGroup
(
deviceLibraryDao
.
findAllByOwnUnitAndLocationUnitAndLifeStatus
(
units
.
getName
(),
units
.
getName
(),
15
).
stream
().
filter
(
deviceLibrary
->
deviceLibrary
.
getUpdateTime
()==
null
||(
deviceLibrary
.
getUpdateTime
().
getTime
()>=
repelManagementVo
.
getTime
()&&
deviceLibrary
.
getUpdateTime
().
getTime
()<=
repelManagementVo
.
getEndTime
())).
collect
(
Collectors
.
toList
()));
return
toModelNameGroup
(
deviceLibraryDao
.
findAllByOwnUnitAndLocationUnitAndLifeStatus
(
units
.
getName
(),
units
.
getName
(),
DeviceLifeStatus
.
REPEL
.
id
).
stream
().
filter
(
deviceLibrary
->
deviceLibrary
.
getUpdateTime
()==
null
||(
deviceLibrary
.
getUpdateTime
().
getTime
()>=
repelManagementVo
.
getTime
()&&
deviceLibrary
.
getUpdateTime
().
getTime
()<=
repelManagementVo
.
getEndTime
())).
collect
(
Collectors
.
toList
()));
}
private
List
<
ModelNameGroup
>
toModelNameGroup
(
List
<
DeviceLibrary
>
deviceLibraries
){
...
...
dev-union/src/main/resources/bill.html
浏览文件 @
4c84fe6e
差异被折叠。
点击展开。
dev-union/src/main/resources/bill1.html
浏览文件 @
4c84fe6e
...
...
@@ -314,7 +314,7 @@
<div
class=
"line2 tableList"
>
<table
class=
"altrowstable"
id=
"alternatecolor"
>
<tr>
<th>
型号
</th><th>
形态
</th>
>
<th>
密级
</th><th>
应用领域
</th><th>
数量
</th><th>
装备序列号
</th><th>
备注
</th>
<th>
型号
</th><th>
形态
</th><th>
密级
</th><th>
应用领域
</th><th>
数量
</th><th>
装备序列号
</th><th>
备注
</th>
</tr>
<
#
list
documentDevices
as
dev
>
<tr>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论