Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
dc28a537
提交
dc28a537
authored
5月 13, 2021
作者:
133
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[zjm] 负责模块代码提交
上级
a915d304
隐藏空白字符变更
内嵌
并排
正在显示
26 个修改的文件
包含
421 行增加
和
231 行删除
+421
-231
LogType.java
dev-config/src/main/java/com/tykj/dev/config/LogType.java
+1
-1
DeviceDecommissioningBusinessServiceImpl.java
...ervice/impl/DeviceDecommissioningBusinessServiceImpl.java
+13
-6
DeviceDestroyBusinessServiceImpl.java
...estroy/service/Impl/DeviceDestroyBusinessServiceImpl.java
+6
-7
JavaToPdfHtmlFreeMarker.java
...om/tykj/dev/device/file/util/JavaToPdfHtmlFreeMarker.java
+99
-31
LossBillServiceImpl.java
...ykj/dev/device/loss/service/impl/LossBillServiceImpl.java
+5
-4
pom.xml
dev-policydocument/pom.xml
+29
-0
PolicyDocument.java
...tykj/dev/device/policydocument/entity/PolicyDocument.java
+39
-0
package-info.java
...java/com/tykj/dev/device/policydocument/package-info.java
+2
-0
package-info.java
dev-policydocument/src/main/java/package-info.java
+0
-0
ScrapBusinessServiceImpl.java
...v/device/scrap/service/impl/ScrapBusinessServiceImpl.java
+11
-12
DeviceRepel.java
...m/tykj/dev/device/sendback/entity/domain/DeviceRepel.java
+0
-1
AgainStorageBillServiceImpl.java
...ce/sendback/service/impl/AgainStorageBillServiceImpl.java
+1
-1
RepelBusinessServiceImpl.java
...evice/sendback/service/impl/RepelBusinessServiceImpl.java
+9
-5
TrainController.java
...com/tykj/dev/device/train/controller/TrainController.java
+1
-1
TrainJobController.java
.../tykj/dev/device/train/controller/TrainJobController.java
+9
-0
TrainThemeServiceImpl.java
.../dev/device/train/service/impl/TrainThemeServiceImpl.java
+3
-3
WorkHandoverServiceImpl.java
...ev/device/train/service/impl/WorkHandoverServiceImpl.java
+1
-1
pom.xml
dev-union/pom.xml
+6
-1
bill.html
dev-union/src/main/resources/bill.html
+55
-44
bill1.html
dev-union/src/main/resources/bill1.html
+33
-30
bill2.html
dev-union/src/main/resources/bill2.html
+35
-40
bill3.html
dev-union/src/main/resources/bill3.html
+34
-31
pom.xml
dev-user/pom.xml
+5
-0
UnitsServiceImpl.java
...ev/device/user/subject/service/impl/UnitsServiceImpl.java
+10
-10
UserServiceImpl.java
...dev/device/user/subject/service/impl/UserServiceImpl.java
+7
-2
pom.xml
pom.xml
+7
-0
没有找到文件。
dev-config/src/main/java/com/tykj/dev/config/LogType.java
浏览文件 @
dc28a537
...
@@ -207,7 +207,7 @@ public enum LogType {
...
@@ -207,7 +207,7 @@ public enum LogType {
DECOMMISSIONING_1
(
100201
,
DECOMMISSIONING
.
id
,
ORIGIN_STATUS
.
id
,
SEND_BACK_1210
.
id
,
"发起退役任务,等待中办签字单据"
),
DECOMMISSIONING_1
(
100201
,
DECOMMISSIONING
.
id
,
ORIGIN_STATUS
.
id
,
SEND_BACK_1210
.
id
,
"发起退役任务,等待中办签字单据"
),
DECOMMISSIONING_2
(
100202
,
DECOMMISSIONING
.
id
,
SEND_BACK_1210
.
id
,
END
.
id
,
"上传中办签字单据,任务结束"
),
DECOMMISSIONING_2
(
100202
,
DECOMMISSIONING
.
id
,
SEND_BACK_1210
.
id
,
END
.
id
,
"上传中办签字单据,任务结束"
),
DECOMMISSIONING_3
(
100203
,
DECOMMISSIONING
.
id
,
ORIGIN_STATUS
.
id
,
DECOMMISSIONING_1250
.
id
,
"发起了退役任务的草稿"
),
DECOMMISSIONING_3
(
100203
,
DECOMMISSIONING
.
id
,
ORIGIN_STATUS
.
id
,
DECOMMISSIONING_1250
.
id
,
"发起了退役任务的草稿"
),
DECOMMISSIONING_4
(
100204
,
DECOMMISSIONING
.
id
,
DECOMMISSIONING_1250
.
id
,
SEND_BACK_1210
.
id
,
"
上传中办签字单据,任务结束
"
),
DECOMMISSIONING_4
(
100204
,
DECOMMISSIONING
.
id
,
DECOMMISSIONING_1250
.
id
,
SEND_BACK_1210
.
id
,
"
退役出库完成,等待上传退役签收单
"
),
DECOMMISSIONING_5
(
100205
,
DECOMMISSIONING
.
id
,
SEND_BACK_1210
.
id
,
END
.
id
,
"上传中办签字单据,任务结束"
),
DECOMMISSIONING_5
(
100205
,
DECOMMISSIONING
.
id
,
SEND_BACK_1210
.
id
,
END
.
id
,
"上传中办签字单据,任务结束"
),
DECOMMISSIONING_6
(
100206
,
DECOMMISSIONING
.
id
,
ORIGIN_STATUS
.
id
,
DECOMMISSIONING_1251
.
id
,
"发起退役任务,等待待用签章审核"
),
DECOMMISSIONING_6
(
100206
,
DECOMMISSIONING
.
id
,
ORIGIN_STATUS
.
id
,
DECOMMISSIONING_1251
.
id
,
"发起退役任务,等待待用签章审核"
),
DECOMMISSIONING_7
(
100207
,
DECOMMISSIONING
.
id
,
DECOMMISSIONING_1251
.
id
,
DECOMMISSIONING_1250
.
id
,
"调用电子签章审核,拒绝"
),
DECOMMISSIONING_7
(
100207
,
DECOMMISSIONING
.
id
,
DECOMMISSIONING_1251
.
id
,
DECOMMISSIONING_1250
.
id
,
"调用电子签章审核,拒绝"
),
...
...
dev-decommissioning/src/main/java/com/tykj/dev/device/decommissioning/service/impl/DeviceDecommissioningBusinessServiceImpl.java
浏览文件 @
dc28a537
...
@@ -42,10 +42,7 @@ import org.springframework.http.ResponseEntity;
...
@@ -42,10 +42,7 @@ import org.springframework.http.ResponseEntity;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.*
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.Optional
;
import
java.util.concurrent.CompletableFuture
;
import
java.util.concurrent.CompletableFuture
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
...
@@ -159,7 +156,13 @@ public class DeviceDecommissioningBusinessServiceImpl implements DeviceDecommiss
...
@@ -159,7 +156,13 @@ public class DeviceDecommissioningBusinessServiceImpl implements DeviceDecommiss
deviceDecommissioningDetail
=
deviceDecommissioningDetailService
.
findDeviceDecommissioningDetail
(
taskBto
.
getBillId
());
deviceDecommissioningDetail
=
deviceDecommissioningDetailService
.
findDeviceDecommissioningDetail
(
taskBto
.
getBillId
());
taskBto
=
taskService
.
moveToSpecial
(
taskBto
,
StatusEnum
.
SEND_BACK_1210
,
"country"
);
taskBto
=
taskService
.
moveToSpecial
(
taskBto
,
StatusEnum
.
SEND_BACK_1210
,
"country"
);
deviceDecommissioningDetail
.
setDecommissioningStatus
(
taskBto
.
getBillStatus
());
deviceDecommissioningDetail
.
setDecommissioningStatus
(
taskBto
.
getBillStatus
());
addMessage
(
new
MessageBto
(
taskBto
.
getId
(),
taskBto
.
getBusinessType
(),
user
.
getName
()+
"保存退役任务草稿"
,
gainThisUser
(
userId
,
units
.
getUnitId
())));
if
(
decommissioningOrderOutData
.
getSendUserbId
()!=
null
){
deviceDecommissioningDetail
.
setSendUserbId
(
decommissioningOrderOutData
.
getSendUserbId
());
}
if
(
decommissioningOrderOutData
.
getSenderUserB
()!=
null
){
deviceDecommissioningDetail
.
setSenderUserB
(
decommissioningOrderOutData
.
getSenderUserB
());
}
addMessage
(
new
MessageBto
(
taskBto
.
getId
(),
taskBto
.
getBusinessType
(),
user
.
getName
()+
"发起退役任务,待上传回执单据"
,
gainThisUser
(
userId
,
units
.
getUnitId
())));
}
else
{
}
else
{
deviceDecommissioningDetail
=
decommissioningOrderOutData
.
toDeviceDecommissioningDetail
();
deviceDecommissioningDetail
=
decommissioningOrderOutData
.
toDeviceDecommissioningDetail
();
deviceDecommissioningDetailService
.
saveDeviceDecommissioningDetail
(
deviceDecommissioningDetail
);
deviceDecommissioningDetailService
.
saveDeviceDecommissioningDetail
(
deviceDecommissioningDetail
);
...
@@ -167,6 +170,9 @@ public class DeviceDecommissioningBusinessServiceImpl implements DeviceDecommiss
...
@@ -167,6 +170,9 @@ public class DeviceDecommissioningBusinessServiceImpl implements DeviceDecommiss
addMessage
(
new
MessageBto
(
taskBto
.
getId
(),
taskBto
.
getBusinessType
(),
"发起退役任务,待上传回执单据"
,
gainThisUser
(
user
.
getUserId
(),
user
.
getUnitsId
())));
addMessage
(
new
MessageBto
(
taskBto
.
getId
(),
taskBto
.
getBusinessType
(),
"发起退役任务,待上传回执单据"
,
gainThisUser
(
user
.
getUserId
(),
user
.
getUnitsId
())));
deviceDecommissioningDetail
.
setNum
(
"NO:第"
+
LocalDateTime
.
now
().
getYear
()
+
"QT"
+
deviceDecommissioningDetail
.
getId
());
deviceDecommissioningDetail
.
setNum
(
"NO:第"
+
LocalDateTime
.
now
().
getYear
()
+
"QT"
+
deviceDecommissioningDetail
.
getId
());
deviceDecommissioningDetail
.
setDecommissioningStatus
(
taskBto
.
getBillStatus
());
deviceDecommissioningDetail
.
setDecommissioningStatus
(
taskBto
.
getBillStatus
());
deviceDecommissioningDetail
.
setSendUserbId
(
decommissioningOrderOutData
.
getSendUserbId
());
deviceDecommissioningDetail
.
setSenderUserB
(
decommissioningOrderOutData
.
getSenderUserB
());
}
}
deviceDecommissioningDetail
.
setLeftSignatureId
(
decommissioningOrderOutData
.
getLeftSignatureId
());
deviceDecommissioningDetail
.
setLeftSignatureId
(
decommissioningOrderOutData
.
getLeftSignatureId
());
deviceDecommissioningDetail
.
setApplyNumber
(
decommissioningOrderOutData
.
getApplyNumber
());
deviceDecommissioningDetail
.
setApplyNumber
(
decommissioningOrderOutData
.
getApplyNumber
());
...
@@ -260,6 +266,7 @@ public class DeviceDecommissioningBusinessServiceImpl implements DeviceDecommiss
...
@@ -260,6 +266,7 @@ public class DeviceDecommissioningBusinessServiceImpl implements DeviceDecommiss
deviceDecommissioningDetail
.
setDecommissioningStatus
(
taskBto
.
getBillStatus
());
deviceDecommissioningDetail
.
setDecommissioningStatus
(
taskBto
.
getBillStatus
());
}
}
deviceDecommissioningDetail
.
setReceiveTime
(
new
Date
());
deviceDecommissioningDetail
.
setApplyNumber
(
orderOutData
.
getApplyNumber
());
deviceDecommissioningDetail
.
setApplyNumber
(
orderOutData
.
getApplyNumber
());
deviceDecommissioningDetail
.
setReplayNumber
(
orderOutData
.
getReplayNumber
());
deviceDecommissioningDetail
.
setReplayNumber
(
orderOutData
.
getReplayNumber
());
deviceDecommissioningDetail
.
setReplyFiles
(
FilesUtil
.
stringFileToList
(
orderOutData
.
getReplyFileList
()));
deviceDecommissioningDetail
.
setReplyFiles
(
FilesUtil
.
stringFileToList
(
orderOutData
.
getReplyFileList
()));
...
@@ -361,7 +368,7 @@ public class DeviceDecommissioningBusinessServiceImpl implements DeviceDecommiss
...
@@ -361,7 +368,7 @@ public class DeviceDecommissioningBusinessServiceImpl implements DeviceDecommiss
* @return
* @return
*/
*/
private
List
<
Integer
>
gainThisUser
(
Integer
userId
,
Integer
unitId
){
private
List
<
Integer
>
gainThisUser
(
Integer
userId
,
Integer
unitId
){
return
userService
.
findAllByUnite
(
unitId
).
stream
().
filter
(
user
->
user
.
getU
nits
Id
()!=
userId
).
map
(
User:
:
getUserId
).
collect
(
Collectors
.
toList
());
return
userService
.
findAllByUnite
(
unitId
).
stream
().
filter
(
user
->
user
.
getU
ser
Id
()!=
userId
).
map
(
User:
:
getUserId
).
collect
(
Collectors
.
toList
());
}
}
/**
/**
...
...
dev-destroy/src/main/java/com/tykj/dev/device/destroy/service/Impl/DeviceDestroyBusinessServiceImpl.java
浏览文件 @
dc28a537
...
@@ -79,9 +79,7 @@ public class DeviceDestroyBusinessServiceImpl implements DeviceDestroyBusinessSe
...
@@ -79,9 +79,7 @@ public class DeviceDestroyBusinessServiceImpl implements DeviceDestroyBusinessSe
deviceDestroyBill
=
deviceDestroyBillVo
.
toDeviceDestroyBill
();
deviceDestroyBill
=
deviceDestroyBillVo
.
toDeviceDestroyBill
();
if
(
deviceDestroyBillVo
.
getApplyId
()!=
null
)
{
if
(
deviceDestroyBillVo
.
getApplyId
()!=
null
)
{
Optional
<
DeviceDestroyBill
>
deviceDestroyBill1
=
deviceDestroyBillService
.
findApplyId
(
deviceDestroyBillVo
.
getApplyId
());
Optional
<
DeviceDestroyBill
>
deviceDestroyBill1
=
deviceDestroyBillService
.
findApplyId
(
deviceDestroyBillVo
.
getApplyId
());
if
(
deviceDestroyBill1
.
isPresent
())
{
deviceDestroyBill1
.
ifPresent
(
deviceDestroyBill2
->
deviceDestroyBill
.
setId
(
deviceDestroyBill2
.
getId
()));
deviceDestroyBill
.
setId
(
deviceDestroyBill1
.
get
().
getId
());
}
}
}
deviceDestroyBillService
.
saveDeviceDestroyBill
(
deviceDestroyBill
);
deviceDestroyBillService
.
saveDeviceDestroyBill
(
deviceDestroyBill
);
deviceDestroyBill
.
setNum
(
"NO:第"
+
LocalDateTime
.
now
().
getYear
()
+
"XF"
+
deviceDestroyBill
.
getId
());
deviceDestroyBill
.
setNum
(
"NO:第"
+
LocalDateTime
.
now
().
getYear
()
+
"XF"
+
deviceDestroyBill
.
getId
());
...
@@ -124,14 +122,15 @@ public class DeviceDestroyBusinessServiceImpl implements DeviceDestroyBusinessSe
...
@@ -124,14 +122,15 @@ public class DeviceDestroyBusinessServiceImpl implements DeviceDestroyBusinessSe
addMessage
(
new
MessageBto
(
taskBto
.
getId
(),
taskBto
.
getBusinessType
(),
"销毁任务等待补充手续"
,
gainThisUser
(
securityUser
.
getCurrentUserInfo
().
getUserId
(),
securityUser
.
getCurrentUserInfo
().
getUnitsId
())));
addMessage
(
new
MessageBto
(
taskBto
.
getId
(),
taskBto
.
getBusinessType
(),
"销毁任务等待补充手续"
,
gainThisUser
(
securityUser
.
getCurrentUserInfo
().
getUserId
(),
securityUser
.
getCurrentUserInfo
().
getUnitsId
())));
}
}
deviceDestroyBill
.
setDestroyTime
(
deviceDestroyBillVo
.
getDestroyTime
());
deviceDestroyBill
.
setSupervisor
(
deviceDestroyBillVo
.
getSupervisor
());
deviceDestroyBill
.
setSupervisor
(
deviceDestroyBillVo
.
getSupervisor
());
deviceDestroyBill
.
setLeader
(
deviceDestroyBillVo
.
getLeader
());
deviceDestroyBill
.
setLeader
(
deviceDestroyBillVo
.
getLeader
());
deviceDestroyBill
.
setUndertaker
(
deviceDestroyBillVo
.
getUndertaker
());
deviceDestroyBill
.
setUndertaker
(
deviceDestroyBillVo
.
getUndertaker
());
deviceDestroyBill
.
setApplyNumber
(
deviceDestroyBillVo
.
getApplyNumber
());
deviceDestroyBill
.
setApplyNumber
(
deviceDestroyBillVo
.
getApplyNumber
());
deviceDestroyBill
.
setReplayNumber
(
deviceDestroyBillVo
.
getReplayNumber
());
deviceDestroyBill
.
setReplayNumber
(
deviceDestroyBillVo
.
getReplayNumber
());
deviceDestroyBill
.
setApplyFiles
(
FilesUtil
.
stringFileToList
(
deviceDestroyBill
.
getApplyFileList
()));
deviceDestroyBill
.
setApplyFiles
(
FilesUtil
.
stringFileToList
(
deviceDestroyBill
Vo
.
getApplyFileList
()));
deviceDestroyBill
.
setReplayFiles
(
FilesUtil
.
stringFileToList
(
deviceDestroyBill
.
getReplayFileList
()));
deviceDestroyBill
.
setReplayFiles
(
FilesUtil
.
stringFileToList
(
deviceDestroyBill
Vo
.
getReplayFileList
()));
deviceDestroyBill
.
setScriptJson
(
JacksonUtil
.
toJSon
(
deviceDestroyBill
.
getScripts
()));
deviceDestroyBill
.
setScriptJson
(
JacksonUtil
.
toJSon
(
deviceDestroyBill
Vo
.
getScripts
()));
deviceLibraryDao
.
upDateSeqNumbersLeftStatus
(
DeviceLifeStatus
.
IN_THE_DESTROYED
.
id
,
seqNumbers
);
deviceLibraryDao
.
upDateSeqNumbersLeftStatus
(
DeviceLifeStatus
.
IN_THE_DESTROYED
.
id
,
seqNumbers
);
deviceDestroyBillService
.
saveDeviceDestroyBill
(
deviceDestroyBill
);
deviceDestroyBillService
.
saveDeviceDestroyBill
(
deviceDestroyBill
);
devLogAdd
(
seqNumbers
,
"发了销毁任务,状态转化为销毁中"
,
securityUser
.
getCurrentUserInfo
().
getUserId
());
devLogAdd
(
seqNumbers
,
"发了销毁任务,状态转化为销毁中"
,
securityUser
.
getCurrentUserInfo
().
getUserId
());
...
@@ -239,7 +238,7 @@ public class DeviceDestroyBusinessServiceImpl implements DeviceDestroyBusinessSe
...
@@ -239,7 +238,7 @@ public class DeviceDestroyBusinessServiceImpl implements DeviceDestroyBusinessSe
* 根据单位id查询用户 去除用户id
* 根据单位id查询用户 去除用户id
*/
*/
private
List
<
Integer
>
gainThisUser
(
Integer
userId
,
Integer
unitId
){
private
List
<
Integer
>
gainThisUser
(
Integer
userId
,
Integer
unitId
){
return
userService
.
findAllByUnite
(
unitId
).
stream
().
filter
(
user
->
user
.
getUnitsId
()!=
userId
).
map
(
User:
:
getUserId
).
collect
(
Collectors
.
toList
());
return
userService
.
findAllByUnite
(
unitId
).
stream
().
filter
(
user
->
!
user
.
getUserId
().
equals
(
userId
)
).
map
(
User:
:
getUserId
).
collect
(
Collectors
.
toList
());
}
}
/**
/**
...
...
dev-file/src/main/java/com/tykj/dev/device/file/util/JavaToPdfHtmlFreeMarker.java
浏览文件 @
dc28a537
...
@@ -614,26 +614,62 @@ public class JavaToPdfHtmlFreeMarker {
...
@@ -614,26 +614,62 @@ public class JavaToPdfHtmlFreeMarker {
for
(
int
i
=
0
;
i
<
documentDevices
.
size
();
i
++){
for
(
int
i
=
0
;
i
<
documentDevices
.
size
();
i
++){
DocumentDevice
documentDevice
=
documentDevices
.
get
(
i
);
DocumentDevice
documentDevice
=
documentDevices
.
get
(
i
);
int
len
=
documentDevice
.
getDeviceSerialNumber
().
length
();
int
len
=
documentDevice
.
getDeviceSerialNumber
().
length
();
if
(
len
>=
3500
){
String
deviceSerialNumber
=
documentDevice
.
getDeviceSerialNumber
();
if
(
len
>
1568
){
int
page
=
0
;
int
remainder
=
len
%
1568
;
int
pageCount
=
(
remainder
>
0
)
?
len
/
1568
+
1
:
len
/
1568
;
while
(
page
<
pageCount
-
1
)
{
if
(
page
==
0
)
{
documentDevice
.
setDeviceSerialNumber
(
documentDevice
.
getDeviceSerialNumber
().
substring
(
page
*
1568
,
(
page
+
1
)
*
1568
));
list
.
add
(
documentDevice
);
lists
.
add
(
list
);
}
else
{
DocumentDevice
documentDevice1
=
new
DocumentDevice
();
documentDevice1
.
setDeviceSerialNumber
(
deviceSerialNumber
.
substring
(
page
*
1568
,
(
page
+
1
)
*
1568
));
list
.
add
(
documentDevice1
);
lists
.
add
(
list
);
}
list
=
new
ArrayList
<>();
page
++;
}
DocumentDevice
documentDevice1
=
new
DocumentDevice
();
documentDevice1
.
setDeviceSerialNumber
(
deviceSerialNumber
.
substring
((
pageCount
-
1
)*
1568
,
len
));
list
.
add
(
documentDevice1
);
count
.
set
(
len
-(
pageCount
-
1
)*
1568
);
}
else
if
(
len
==
1568
){
list
.
add
(
documentDevice
);
list
.
add
(
documentDevice
);
lists
.
add
(
list
);
lists
.
add
(
list
);
list
=
new
ArrayList
<>();
list
=
new
ArrayList
<>();
}
else
{
}
int
totle
=
count
.
get
()+
54
+
len
;
else
{
if
(
totle
>
3510
){
int
totle
=
count
.
get
()+
29
+
len
;
DocumentDevice
documentDevice1
=
new
DocumentDevice
();
if
(
totle
>
1568
){
documentDevice1
.
setDeviceSerialNumber
(
documentDevice
.
getDeviceSerialNumber
().
substring
(
3510
-
count
.
get
(),
len
));
// if (len>56) {
documentDevice
.
setDeviceSerialNumber
(
documentDevice
.
getDeviceSerialNumber
().
substring
(
0
,
3510
-
count
.
get
()));
if
(
1568
-
count
.
get
()>
56
)
{
list
.
add
(
documentDevice
);
DocumentDevice
documentDevice1
=
new
DocumentDevice
();
lists
.
add
(
list
);
documentDevice1
.
setDeviceSerialNumber
(
documentDevice
.
getDeviceSerialNumber
().
substring
(
1568
-
count
.
get
(),
len
));
list
=
new
ArrayList
<>();
documentDevice
.
setDeviceSerialNumber
(
documentDevice
.
getDeviceSerialNumber
().
substring
(
0
,
1568
-
count
.
get
()));
list
.
add
(
documentDevice1
);
list
.
add
(
documentDevice
);
count
.
set
(
totle
-
3510
);
lists
.
add
(
list
);
list
=
new
ArrayList
<>();
list
.
add
(
documentDevice1
);
int
num
=
documentDevice1
.
getDeviceSerialNumber
().
length
();
int
yu
=
num
%
56
;
count
.
set
(
num
+
yu
);
}
else
{
list
.
add
(
documentDevice
);
lists
.
add
(
list
);
list
=
new
ArrayList
<>();
count
.
set
(
0
);
// list.add(documentDevice);
}
}
else
{
}
else
{
list
.
add
(
documentDevice
);
list
.
add
(
documentDevice
);
int
yu
=
len
%
5
4
;
int
yu
=
len
%
5
6
;
int
s
=
54
-
yu
;
totle
=
totle
+(
56
-
yu
)
;
count
.
set
(
totle
+
s
);
count
.
set
(
totle
);
}
}
}
}
if
(
i
==
documentDevices
.
size
()-
1
){
if
(
i
==
documentDevices
.
size
()-
1
){
...
@@ -641,7 +677,6 @@ public class JavaToPdfHtmlFreeMarker {
...
@@ -641,7 +677,6 @@ public class JavaToPdfHtmlFreeMarker {
}
}
}
}
return
lists
;
return
lists
;
}
}
/**
/**
...
@@ -661,28 +696,61 @@ public class JavaToPdfHtmlFreeMarker {
...
@@ -661,28 +696,61 @@ public class JavaToPdfHtmlFreeMarker {
for
(
int
i
=
0
;
i
<
workHandoverDevices
.
size
();
i
++){
for
(
int
i
=
0
;
i
<
workHandoverDevices
.
size
();
i
++){
WorkHandoverDevice
workHandoverDevice
=
workHandoverDevices
.
get
(
i
);
WorkHandoverDevice
workHandoverDevice
=
workHandoverDevices
.
get
(
i
);
int
len
=
workHandoverDevice
.
getSeqs
().
length
();
int
len
=
workHandoverDevice
.
getSeqs
().
length
();
if
(
len
>=
3500
){
String
deviceSerialNumber
=
workHandoverDevice
.
getSeqs
();
if
(
len
>
1568
){
int
page
=
0
;
int
remainder
=
len
%
1568
;
int
pageCount
=
(
remainder
>
0
)
?
len
/
1568
+
1
:
len
/
1568
;
while
(
page
<
pageCount
-
1
)
{
if
(
page
==
0
)
{
workHandoverDevice
.
setSeqs
(
workHandoverDevice
.
getSeqs
().
substring
(
page
*
1568
,
(
page
+
1
)
*
1568
));
list
.
add
(
workHandoverDevice
);
lists
.
add
(
list
);
}
else
{
WorkHandoverDevice
workHandoverDevice1
=
new
WorkHandoverDevice
();
workHandoverDevice1
.
setSeqs
(
deviceSerialNumber
.
substring
(
page
*
1568
,
(
page
+
1
)
*
1568
));
list
.
add
(
workHandoverDevice1
);
lists
.
add
(
list
);
}
list
=
new
ArrayList
<>();
page
++;
}
WorkHandoverDevice
workHandoverDevice1
=
new
WorkHandoverDevice
();
workHandoverDevice1
.
setSeqs
(
deviceSerialNumber
.
substring
((
pageCount
-
1
)*
1568
,
len
));
list
.
add
(
workHandoverDevice1
);
count
.
set
(
len
-(
pageCount
-
1
)*
1568
);
}
else
if
(
len
==
1568
){
workHandoverDevice
.
setSeqs
(
toString
(
workHandoverDevice
.
getSeqs
()));
workHandoverDevice
.
setSeqs
(
toString
(
workHandoverDevice
.
getSeqs
()));
list
.
add
(
workHandoverDevice
);
list
.
add
(
workHandoverDevice
);
lists
.
add
(
list
);
lists
.
add
(
list
);
list
=
new
ArrayList
<>();
list
=
new
ArrayList
<>();
}
else
{
}
else
{
int
totle
=
count
.
get
()+
54
+
len
;
int
totle
=
count
.
get
()+
29
+
len
;
if
(
totle
>
3510
){
if
(
totle
>
1568
){
WorkHandoverDevice
workHandoverDevice1
=
new
WorkHandoverDevice
();
if
(
1568
-
count
.
get
()>
56
)
{
workHandoverDevice1
.
setSeqs
(
toString
(
workHandoverDevice1
.
getSeqs
().
substring
(
3510
-
count
.
get
(),
len
)));
WorkHandoverDevice
workHandoverDevice1
=
new
WorkHandoverDevice
();
workHandoverDevice
.
setSeqs
(
toString
(
workHandoverDevice1
.
getSeqs
().
substring
(
0
,
3510
-
count
.
get
())));
workHandoverDevice1
.
setSeqs
(
toString
(
workHandoverDevice1
.
getSeqs
().
substring
(
3510
-
count
.
get
(),
len
)));
list
.
add
(
workHandoverDevice
);
workHandoverDevice
.
setSeqs
(
toString
(
workHandoverDevice1
.
getSeqs
().
substring
(
0
,
3510
-
count
.
get
())));
lists
.
add
(
list
);
list
.
add
(
workHandoverDevice
);
list
=
new
ArrayList
<>();
lists
.
add
(
list
);
list
.
add
(
workHandoverDevice1
);
list
=
new
ArrayList
<>();
count
.
set
(
totle
-
3510
);
list
.
add
(
workHandoverDevice1
);
int
num
=
workHandoverDevice1
.
getSeqs
().
length
();
int
yu
=
num
%
56
;
count
.
set
(
num
+
yu
);
}
else
{
list
.
add
(
workHandoverDevice
);
lists
.
add
(
list
);
list
=
new
ArrayList
<>();
count
.
set
(
0
);
}
}
else
{
}
else
{
workHandoverDevice
.
setSeqs
(
toString
(
workHandoverDevice
.
getSeqs
()));
workHandoverDevice
.
setSeqs
(
toString
(
workHandoverDevice
.
getSeqs
()));
list
.
add
(
workHandoverDevice
);
list
.
add
(
workHandoverDevice
);
int
yu
=
len
%
5
4
;
int
yu
=
len
%
5
6
;
int
s
=
54
-
yu
;
totle
=
totle
+(
56
-
yu
)
;
count
.
set
(
totle
+
s
);
count
.
set
(
totle
);
}
}
}
}
if
(
i
==
workHandoverDevices
.
size
()-
1
){
if
(
i
==
workHandoverDevices
.
size
()-
1
){
...
...
dev-loss/src/main/java/com/tykj/dev/device/loss/service/impl/LossBillServiceImpl.java
浏览文件 @
dc28a537
...
@@ -169,12 +169,12 @@ public class LossBillServiceImpl implements LossBillService {
...
@@ -169,12 +169,12 @@ public class LossBillServiceImpl implements LossBillService {
deviceLibraryDao
.
upDateLeftStatus
(
DeviceLifeStatus
.
IN_LIBRARY
.
id
,
StringUtils
.
stringToList
(
deviceLoss
.
getDevIds
()));
deviceLibraryDao
.
upDateLeftStatus
(
DeviceLifeStatus
.
IN_LIBRARY
.
id
,
StringUtils
.
stringToList
(
deviceLoss
.
getDevIds
()));
addMessage
(
new
MessageBto
(
taskBto
.
getId
(),
taskBto
.
getBusinessType
(),
"装备找回业务审核成功"
,
gainThisUser
(
user
.
getUserId
(),
user
.
getUnitsId
())));
addMessage
(
new
MessageBto
(
taskBto
.
getId
(),
taskBto
.
getBusinessType
(),
"装备找回业务审核成功"
,
gainThisUser
(
user
.
getUserId
(),
user
.
getUnitsId
())));
}
else
{
}
else
{
addMessage
(
new
MessageBto
(
taskBto
.
getId
(),
taskBto
.
getBusinessType
(),
"装备找回业务审核不通过"
,
gainThisUser
(
user
.
getUserId
(),
user
.
getUnitsId
())));
User
user1
=
userService
.
findByUser
(
taskBto
.
getCreateUserId
());
addMessage
(
new
MessageBto
(
taskBto
.
getId
(),
taskBto
.
getBusinessType
(),
"装备找回业务审核不通过"
,
findUnitId
(
user1
.
getUnitsId
())));
deviceLoss
.
setBackStatus
(
3
);
deviceLoss
.
setBackStatus
(
3
);
}
}
}
else
{
}
else
{
TaskDisposeUtil
.
isNotSubmit
(
taskBto
.
getBillStatus
(),
StatusEnum
.
RETRIEVE1400
);
TaskDisposeUtil
.
isNotSubmit
(
taskBto
.
getBillStatus
(),
StatusEnum
.
RETRIEVE1400
);
Units
parentUnits
=
unitsService
.
findUnitAreaId
(
area
.
getFatherId
());
Units
parentUnits
=
unitsService
.
findUnitAreaId
(
area
.
getFatherId
());
deviceLoss
.
setCityUnitName
(
units
.
getName
());
deviceLoss
.
setCityUnitName
(
units
.
getName
());
deviceLoss
.
setCityDes
(
retrieveAuditvo
.
getDes
());
deviceLoss
.
setCityDes
(
retrieveAuditvo
.
getDes
());
...
@@ -186,7 +186,8 @@ public class LossBillServiceImpl implements LossBillService {
...
@@ -186,7 +186,8 @@ public class LossBillServiceImpl implements LossBillService {
}
else
{
}
else
{
taskService
.
moveToEnd
(
taskBto
);
taskService
.
moveToEnd
(
taskBto
);
deviceLoss
.
setBackStatus
(
3
);
deviceLoss
.
setBackStatus
(
3
);
addMessage
(
new
MessageBto
(
taskBto
.
getId
(),
taskBto
.
getBusinessType
(),
"装备找回业务审核不通过"
,
gainThisUser
(
user
.
getUserId
(),
user
.
getUnitsId
())));
User
user1
=
userService
.
findByUser
(
taskBto
.
getCreateUserId
());
addMessage
(
new
MessageBto
(
taskBto
.
getId
(),
taskBto
.
getBusinessType
(),
"装备找回业务审核不通过"
,
findUnitId
(
user1
.
getUnitsId
())));
}
}
}
}
...
@@ -256,7 +257,7 @@ public class LossBillServiceImpl implements LossBillService {
...
@@ -256,7 +257,7 @@ public class LossBillServiceImpl implements LossBillService {
* @return
* @return
*/
*/
private
List
<
Integer
>
gainThisUser
(
Integer
userId
,
Integer
unitId
){
private
List
<
Integer
>
gainThisUser
(
Integer
userId
,
Integer
unitId
){
return
userService
.
findAllByUnite
(
unitId
).
stream
().
filter
(
user
->
user
.
getUnitsId
()!=
userId
).
map
(
User:
:
getUserId
).
collect
(
Collectors
.
toList
());
return
userService
.
findAllByUnite
(
unitId
).
stream
().
filter
(
user
->
!
user
.
getUserId
().
equals
(
userId
)
).
map
(
User:
:
getUserId
).
collect
(
Collectors
.
toList
());
}
}
/**
/**
...
...
dev-policydocument/pom.xml
0 → 100644
浏览文件 @
dc28a537
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<artifactId>
equip
</artifactId>
<groupId>
com.tykj
</groupId>
<version>
1.0-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
dev-policydocument
</artifactId>
<dependencies>
<dependency>
<groupId>
com.tykj.dev
</groupId>
<artifactId>
misc
</artifactId>
</dependency>
<dependency>
<groupId>
com.tykj.dev
</groupId>
<artifactId>
config
</artifactId>
</dependency>
<dependency>
<groupId>
com.tykj
</groupId>
<artifactId>
dev-file
</artifactId>
</dependency>
</dependencies>
</project>
\ No newline at end of file
dev-policydocument/src/main/java/com/tykj/dev/device/policydocument/entity/PolicyDocument.java
0 → 100644
浏览文件 @
dc28a537
package
com
.
tykj
.
dev
.
device
.
policydocument
.
entity
;
import
com.tykj.dev.device.file.entity.FileRet
;
import
com.tykj.dev.misc.base.BaseEntity
;
import
io.swagger.annotations.ApiModel
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
org.springframework.data.jpa.domain.support.AuditingEntityListener
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.EntityListeners
;
import
javax.persistence.Transient
;
import
java.util.List
;
/**
* @author zjm
* @version 1.0.0
* @ClassName PolicyDocument.java
* @Description 政策文件信息
* @createTime 2021年05月13日 10:59:00
*/
@Data
@Entity
@NoArgsConstructor
@AllArgsConstructor
@EntityListeners
(
AuditingEntityListener
.
class
)
@ApiModel
(
"政策文件信息"
)
public
class
PolicyDocument
extends
BaseEntity
{
private
String
name
;
@Column
(
name
=
"file_string"
,
columnDefinition
=
"TEXT"
)
private
String
fileString
;
@Transient
private
List
<
FileRet
>
fileRetList
;
}
dev-policydocument/src/main/java/com/tykj/dev/device/policydocument/package-info.java
0 → 100644
浏览文件 @
dc28a537
package
com
.
tykj
.
dev
.
device
.
policydocument
;
\ No newline at end of file
dev-policydocument/src/main/java/package-info.java
0 → 100644
浏览文件 @
dc28a537
dev-scrap/src/main/java/com/tykj/dev/device/scrap/service/impl/ScrapBusinessServiceImpl.java
浏览文件 @
dc28a537
...
@@ -35,10 +35,7 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -35,10 +35,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.util.ArrayList
;
import
java.util.*
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.Optional
;
import
java.util.concurrent.CompletableFuture
;
import
java.util.concurrent.CompletableFuture
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
...
@@ -82,7 +79,7 @@ public class ScrapBusinessServiceImpl implements ScrapBusinessService {
...
@@ -82,7 +79,7 @@ public class ScrapBusinessServiceImpl implements ScrapBusinessService {
public
TaskBto
saveDeviceScrapDraft
(
Integer
userId
,
ScrapOrderOutData
scrapOrderOutData
)
{
public
TaskBto
saveDeviceScrapDraft
(
Integer
userId
,
ScrapOrderOutData
scrapOrderOutData
)
{
User
user
=
userService
.
findByUser
(
userId
);
User
user
=
userService
.
findByUser
(
userId
);
Units
units
=
unitsService
.
findById
(
user
.
getUnitsId
());
Units
units
=
unitsService
.
findById
(
user
.
getUnitsId
());
Scrap
scrap
=
scrapOrderOutData
.
toScrap
()
;
Scrap
scrap
;
List
<
ScriptSaveVo
>
scriptSaveVos
=
scrapOrderOutData
.
getScriptSaveVos
();
List
<
ScriptSaveVo
>
scriptSaveVos
=
scrapOrderOutData
.
getScriptSaveVos
();
List
<
String
>
seqNumbers
=
new
ArrayList
<>();
List
<
String
>
seqNumbers
=
new
ArrayList
<>();
TaskBto
taskBto
;
TaskBto
taskBto
;
...
@@ -93,9 +90,8 @@ public class ScrapBusinessServiceImpl implements ScrapBusinessService {
...
@@ -93,9 +90,8 @@ public class ScrapBusinessServiceImpl implements ScrapBusinessService {
}
}
}
}
);
);
scrap
.
setDeviceIds
(
StringUtils
.
ListToString
(
scrapOrderOutData
.
getDevIds
()));
scrap
.
setOutboundFile
(
FilesUtil
.
stringFileToList
(
scrapOrderOutData
.
getOutboundFileList
()));
if
(
scrapOrderOutData
.
getTaskId
()==
null
)
{
if
(
scrapOrderOutData
.
getTaskId
()==
null
)
{
scrap
=
scrapOrderOutData
.
toScrap
();
if
(
scrapOrderOutData
.
getApplyId
()
!=
null
){
if
(
scrapOrderOutData
.
getApplyId
()
!=
null
){
Optional
<
Scrap
>
scrap1
=
scrapService
.
findApplyId
(
scrapOrderOutData
.
getApplyId
());
Optional
<
Scrap
>
scrap1
=
scrapService
.
findApplyId
(
scrapOrderOutData
.
getApplyId
());
if
(
scrap1
.
isPresent
())
{
if
(
scrap1
.
isPresent
())
{
...
@@ -108,12 +104,15 @@ public class ScrapBusinessServiceImpl implements ScrapBusinessService {
...
@@ -108,12 +104,15 @@ public class ScrapBusinessServiceImpl implements ScrapBusinessService {
scrap
.
setScrapStatus
(
taskBto
.
getBillStatus
());
scrap
.
setScrapStatus
(
taskBto
.
getBillStatus
());
}
else
{
}
else
{
taskBto
=
taskService
.
get
(
scrapOrderOutData
.
getTaskId
());
taskBto
=
taskService
.
get
(
scrapOrderOutData
.
getTaskId
());
Scrap
scrap1
=
scrapService
.
findScrap
(
taskBto
.
getBillId
());
scrap
=
scrapService
.
findScrap
(
taskBto
.
getBillId
());
scrap
.
setId
(
scrap1
.
getId
());
scrap
.
setScrapStatus
(
taskBto
.
getBillStatus
());
scrap
.
setScrapStatus
(
taskBto
.
getBillStatus
());
scrap
.
setNum
(
scrap1
.
getNum
());
scrap
.
setSenderUserB
(
scrapOrderOutData
.
getSenderUserB
());
scrap
.
setSendUserbId
(
scrapOrderOutData
.
getSendUserbId
());
}
}
scrap
.
setDeviceIds
(
StringUtils
.
ListToString
(
scrapOrderOutData
.
getDevIds
()));
scrap
.
setOutboundFile
(
FilesUtil
.
stringFileToList
(
scrapOrderOutData
.
getOutboundFileList
()));
scrap
.
setOutboundFile
(
FilesUtil
.
stringFileToList
(
scrapOrderOutData
.
getOutboundFileList
()));
scrap
.
setOutboundFile
(
FilesUtil
.
stringFileToList
(
scrapOrderOutData
.
getOutboundFileList
()));
scrap
.
setApplyNumber
(
scrapOrderOutData
.
getApplyNumber
());
scrap
.
setApplyNumber
(
scrapOrderOutData
.
getApplyNumber
());
scrap
.
setReplayNumber
(
scrapOrderOutData
.
getReplayNumber
());
scrap
.
setReplayNumber
(
scrapOrderOutData
.
getReplayNumber
());
...
@@ -223,7 +222,7 @@ public class ScrapBusinessServiceImpl implements ScrapBusinessService {
...
@@ -223,7 +222,7 @@ public class ScrapBusinessServiceImpl implements ScrapBusinessService {
}
}
taskBto
=
taskService
.
moveToEnd
(
taskBto
);
taskBto
=
taskService
.
moveToEnd
(
taskBto
);
scrap
.
setScrapStatus
(
taskBto
.
getBillStatus
());
scrap
.
setScrapStatus
(
taskBto
.
getBillStatus
());
scrap
.
setReceiveTime
(
new
Date
());
deviceLibraryDao
.
upDateSeqNumbersLeftStatusAndUnitNameAndLockStatus
(
DeviceLifeStatus
.
SCRAP_I
.
id
,
scrap
.
getReceiveUnit
(),
0
,
seqNumbers
);
deviceLibraryDao
.
upDateSeqNumbersLeftStatusAndUnitNameAndLockStatus
(
DeviceLifeStatus
.
SCRAP_I
.
id
,
scrap
.
getReceiveUnit
(),
0
,
seqNumbers
);
scrapService
.
saveScrap
(
scrap
);
scrapService
.
saveScrap
(
scrap
);
devLogAdd
(
seqNumbers
,
"报废任务完成,状态转化为已报废"
,
user
.
getUserId
());
devLogAdd
(
seqNumbers
,
"报废任务完成,状态转化为已报废"
,
user
.
getUserId
());
...
@@ -355,7 +354,7 @@ public class ScrapBusinessServiceImpl implements ScrapBusinessService {
...
@@ -355,7 +354,7 @@ public class ScrapBusinessServiceImpl implements ScrapBusinessService {
* @return
* @return
*/
*/
private
List
<
Integer
>
gainThisUser
(
Integer
userId
,
Integer
unitId
){
private
List
<
Integer
>
gainThisUser
(
Integer
userId
,
Integer
unitId
){
return
userService
.
findAllByUnite
(
unitId
).
stream
().
filter
(
user
->
user
.
getU
nits
Id
()!=
userId
).
map
(
User:
:
getUserId
).
collect
(
Collectors
.
toList
());
return
userService
.
findAllByUnite
(
unitId
).
stream
().
filter
(
user
->
user
.
getU
ser
Id
()!=
userId
).
map
(
User:
:
getUserId
).
collect
(
Collectors
.
toList
());
}
}
/**
/**
...
...
dev-sendback/src/main/java/com/tykj/dev/device/sendback/entity/domain/DeviceRepel.java
浏览文件 @
dc28a537
...
@@ -24,7 +24,6 @@ import java.util.List;
...
@@ -24,7 +24,6 @@ import java.util.List;
@Entity
@Entity
@EntityListeners
(
AuditingEntityListener
.
class
)
@EntityListeners
(
AuditingEntityListener
.
class
)
@ApiModel
(
"清退账单"
)
@ApiModel
(
"清退账单"
)
@SQLDelete
(
sql
=
"update device_check_bill set delete_tag = 1 where id = ?"
)
public
class
DeviceRepel
extends
BaseEntity
{
public
class
DeviceRepel
extends
BaseEntity
{
/**
/**
* 数据id
* 数据id
...
...
dev-sendback/src/main/java/com/tykj/dev/device/sendback/service/impl/AgainStorageBillServiceImpl.java
浏览文件 @
dc28a537
...
@@ -125,7 +125,7 @@ public class AgainStorageBillServiceImpl implements AgainStorageBillService {
...
@@ -125,7 +125,7 @@ public class AgainStorageBillServiceImpl implements AgainStorageBillService {
}
}
private
List
<
Integer
>
gainThisUser
(
Integer
userId
,
Integer
unitId
){
private
List
<
Integer
>
gainThisUser
(
Integer
userId
,
Integer
unitId
){
return
userService
.
findAllByUnite
(
unitId
).
stream
().
filter
(
user
->
user
.
getUnitsId
()!=
userId
).
map
(
User:
:
getUserId
).
collect
(
Collectors
.
toList
());
return
userService
.
findAllByUnite
(
unitId
).
stream
().
filter
(
user
->
!
user
.
getUserId
().
equals
(
userId
)
).
map
(
User:
:
getUserId
).
collect
(
Collectors
.
toList
());
}
}
/**
/**
* 异步添加装备日志
* 异步添加装备日志
...
...
dev-sendback/src/main/java/com/tykj/dev/device/sendback/service/impl/RepelBusinessServiceImpl.java
浏览文件 @
dc28a537
...
@@ -150,7 +150,6 @@ public class RepelBusinessServiceImpl implements RepelBusinessService {
...
@@ -150,7 +150,6 @@ public class RepelBusinessServiceImpl implements RepelBusinessService {
}
}
}
}
);
);
List
<
SupervisorVo
>
supervisorVoList
=
new
ArrayList
<>();
//市区关系信息
//市区关系信息
Map
<
Integer
,
List
<
SupervisorVo
>>
supervisorMap
=
new
HashMap
<>();
Map
<
Integer
,
List
<
SupervisorVo
>>
supervisorMap
=
new
HashMap
<>();
//省本级
//省本级
...
@@ -159,14 +158,15 @@ public class RepelBusinessServiceImpl implements RepelBusinessService {
...
@@ -159,14 +158,15 @@ public class RepelBusinessServiceImpl implements RepelBusinessService {
unitNameMap
.
forEach
((
k
,
v
)->{
unitNameMap
.
forEach
((
k
,
v
)->{
Units
units1
=
unitsService
.
findbyName
(
k
);
Units
units1
=
unitsService
.
findbyName
(
k
);
//区
//区
if
(
units1
.
getLevel
()
==
3
)
{
List
<
SupervisorVo
>
supervisorVoList
=
new
ArrayList
<>();
if
(
units1
.
getLevel
()
==
3
){
Area
area1
=
areaService
.
findByid
(
units1
.
getAreaId
());
Area
area1
=
areaService
.
findByid
(
units1
.
getAreaId
());
Units
father
=
unitsService
.
findUnitAreaId
(
area1
.
getFatherId
());
Units
father
=
unitsService
.
findUnitAreaId
(
area1
.
getFatherId
());
if
(
supervisorMap
.
containsKey
(
father
.
getUnitId
()))
{
if
(
supervisorMap
.
containsKey
(
father
.
getUnitId
()))
{
List
<
SupervisorVo
>
supervisorVoList1
=
supervisorMap
.
get
(
father
.
getUnitId
());
List
<
SupervisorVo
>
supervisorVoList1
=
supervisorMap
.
get
(
father
.
getUnitId
());
supervisorVoList1
.
add
(
new
SupervisorVo
(
units1
.
getName
(),
units1
.
getUnitId
()));
supervisorVoList1
.
add
(
new
SupervisorVo
(
units1
.
getName
(),
units1
.
getUnitId
()));
supervisorMap
.
put
(
father
.
getUnitId
(),
supervisorVoList1
);
supervisorMap
.
put
(
father
.
getUnitId
(),
supervisorVoList1
);
}
else
{
}
else
{
supervisorVoList
.
add
(
new
SupervisorVo
(
units1
.
getName
(),
units1
.
getUnitId
()));
supervisorVoList
.
add
(
new
SupervisorVo
(
units1
.
getName
(),
units1
.
getUnitId
()));
supervisorMap
.
put
(
father
.
getUnitId
(),
supervisorVoList
);
supervisorMap
.
put
(
father
.
getUnitId
(),
supervisorVoList
);
...
@@ -471,11 +471,15 @@ public class RepelBusinessServiceImpl implements RepelBusinessService {
...
@@ -471,11 +471,15 @@ public class RepelBusinessServiceImpl implements RepelBusinessService {
deviceLibraryDao
.
upDateLockStatus
(
1
,
resolveConfirm
.
getDevIds
());
deviceLibraryDao
.
upDateLockStatus
(
1
,
resolveConfirm
.
getDevIds
());
}
}
deviceRepelDetail
.
setDeviceIds
(
StringUtils
.
ListToString
(
resolveConfirm
.
getDevIds
()));
deviceRepelDetail
.
setDeviceIds
(
StringUtils
.
ListToString
(
resolveConfirm
.
getDevIds
()));
deviceRepelDetail
.
setSubmitDescription
(
resolveConfirm
.
getDes
());
if
(
resolveConfirm
.
getDes
()!=
null
&&
resolveConfirm
.
getDes
().
equals
(
""
))
{
deviceRepelDetail
.
setSubmitDescription
(
resolveConfirm
.
getDes
());
}
deviceRepelDetailService
.
saveDeviceRepelDetail
(
deviceRepelDetail
);
deviceRepelDetailService
.
saveDeviceRepelDetail
(
deviceRepelDetail
);
log
.
info
(
"提交装备接口结束{}"
,
System
.
currentTimeMillis
()-
stime
);
log
.
info
(
"提交装备接口结束{}"
,
System
.
currentTimeMillis
()-
stime
);
}
}
@Override
@Override
public
void
resolveAudit
(
Integer
taskId
,
RepelAuditResult
repelAuditResult
)
{
public
void
resolveAudit
(
Integer
taskId
,
RepelAuditResult
repelAuditResult
)
{
...
@@ -1174,7 +1178,7 @@ public class RepelBusinessServiceImpl implements RepelBusinessService {
...
@@ -1174,7 +1178,7 @@ public class RepelBusinessServiceImpl implements RepelBusinessService {
* @return
* @return
*/
*/
private
List
<
Integer
>
gainThisUser
(
Integer
userId
,
Integer
unitId
){
private
List
<
Integer
>
gainThisUser
(
Integer
userId
,
Integer
unitId
){
return
userService
.
findAllByUnite
(
unitId
).
stream
().
filter
(
user
->
user
.
getUnitsId
()!=
userId
).
map
(
User:
:
getUserId
).
collect
(
Collectors
.
toList
());
return
userService
.
findAllByUnite
(
unitId
).
stream
().
filter
(
user
->
!
user
.
getUserId
().
equals
(
userId
)
).
map
(
User:
:
getUserId
).
collect
(
Collectors
.
toList
());
}
}
/**
/**
...
...
dev-train/src/main/java/com/tykj/dev/device/train/controller/TrainController.java
浏览文件 @
dc28a537
...
@@ -98,7 +98,7 @@ public class TrainController {
...
@@ -98,7 +98,7 @@ public class TrainController {
return
ResponseEntity
.
ok
(
unitsService
.
findLeftNavigationNotDirectlyUnit
(
securityUser
));
return
ResponseEntity
.
ok
(
unitsService
.
findLeftNavigationNotDirectlyUnit
(
securityUser
));
}
}
@
Pos
tMapping
(
"/export/trainUser/{trainId}"
)
@
Ge
tMapping
(
"/export/trainUser/{trainId}"
)
@ApiOperation
(
value
=
"导出培训人员信息"
,
notes
=
"导出培训人员信息"
)
@ApiOperation
(
value
=
"导出培训人员信息"
,
notes
=
"导出培训人员信息"
)
public
ResponseEntity
selectTrainUnitsOrganization
(
@PathVariable
Integer
trainId
,
HttpServletRequest
request
,
HttpServletResponse
response
){
public
ResponseEntity
selectTrainUnitsOrganization
(
@PathVariable
Integer
trainId
,
HttpServletRequest
request
,
HttpServletResponse
response
){
TrainTheme
trainTheme
=
trainThemeService
.
findById
(
trainId
);
TrainTheme
trainTheme
=
trainThemeService
.
findById
(
trainId
);
...
...
dev-train/src/main/java/com/tykj/dev/device/train/controller/TrainJobController.java
浏览文件 @
dc28a537
...
@@ -42,6 +42,7 @@ import org.modelmapper.ModelMapper;
...
@@ -42,6 +42,7 @@ import org.modelmapper.ModelMapper;
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.security.core.annotation.AuthenticationPrincipal
;
import
org.springframework.security.core.annotation.AuthenticationPrincipal
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
springfox.documentation.annotations.ApiIgnore
;
import
springfox.documentation.annotations.ApiIgnore
;
...
@@ -100,6 +101,7 @@ public class TrainJobController {
...
@@ -100,6 +101,7 @@ public class TrainJobController {
*/
*/
@ApiOperation
(
value
=
"1.培训业务新建接口"
,
notes
=
"有两类人员,一必须培训的人员,这里状态为报名确认,只需要确认就ok,2。不是必须报名的人员 状态 待报名,需要让用户选择报名 或不报名"
)
@ApiOperation
(
value
=
"1.培训业务新建接口"
,
notes
=
"有两类人员,一必须培训的人员,这里状态为报名确认,只需要确认就ok,2。不是必须报名的人员 状态 待报名,需要让用户选择报名 或不报名"
)
@PostMapping
(
"/initiate"
)
@PostMapping
(
"/initiate"
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
ResponseEntity
newTrain
(
@ApiIgnore
@AuthenticationPrincipal
SecurityUser
securityUser
,
@RequestBody
TrainThemeAddVo
trainThemeAddVo
)
{
public
ResponseEntity
newTrain
(
@ApiIgnore
@AuthenticationPrincipal
SecurityUser
securityUser
,
@RequestBody
TrainThemeAddVo
trainThemeAddVo
)
{
TrainTheme
trainThemeNoDb
=
trainThemeAddVo
.
toDo
();
TrainTheme
trainThemeNoDb
=
trainThemeAddVo
.
toDo
();
trainThemeNoDb
.
setTrainDataFiles
(
FilesUtil
.
stringFileToList
(
trainThemeAddVo
.
getTrainDataFileList
()));
trainThemeNoDb
.
setTrainDataFiles
(
FilesUtil
.
stringFileToList
(
trainThemeAddVo
.
getTrainDataFileList
()));
...
@@ -181,6 +183,7 @@ public class TrainJobController {
...
@@ -181,6 +183,7 @@ public class TrainJobController {
* @param signUpReturn
* @param signUpReturn
* @return
* @return
*/
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
@ApiOperation
(
value
=
"2。报名和确认接口"
,
notes
=
"若是确认请填写confirm为1,若报名returns=0、若不报名returns=1"
)
@ApiOperation
(
value
=
"2。报名和确认接口"
,
notes
=
"若是确认请填写confirm为1,若报名returns=0、若不报名returns=1"
)
@PostMapping
(
"/signUp"
)
@PostMapping
(
"/signUp"
)
public
ResponseEntity
signUp
(
@ApiIgnore
@AuthenticationPrincipal
SecurityUser
securityUser
,
@RequestBody
signUpReturn
signUpReturn
)
{
public
ResponseEntity
signUp
(
@ApiIgnore
@AuthenticationPrincipal
SecurityUser
securityUser
,
@RequestBody
signUpReturn
signUpReturn
)
{
...
@@ -232,6 +235,7 @@ public class TrainJobController {
...
@@ -232,6 +235,7 @@ public class TrainJobController {
* 管理者拒绝某个单位的报名
* 管理者拒绝某个单位的报名
* @return
* @return
*/
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
@ApiOperation
(
value
=
"拒绝某个单位的报名"
,
notes
=
"拒绝某个单位的报名"
)
@ApiOperation
(
value
=
"拒绝某个单位的报名"
,
notes
=
"拒绝某个单位的报名"
)
@GetMapping
(
"/refuse/{taskId}"
)
@GetMapping
(
"/refuse/{taskId}"
)
public
ResponseEntity
signUp
(
@ApiIgnore
@AuthenticationPrincipal
SecurityUser
securityUser
,
@PathVariable
Integer
taskId
)
{
public
ResponseEntity
signUp
(
@ApiIgnore
@AuthenticationPrincipal
SecurityUser
securityUser
,
@PathVariable
Integer
taskId
)
{
...
@@ -254,6 +258,7 @@ public class TrainJobController {
...
@@ -254,6 +258,7 @@ public class TrainJobController {
* @param trainId
* @param trainId
* @return
* @return
*/
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
@GetMapping
(
"/signUpEnd/{trainId}"
)
@GetMapping
(
"/signUpEnd/{trainId}"
)
public
ResponseEntity
signUpEnd
(
@PathVariable
Integer
trainId
)
{
public
ResponseEntity
signUpEnd
(
@PathVariable
Integer
trainId
)
{
TrainTheme
trainTheme
=
trainThemeService
.
findById
(
trainId
);
TrainTheme
trainTheme
=
trainThemeService
.
findById
(
trainId
);
...
@@ -274,6 +279,7 @@ public class TrainJobController {
...
@@ -274,6 +279,7 @@ public class TrainJobController {
//培训中
//培训中
@GetMapping
(
"/inTraining/{trainId}"
)
@GetMapping
(
"/inTraining/{trainId}"
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
ResponseEntity
inTraining
(
@PathVariable
Integer
trainId
)
{
public
ResponseEntity
inTraining
(
@PathVariable
Integer
trainId
)
{
TrainTheme
trainTheme
=
trainThemeService
.
findById
(
trainId
);
TrainTheme
trainTheme
=
trainThemeService
.
findById
(
trainId
);
trainTaskService
.
selectBillidAndBillType
(
trainId
,
BusinessEnum
.
TRAIN
.
id
,
StatusEnum
.
TRAIN1010
.
id
).
forEach
(
trainTaskService
.
selectBillidAndBillType
(
trainId
,
BusinessEnum
.
TRAIN
.
id
,
StatusEnum
.
TRAIN1010
.
id
).
forEach
(
...
@@ -290,6 +296,7 @@ public class TrainJobController {
...
@@ -290,6 +296,7 @@ public class TrainJobController {
//市培训待审核
//市培训待审核
@ApiOperation
(
value
=
"3 录入成绩后调用的接口"
,
notes
=
"状态改为'市培训申请发证"
)
@ApiOperation
(
value
=
"3 录入成绩后调用的接口"
,
notes
=
"状态改为'市培训申请发证"
)
@PostMapping
(
"/gradesGrade"
)
@PostMapping
(
"/gradesGrade"
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
ResponseEntity
cityAudit
(
@ApiIgnore
@AuthenticationPrincipal
SecurityUser
securityUser
,
@RequestBody
GradeEntryVo
gradeEntryVo
)
{
public
ResponseEntity
cityAudit
(
@ApiIgnore
@AuthenticationPrincipal
SecurityUser
securityUser
,
@RequestBody
GradeEntryVo
gradeEntryVo
)
{
TrainTheme
trainTheme
=
trainThemeService
.
findById
(
gradeEntryVo
.
getTrainThemeId
());
TrainTheme
trainTheme
=
trainThemeService
.
findById
(
gradeEntryVo
.
getTrainThemeId
());
trainTheme
.
setTrainPapersFiles
(
FilesUtil
.
stringFileToList
(
gradeEntryVo
.
getTrainPapersFileList
()));
trainTheme
.
setTrainPapersFiles
(
FilesUtil
.
stringFileToList
(
gradeEntryVo
.
getTrainPapersFileList
()));
...
@@ -321,6 +328,7 @@ public class TrainJobController {
...
@@ -321,6 +328,7 @@ public class TrainJobController {
@ApiOperation
(
value
=
"省培训发证审核以及市培训申请发证审核调用接口"
,
notes
=
"同意培训完成"
)
@ApiOperation
(
value
=
"省培训发证审核以及市培训申请发证审核调用接口"
,
notes
=
"同意培训完成"
)
@PostMapping
(
"/auditResult"
)
@PostMapping
(
"/auditResult"
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
ResponseEntity
gradeeEntry
(
@ApiIgnore
@AuthenticationPrincipal
SecurityUser
securityUser
,
@RequestBody
GradeEntryVo
gradeEntryVo
)
{
public
ResponseEntity
gradeeEntry
(
@ApiIgnore
@AuthenticationPrincipal
SecurityUser
securityUser
,
@RequestBody
GradeEntryVo
gradeEntryVo
)
{
//向专管员证书表中添加数据
//向专管员证书表中添加数据
if
(
gradeEntryVo
.
getIsCertificate
()==
0
)
{
if
(
gradeEntryVo
.
getIsCertificate
()==
0
)
{
...
@@ -377,6 +385,7 @@ public class TrainJobController {
...
@@ -377,6 +385,7 @@ public class TrainJobController {
* @param signUpReturn
* @param signUpReturn
* @return
* @return
*/
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
@ApiOperation
(
value
=
"end。成绩查看确认接口"
)
@ApiOperation
(
value
=
"end。成绩查看确认接口"
)
@PostMapping
(
"/resultsConfirm"
)
@PostMapping
(
"/resultsConfirm"
)
public
ResponseEntity
resultsConfirm
(
@ApiIgnore
@AuthenticationPrincipal
SecurityUser
securityUser
,
@RequestBody
signUpReturn
signUpReturn
)
{
public
ResponseEntity
resultsConfirm
(
@ApiIgnore
@AuthenticationPrincipal
SecurityUser
securityUser
,
@RequestBody
signUpReturn
signUpReturn
)
{
...
...
dev-train/src/main/java/com/tykj/dev/device/train/service/impl/TrainThemeServiceImpl.java
浏览文件 @
dc28a537
...
@@ -161,12 +161,12 @@ public class TrainThemeServiceImpl implements TrainThemeService {
...
@@ -161,12 +161,12 @@ public class TrainThemeServiceImpl implements TrainThemeService {
taskBtoList
.
forEach
(
taskBtoList
.
forEach
(
taskBto1
->
{
taskBto1
->
{
TrainUnit
trainUnit
=
trainUnitMap
.
get
(
taskBto1
.
getOwnUnit
());
TrainUnit
trainUnit
=
trainUnitMap
.
get
(
taskBto1
.
getOwnUnit
());
if
(
taskBto1
.
getBillStatus
().
equals
(
StatusEnum
.
TRAIN1002
.
id
)){
List
<
TrainUser
>
trainUsersNotSignUp
=
trainUsers
.
stream
().
filter
(
trainUser
->
trainUser
.
getUnitsId
().
equals
(
taskBto1
.
getOwnUnit
())
&&
trainUser
.
getIsSignUp
()
==
2
).
collect
(
Collectors
.
toList
());
if
(
taskBto1
.
getBillStatus
().
equals
(
StatusEnum
.
TRAIN1002
.
id
)){
flag
.
set
(
false
);
flag
.
set
(
false
);
notSignUpTrainUserToUnitVo
.
add
(
new
TrainUserToUnitVo
(
taskBto1
.
getOwnUnit
(),
unitsCache
.
findById
(
taskBto1
.
getOwnUnit
()).
getName
(),
trainUsers
,
taskBto1
.
getId
(),
trainUnit
.
getSubmitStatus
()));
notSignUpTrainUserToUnitVo
.
add
(
new
TrainUserToUnitVo
(
taskBto1
.
getOwnUnit
(),
unitsCache
.
findById
(
taskBto1
.
getOwnUnit
()).
getName
(),
trainUsers
NotSignUp
,
taskBto1
.
getId
(),
trainUnit
.
getSubmitStatus
()));
}
else
{
}
else
{
List
<
TrainUser
>
trainUsersSignUp
=
trainUsers
.
stream
().
filter
(
trainUser
->
trainUser
.
getUnitsId
().
equals
(
taskBto1
.
getOwnUnit
())
&&
trainUser
.
getIsSignUp
()
==
1
).
collect
(
Collectors
.
toList
());
List
<
TrainUser
>
trainUsersSignUp
=
trainUsers
.
stream
().
filter
(
trainUser
->
trainUser
.
getUnitsId
().
equals
(
taskBto1
.
getOwnUnit
())
&&
trainUser
.
getIsSignUp
()
==
1
).
collect
(
Collectors
.
toList
());
List
<
TrainUser
>
trainUsersNotSignUp
=
trainUsers
.
stream
().
filter
(
trainUser
->
trainUser
.
getUnitsId
().
equals
(
taskBto1
.
getOwnUnit
())
&&
trainUser
.
getIsSignUp
()
==
2
).
collect
(
Collectors
.
toList
());
if
(
trainUsersSignUp
.
size
()
!=
0
)
{
if
(
trainUsersSignUp
.
size
()
!=
0
)
{
signUpTrainUserToUnitVo
.
add
(
new
TrainUserToUnitVo
(
taskBto1
.
getOwnUnit
(),
unitsCache
.
findById
(
taskBto1
.
getOwnUnit
()).
getName
(),
trainUsersSignUp
,
taskBto1
.
getId
(),
trainUnit
.
getSubmitStatus
()));
signUpTrainUserToUnitVo
.
add
(
new
TrainUserToUnitVo
(
taskBto1
.
getOwnUnit
(),
unitsCache
.
findById
(
taskBto1
.
getOwnUnit
()).
getName
(),
trainUsersSignUp
,
taskBto1
.
getId
(),
trainUnit
.
getSubmitStatus
()));
}
}
...
...
dev-train/src/main/java/com/tykj/dev/device/train/service/impl/WorkHandoverServiceImpl.java
浏览文件 @
dc28a537
...
@@ -191,7 +191,7 @@ public class WorkHandoverServiceImpl implements WorkHandoverService {
...
@@ -191,7 +191,7 @@ public class WorkHandoverServiceImpl implements WorkHandoverService {
* @return
* @return
*/
*/
private
List
<
Integer
>
gainThisUser
(
Integer
userId
,
Integer
unitId
){
private
List
<
Integer
>
gainThisUser
(
Integer
userId
,
Integer
unitId
){
return
userService
.
findAllByUnite
(
unitId
).
stream
().
filter
(
user
->
user
.
getUnitsId
()!=
userId
).
map
(
User:
:
getUserId
).
collect
(
Collectors
.
toList
());
return
userService
.
findAllByUnite
(
unitId
).
stream
().
filter
(
user
->
!
user
.
getUserId
().
equals
(
userId
)
).
map
(
User:
:
getUserId
).
collect
(
Collectors
.
toList
());
}
}
/**
/**
...
...
dev-union/pom.xml
浏览文件 @
dc28a537
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
<profile>
<profile>
<id>
test
</id>
<id>
test
</id>
<properties>
<properties>
<pom.package>
j
ar
</pom.package>
<pom.package>
w
ar
</pom.package>
<activatedProperties>
test
</activatedProperties>
<activatedProperties>
test
</activatedProperties>
</properties>
</properties>
</profile>
</profile>
...
@@ -132,6 +132,11 @@
...
@@ -132,6 +132,11 @@
<artifactId>
dev-finalcheck
</artifactId>
<artifactId>
dev-finalcheck
</artifactId>
</dependency>
</dependency>
<dependency>
<groupId>
com.tykj
</groupId>
<artifactId>
dev-excel
</artifactId>
</dependency>
<dependency>
<dependency>
<groupId>
com.tykj
</groupId>
<groupId>
com.tykj
</groupId>
<artifactId>
dev-taskselect
</artifactId>
<artifactId>
dev-taskselect
</artifactId>
...
...
dev-union/src/main/resources/bill.html
浏览文件 @
dc28a537
...
@@ -5,7 +5,8 @@
...
@@ -5,7 +5,8 @@
<meta
charset=
"UTF-8"
/>
<meta
charset=
"UTF-8"
/>
<title>
Document
</title>
<title>
Document
</title>
<style>
<style>
body
{
body
,
span
,
p
,
tr
,
td
{
font-size
:
15px
;
font-family
:
SimHei
;
font-family
:
SimHei
;
margin
:
0
;
margin
:
0
;
padding
:
0
;
padding
:
0
;
...
@@ -18,10 +19,11 @@
...
@@ -18,10 +19,11 @@
.bottomTxt
{
.bottomTxt
{
text-align
:
center
;
text-align
:
center
;
font-size
:
1
0
px
;
font-size
:
1
5
px
;
color
:
#
646464
;
color
:
#
000
;
height
:
10px
;
height
:
10px
;
line-height
:
10px
;
line-height
:
10px
;
margin-top
:
4px
;
}
}
.returnTablePrint
{
.returnTablePrint
{
...
@@ -83,8 +85,8 @@
...
@@ -83,8 +85,8 @@
color: #141414;
color: #141414;
} */
} */
.returnTablePrint
.title
.number
{
.returnTablePrint
.title
.number
{
font-size
:
1
0
px
;
font-size
:
1
5
px
;
color
:
#
828282
;
color
:
#
000
;
}
}
/* .returnTablePrint .other{
/* .returnTablePrint .other{
...
@@ -109,17 +111,20 @@
...
@@ -109,17 +111,20 @@
.returnTablePrint
.line1
{
.returnTablePrint
.line1
{
width
:
100%
;
width
:
100%
;
font-size
:
1
0
px
;
font-size
:
1
5
px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
border-bottom
:
1px
solid
#7f7f7f
;
border-bottom
:
1px
solid
#7f7f7f
;
color
:
#333
;
color
:
#333
;
line-height
:
20px
;
line-height
:
20px
;
height
:
2
0
px
;
height
:
2
4
px
;
}
}
.returnTablePrint
.line1
.sendTo
{
.returnTablePrint
.line1
.sendTo
{
display
:
inline-block
;
display
:
inline-block
;
width
:
49%
;
width
:
49%
;
height
:
24px
;
color
:
#000
;
line-height
:
24px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
/*padding-left: 20px;*/
/*padding-left: 20px;*/
}
}
...
@@ -127,7 +132,10 @@
...
@@ -127,7 +132,10 @@
.returnTablePrint
.line1
.sendNum
{
.returnTablePrint
.line1
.sendNum
{
display
:
inline-block
;
display
:
inline-block
;
width
:
49%
;
width
:
49%
;
font-size
:
10px
;
font-size
:
15px
;
height
:
24px
;
line-height
:
24px
;
color
:
#000
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
/*padding-left: 20px;*/
/*padding-left: 20px;*/
}
}
...
@@ -183,9 +191,9 @@
...
@@ -183,9 +191,9 @@
.returnTablePrint
.line3
.left
{
.returnTablePrint
.line3
.left
{
border-right
:
1px
solid
#7f7f7f
;
border-right
:
1px
solid
#7f7f7f
;
padding
:
5px
10px
;
padding
:
5px
10px
0
;
box-sizing
:
border-box
;
height
:
9
0
%
;
height
:
9
5
%
;
}
}
.returnTablePrint
.line3
.left
>
span
,
.returnTablePrint
.line3
.left
>
span
,
...
@@ -209,7 +217,7 @@
...
@@ -209,7 +217,7 @@
display
:
block
;
display
:
block
;
text-align
:
right
;
text-align
:
right
;
position
:
absolute
;
position
:
absolute
;
right
:
0
px
;
right
:
5
px
;
bottom
:
5px
;
bottom
:
5px
;
font-style
:
normal
;
font-style
:
normal
;
font-size
:
12px
;
font-size
:
12px
;
...
@@ -229,29 +237,34 @@
...
@@ -229,29 +237,34 @@
}
}
.returnTablePrint
.checkName
span
:nth-child
(
2
)
{
.returnTablePrint
.checkName
span
:nth-child
(
2
)
{
color
:
#
4a475d
;
color
:
#
000
;
display
:
inline-block
;
display
:
inline-block
;
}
}
.returnTablePrint
>>>
.el-table
tbody
.cell
{
.returnTablePrint
>>>
.el-table
tbody
.cell
{
color
:
#
141414
;
color
:
#
000
;
}
}
.returnTablePrint
.label
{
.returnTablePrint
.label
{
color
:
#
666
;
color
:
#
000
;
font-size
:
1
0
px
;
font-size
:
1
5
px
;
}
}
.returnTablePrint
.value
{
.returnTablePrint
.value
{
color
:
#000
;
font-size
:
15px
;
}
.returnTablePrint
.main-title
span
{
font-size
:
22px
;
color
:
#333
;
color
:
#333
;
font-
size
:
10px
;
font-
weight
:
bold
;
}
}
.returnTablePrint
.main-title
{
.returnTablePrint
.main-title
{
font-size
:
17
px
;
font-size
:
22
px
;
color
:
#333
;
color
:
#333
;
line-height
:
20px
;
line-height
:
20px
;
text-align
:
center
;
text-align
:
center
;
margin-bottom
:
4px
;
}
}
.returnTablePrint
.footer
{
.returnTablePrint
.footer
{
...
@@ -268,7 +281,7 @@
...
@@ -268,7 +281,7 @@
table
.altrowstable
{
table
.altrowstable
{
width
:
100%
;
width
:
100%
;
font-size
:
16px
;
font-size
:
16px
;
color
:
#
333
;
color
:
#
000
;
border-width
:
0px
;
border-width
:
0px
;
border-color
:
#a9c6c9
;
border-color
:
#a9c6c9
;
border-collapse
:
collapse
;
border-collapse
:
collapse
;
...
@@ -278,39 +291,37 @@
...
@@ -278,39 +291,37 @@
}
}
table
.altrowstable
th
{
table
.altrowstable
th
{
height
:
2
0
px
;
height
:
2
4
px
;
font-size
:
1
0
px
;
font-size
:
1
5
px
;
background-color
:
#
f3f3f3
;
background-color
:
#
ebebeb
;
}
}
table
.altrowstable
td
{
table
.altrowstable
td
{
height
:
18
px
;
height
:
24
px
;
font-size
:
1
0
px
;
font-size
:
1
5
px
;
word-break
:
break-all
;
word-break
:
break-all
;
word-wrap
:
break-word
;
word-wrap
:
break-word
;
/*border:1px solid #bebebe;*/
width
:
100%
;
width
:
100%
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
}
table
.altrowstable
.altrowstableTr
:nth-child
(
odd
)
{
table
.altrowstable
.altrowstableTr
:nth-child
(
odd
)
{
height
:
18px
;
height
:
18px
;
word-break
:
break-all
;
word-break
:
break-all
;
word-wrap
:
break-word
;
word-wrap
:
break-word
;
background-color
:
#f
8f8f8
;
background-color
:
#f
2f2f2
;
}
}
.leftImg
{
.leftImg
{
position
:
absolute
;
position
:
absolute
;
bottom
:
0px
;
bottom
:
0px
;
right
:
1
2
0px
;
right
:
1
5
0px
;
}
}
.rightImg
{
.rightImg
{
position
:
absolute
;
position
:
absolute
;
bottom
:
0px
;
bottom
:
0px
;
right
:
1
2
0px
;
right
:
1
5
0px
;
}
}
.oddrowcolor
{
.oddrowcolor
{
...
@@ -359,11 +370,11 @@
...
@@ -359,11 +370,11 @@
<div
class=
"listCon"
>
<div
class=
"listCon"
>
<div
class=
"line1"
>
<div
class=
"line1"
>
<span
class=
"sendTo"
>
<span
class=
"sendTo"
>
<span
style=
"text-indent:
2
5px; display: inline-block;"
>
发往:
</span>
<span
style=
"text-indent: 5px; display: inline-block;"
>
发往:
</span>
<span>
${receiveUnit}
</span>
<span>
${receiveUnit}
</span>
</span>
</span>
<span
class=
"sendNum"
>
<span
class=
"sendNum"
>
<span
style=
"text-indent:
2
5px; display: inline-block;"
>
批复文号:
</span>
<span
style=
"text-indent: 5px; display: inline-block;"
>
批复文号:
</span>
<span>
${replyNum}
</span>
<span>
${replyNum}
</span>
</span>
</span>
</div>
</div>
...
@@ -371,13 +382,13 @@
...
@@ -371,13 +382,13 @@
<table
class=
"altrowstable"
id=
"alternatecolor"
>
<table
class=
"altrowstable"
id=
"alternatecolor"
>
<tr
style=
"border-bottom: 1px solid #dedede; border-top: 1px solid #dedede;"
>
<tr
style=
"border-bottom: 1px solid #dedede; border-top: 1px solid #dedede;"
>
<!-- <th>序号</th><th>型号</th><th>形态</th><th>密级</th><th>应用领域</th><th>数量</th><th style="width: 420px;">装备序列号</th><th>备注</th> -->
<!-- <th>序号</th><th>型号</th><th>形态</th><th>密级</th><th>应用领域</th><th>数量</th><th style="width: 420px;">装备序列号</th><th>备注</th> -->
<th>
序号
</th>
<th
width=
"70px"
>
序号
</th>
<th>
型号
</th>
<th>
型号
</th>
<th>
形态
</th>
<th>
形态
</th>
<th>
密级
</th>
<th
width=
"50px"
>
密级
</th>
<th>
应用领域
</th>
<th
width=
"120px"
>
应用领域
</th>
<th>
数量
</th>
<th>
数量
</th>
<th>
装备序列号
</th>
<th
width=
"420px"
>
装备序列号
</th>
<th>
备注
</th>
<th>
备注
</th>
</tr>
</tr>
<
#
list
documentDevices
as
dev
>
<
#
list
documentDevices
as
dev
>
...
@@ -397,11 +408,11 @@
...
@@ -397,11 +408,11 @@
</div>
</div>
<div
class=
"line3"
>
<div
class=
"line3"
>
<span
class=
"left"
>
<span
class=
"left"
>
<span>
<span
style=
"padding:6px 0 12px ;"
>
<span
class=
"label"
>
发件单位:
</span>
<span
class=
"label"
>
发件单位:
</span>
<span
class=
"value"
>
${senderUnit}
</span>
<span
class=
"value"
>
${senderUnit}
</span>
</span>
</span>
<span>
<span
style=
"padding-bottom:12px ;"
>
<span
class=
"label"
><span
style=
"letter-spacing: 7px;"
>
签发
</span>
人:
</span>
<span
class=
"label"
><span
style=
"letter-spacing: 7px;"
>
签发
</span>
人:
</span>
<span
class=
"value"
>
${nameA1!}
</span>
<span
class=
"value"
>
${nameA1!}
</span>
</span>
</span>
...
@@ -410,7 +421,7 @@
...
@@ -410,7 +421,7 @@
<span
class=
"value"
>
${nameA!}
</span>
<span
class=
"value"
>
${nameA!}
</span>
</span>
</span>
<i>
<i>
<span
style=
"color: #
646464
"
>
<span
style=
"color: #
000
"
>
<span
style=
"margin-bottom: 5px;"
>
(公章)
</span>
<span
style=
"margin-bottom: 5px;"
>
(公章)
</span>
<span><span
style=
"color: #fff;"
>
1234
</span>
年
<span
<span><span
style=
"color: #fff;"
>
1234
</span>
年
<span
style=
"color: #fff;"
>
0121
</span>
月
<span
style=
"color: #fff;"
>
0121
</span>
月
<span
...
@@ -425,11 +436,11 @@
...
@@ -425,11 +436,11 @@
</span>
</span>
<span
class=
"right"
>
<span
class=
"right"
>
<div
style=
"width: 100%;"
>
<div
style=
"width: 100%;"
>
<span
style=
"width: 100%;display: inline-block;"
>
<span
style=
"width: 100%;display: inline-block;
padding:6px 0 12px ;
"
>
<span
class=
"label"
>
收件单位:
</span>
<span
class=
"label"
>
收件单位:
</span>
<span
class=
"value"
>
${receiveUnit}
</span>
<span
class=
"value"
>
${receiveUnit}
</span>
</span>
</span>
<span
style=
"width: 100%;display: inline-block;"
>
<span
style=
"width: 100%;display: inline-block;
padding-bottom:12px ;
"
>
<span
class=
"label"
><span
style=
"letter-spacing: 7px;"
>
经办
</span>
人:
</span>
<span
class=
"label"
><span
style=
"letter-spacing: 7px;"
>
经办
</span>
人:
</span>
<span
class=
"value"
>
${nameB!}
</span>
<span
class=
"value"
>
${nameB!}
</span>
</span>
</span>
...
@@ -439,8 +450,8 @@
...
@@ -439,8 +450,8 @@
</span>
</span>
</div>
</div>
<div
style=
"position: relative;left: 250px;top: 38px;"
>
<div
style=
"position: relative;left: 250px;top: 38px;"
>
<i>
<i
style=
"bottom: 30px;right: 40px;"
>
<span
style=
"color: #
646464
"
>
<span
style=
"color: #
000
"
>
<span
style=
"margin-bottom: 5px;"
>
(公章)
</span>
<span
style=
"margin-bottom: 5px;"
>
(公章)
</span>
<span><span
style=
"color: #fff;"
>
1234
</span>
年
<span
<span><span
style=
"color: #fff;"
>
1234
</span>
年
<span
style=
"color: #fff;"
>
0121
</span>
月
<span
style=
"color: #fff;"
>
0121
</span>
月
<span
...
...
dev-union/src/main/resources/bill1.html
浏览文件 @
dc28a537
...
@@ -5,12 +5,12 @@
...
@@ -5,12 +5,12 @@
<meta
charset=
"UTF-8"
/>
<meta
charset=
"UTF-8"
/>
<title>
Document
</title>
<title>
Document
</title>
<style>
<style>
body
{
body
,
span
,
p
,
tr
,
td
{
font-size
:
15px
;
font-family
:
SimHei
;
font-family
:
SimHei
;
padding
:
0
;
margin
:
0
;
margin
:
0
;
padding
:
0
;
}
}
/*
@page
{
size
:
297mm
210mm
;}
<!
--
设置
PDF
页面大小,此配置只对生成
PDF
文件有效,不会对页面显示生效
--
>*/
/*
@page
{
size
:
297mm
210mm
;}
<!
--
设置
PDF
页面大小,此配置只对生成
PDF
文件有效,不会对页面显示生效
--
>*/
@page
{
@page
{
size
:
297mm
210mm
;
size
:
297mm
210mm
;
...
@@ -24,9 +24,10 @@
...
@@ -24,9 +24,10 @@
.bottomTxt
{
.bottomTxt
{
text-align
:
center
;
text-align
:
center
;
font-size
:
10px
;
font-size
:
15px
;
color
:
#646464
;
height
:
10px
;
height
:
10px
;
color
:
#000
;
margin-top
:
4px
;
line-height
:
10px
;
line-height
:
10px
;
}
}
...
@@ -100,8 +101,8 @@
...
@@ -100,8 +101,8 @@
color: #141414;
color: #141414;
} */
} */
.returnTablePrint
.title
.number
{
.returnTablePrint
.title
.number
{
font-size
:
1
0
px
;
font-size
:
1
5
px
;
color
:
#
646464
;
color
:
#
000
;
}
}
/* .returnTablePrint .other{
/* .returnTablePrint .other{
...
@@ -130,7 +131,8 @@
...
@@ -130,7 +131,8 @@
box-sizing
:
border-box
;
box-sizing
:
border-box
;
border-bottom
:
1px
solid
#7f7f7f
;
border-bottom
:
1px
solid
#7f7f7f
;
color
:
#000
;
color
:
#000
;
line-height
:
20px
;
height
:
24px
;
line-height
:
24px
;
}
}
.returnTablePrint
.line1
.sendTo
{
.returnTablePrint
.line1
.sendTo
{
...
@@ -151,7 +153,7 @@
...
@@ -151,7 +153,7 @@
.returnTablePrint
.line1
.sendTo
span
:nth-child
(
2
),
.returnTablePrint
.line1
.sendTo
span
:nth-child
(
2
),
.returnTablePrint
.line1
.sendNum
span
:nth-child
(
2
)
{
.returnTablePrint
.line1
.sendNum
span
:nth-child
(
2
)
{
color
:
#
4a475d
;
color
:
#
000
;
display
:
inline-block
;
display
:
inline-block
;
margin-left
:
5px
;
margin-left
:
5px
;
}
}
...
@@ -236,27 +238,31 @@
...
@@ -236,27 +238,31 @@
}
}
.returnTablePrint
.checkName
span
:nth-child
(
2
)
{
.returnTablePrint
.checkName
span
:nth-child
(
2
)
{
color
:
#
4a475d
;
color
:
#
000
;
display
:
inline-block
;
display
:
inline-block
;
margin-left
:
20px
;
margin-left
:
20px
;
}
}
.returnTablePrint
>>>
.el-table
tbody
.cell
{
.returnTablePrint
>>>
.el-table
tbody
.cell
{
color
:
#
141414
;
color
:
#
000
;
}
}
.returnTablePrint
.label
{
.returnTablePrint
.label
{
color
:
#
646464
;
color
:
#
000
;
font-size
:
1
2
px
;
font-size
:
1
5
px
;
;
;
}
}
.returnTablePrint
.value
{
.returnTablePrint
.value
{
color
:
#000
;
color
:
#000
;
font-size
:
1
2
px
;
font-size
:
1
5
px
;
;
;
}
}
.returnTablePrint
.main-title
span
{
font-size
:
22px
;
color
:
#333
;
font-weight
:
bold
;
}
.returnTablePrint
.main-title
{
.returnTablePrint
.main-title
{
font-size
:
17px
;
font-size
:
17px
;
color
:
#000000
;
color
:
#000000
;
...
@@ -277,7 +283,7 @@
...
@@ -277,7 +283,7 @@
table
.altrowstable
{
table
.altrowstable
{
width
:
100%
;
width
:
100%
;
font-size
:
1
1
px
;
font-size
:
1
5
px
;
color
:
#141414
;
color
:
#141414
;
border-width
:
0px
;
border-width
:
0px
;
border-color
:
#a9c6c9
;
border-color
:
#a9c6c9
;
...
@@ -292,25 +298,22 @@
...
@@ -292,25 +298,22 @@
border-style
:
solid
;
border-style
:
solid
;
border-color
:
#a9c6c9
;
border-color
:
#a9c6c9
;
background-color
:
#dedede
;
background-color
:
#dedede
;
height
:
2
0
px
;
height
:
2
4
px
;
line-height
:
2
0
px
;
line-height
:
2
4
px
;
font-size
:
1
0
px
;
font-size
:
1
5
px
;
}
}
table
.altrowstable
td
{
table
.altrowstable
td
{
border-width
:
0px
;
border-width
:
0px
;
height
:
2
0
px
;
height
:
2
4
px
;
line-height
:
2
0
px
;
line-height
:
2
4
px
;
font-size
:
1
0
px
;
font-size
:
1
5
px
;
/*border-style: solid;*/
/*border-style: solid;*/
/*border-color: #a9c6c9;*/
/*border-color: #a9c6c9;*/
border
:
1px
solid
#bebebe
;
/*border: 1px solid #bebebe;*/
word-break
:
break-all
;
word-break
:
break-all
;
word-wrap
:
break-word
;
word-wrap
:
break-word
;
width
:
100%
;
width
:
100%
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
}
.oddrowcolor
{
.oddrowcolor
{
...
@@ -367,13 +370,13 @@
...
@@ -367,13 +370,13 @@
<div
class=
"line2 tableList"
>
<div
class=
"line2 tableList"
>
<table
class=
"altrowstable"
id=
"alternatecolor"
>
<table
class=
"altrowstable"
id=
"alternatecolor"
>
<tr>
<tr>
<th>
序号
</th>
<th
width=
"70px"
>
序号
</th>
<th>
型号
</th>
<th>
型号
</th>
<th>
形态
</th>
<th>
形态
</th>
<th>
密级
</th>
<th
width=
"50px"
>
密级
</th>
<th>
应用领域
</th>
<th
width=
"120px"
>
应用领域
</th>
<th>
数量
</th>
<th>
数量
</th>
<th>
装备序列号
</th>
<th
width=
"420px"
>
装备序列号
</th>
<th>
备注
</th>
<th>
备注
</th>
</tr>
</tr>
<
#
list
documentDevices
as
dev
>
<
#
list
documentDevices
as
dev
>
...
...
dev-union/src/main/resources/bill2.html
浏览文件 @
dc28a537
...
@@ -5,17 +5,18 @@
...
@@ -5,17 +5,18 @@
<meta
charset=
"UTF-8"
/>
<meta
charset=
"UTF-8"
/>
<title>
Document
</title>
<title>
Document
</title>
<style>
<style>
body
{
body
,
span
,
p
,
tr
,
td
{
font-size
:
15px
;
font-family
:
SimHei
;
margin
:
0
;
margin
:
0
;
padding
:
0
;
padding
:
0
;
font-family
:
SimHei
;
}
}
.bottomTxt
{
.bottomTxt
{
text-align
:
center
;
text-align
:
center
;
font-size
:
1
0
px
;
font-size
:
1
5
px
;
color
:
#
646464
;
color
:
#
000
;
height
:
1
0
px
;
height
:
1
5
px
;
line-height
:
10px
;
line-height
:
10px
;
}
}
...
@@ -98,9 +99,13 @@
...
@@ -98,9 +99,13 @@
.returnTablePrint
.title
span
:nth-child
(
2
)
span
{
.returnTablePrint
.title
span
:nth-child
(
2
)
span
{
font-size
:
20px
;
font-size
:
20px
;
color
:
#141414
;
color
:
#000
;
}
.returnTablePrint
.main-title
span
{
font-size
:
22px
;
color
:
#333
;
font-weight
:
bold
;
}
}
.returnTablePrint
.main-title
{
.returnTablePrint
.main-title
{
font-size
:
17px
;
font-size
:
17px
;
color
:
#000000
;
color
:
#000000
;
...
@@ -109,8 +114,8 @@
...
@@ -109,8 +114,8 @@
table
.altrowstable
{
table
.altrowstable
{
width
:
100%
;
width
:
100%
;
font-size
:
1
4
px
;
font-size
:
1
5
px
;
color
:
#
141414
;
color
:
#
000
;
border-width
:
0px
;
border-width
:
0px
;
border-color
:
#a9c6c9
;
border-color
:
#a9c6c9
;
border-collapse
:
collapse
;
border-collapse
:
collapse
;
...
@@ -120,30 +125,22 @@
...
@@ -120,30 +125,22 @@
}
}
table
.altrowstable
th
{
table
.altrowstable
th
{
border-width
:
0px
;
padding
:
8px
;
border-style
:
solid
;
border-color
:
#a9c6c9
;
background-color
:
#dedede
;
background-color
:
#dedede
;
height
:
20px
;
border
:
1px
solid
#bebebe
;
line-height
:
20px
;
height
:
24px
;
font-size
:
10px
;
line-height
:
24px
;
font-size
:
15px
;
}
}
table
.altrowstable
td
{
table
.altrowstable
td
{
border-width
:
0px
;
padding
:
8px
;
border-style
:
solid
;
border-color
:
#a9c6c9
;
word-break
:
break-all
;
word-break
:
break-all
;
/*border: 1px solid #bebebe;*/
word-wrap
:
break-word
;
word-wrap
:
break-word
;
height
:
2
0
px
;
height
:
2
4
px
;
line-height
:
2
0
px
;
line-height
:
2
4
px
;
font-size
:
1
0
px
;
font-size
:
1
5
px
;
width
:
100%
;
width
:
100%
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
}
.oddrowcolor
{
.oddrowcolor
{
...
@@ -155,9 +152,9 @@
...
@@ -155,9 +152,9 @@
}
}
.person
{
.person
{
color
:
#
4a475b
;
color
:
#
000
;
text-align
:
right
;
text-align
:
right
;
font-size
:
1
6
px
;
font-size
:
1
5
px
;
}
}
.person
>
span
{
.person
>
span
{
...
@@ -180,32 +177,30 @@
...
@@ -180,32 +177,30 @@
<p
class=
"title"
style=
"margin-bottom:20px"
>
<p
class=
"title"
style=
"margin-bottom:20px"
>
<div
class=
"main-title"
>
<div
class=
"main-title"
>
<span>
<span>
${title
!
}
${title}
</span>
</span>
</div>
</div>
</p>
</p>
<div
style=
"height: 900px;"
>
<div
style=
"height: 900px;"
>
<table
class=
"altrowstable"
id=
"alternatecolor"
>
<table
class=
"altrowstable"
id=
"alternatecolor"
>
<tr>
<tr>
<th>
序号
</th>
<th
width=
"70px"
>
序号
</th>
<th
style=
"width: 150px;"
>
型号
</th>
<th
style=
"width: 150px;"
>
型号
</th>
<th>
形态
</th>
<th>
形态
</th>
<th>
密级
</th>
<th
width=
"100px"
>
密级
</th>
<th>
状态
</th>
<th
width=
"100px"
>
应用领域
</th>
<th
style=
"width: 150px;"
>
装备序列号
</th>
<th>
装备序列号
</th>
<th>
校对结果
</th>
</tr>
</tr>
<
#
list
documentDevices
as
dev
>
<
#
list
documentDevices
as
dev
>
<tr>
<tr>
<td>
<td>
${dev.code!}
${dev.code!}
</td>
</td>
<td>
${dev.model!}
</td>
<td>
${dev.model}
</td>
<td>
${dev.category!}
</td>
<td>
${dev.category}
</td>
<td>
${dev.securityClassification!}
</td>
<td>
${dev.securityClassification}
</td>
<td>
${dev.applicationField!}
</td>
<td>
${dev.applicationField}
</td>
<td>
${dev.deviceSerialNumber!}
</td>
<td>
${dev.deviceSerialNumber}
</td>
<td>
${dev.proofreading!}
</td>
</tr>
</tr>
</
#
list>
</
#
list>
</table>
</table>
...
...
dev-union/src/main/resources/bill3.html
浏览文件 @
dc28a537
...
@@ -5,7 +5,8 @@
...
@@ -5,7 +5,8 @@
<meta
charset=
"UTF-8"
/>
<meta
charset=
"UTF-8"
/>
<title>
Document
</title>
<title>
Document
</title>
<style>
<style>
body
{
body
,
span
,
p
,
tr
,
td
{
font-size
:
15px
;
font-family
:
SimHei
;
font-family
:
SimHei
;
margin
:
0
;
margin
:
0
;
padding
:
0
;
padding
:
0
;
...
@@ -18,10 +19,11 @@
...
@@ -18,10 +19,11 @@
.bottomTxt
{
.bottomTxt
{
text-align
:
center
;
text-align
:
center
;
font-size
:
10px
;
font-size
:
15px
;
color
:
#646464
;
color
:
#000
;
height
:
10px
;
height
:
16px
;
line-height
:
10px
;
margin-top
:
4px
;
line-height
:
16px
;
}
}
.returnTablePrint
{
.returnTablePrint
{
...
@@ -82,8 +84,8 @@
...
@@ -82,8 +84,8 @@
color: #141414;
color: #141414;
} */
} */
.returnTablePrint
.title
.number
{
.returnTablePrint
.title
.number
{
font-size
:
1
0
px
;
font-size
:
1
5
px
;
color
:
#
646464
;
color
:
#
000
;
}
}
/* .returnTablePrint .other{
/* .returnTablePrint .other{
...
@@ -108,7 +110,7 @@
...
@@ -108,7 +110,7 @@
.returnTablePrint
.line1
{
.returnTablePrint
.line1
{
width
:
100%
;
width
:
100%
;
font-size
:
1
2
px
;
font-size
:
1
5
px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
border-bottom
:
1px
solid
#7f7f7f
;
border-bottom
:
1px
solid
#7f7f7f
;
color
:
#000
;
color
:
#000
;
...
@@ -136,7 +138,7 @@
...
@@ -136,7 +138,7 @@
.returnTablePrint
.line1
.sendTo
span
:nth-child
(
2
),
.returnTablePrint
.line1
.sendTo
span
:nth-child
(
2
),
.returnTablePrint
.line1
.sendNum
span
:nth-child
(
2
)
{
.returnTablePrint
.line1
.sendNum
span
:nth-child
(
2
)
{
color
:
#
4a475d
;
color
:
#
000
;
display
:
inline-block
;
display
:
inline-block
;
margin-left
:
5px
;
margin-left
:
5px
;
}
}
...
@@ -204,7 +206,7 @@
...
@@ -204,7 +206,7 @@
}
}
.returnTablePrint
.checkName
span
:nth-child
(
2
)
{
.returnTablePrint
.checkName
span
:nth-child
(
2
)
{
color
:
#
4a475d
;
color
:
#
000
;
display
:
inline-block
;
display
:
inline-block
;
margin-left
:
20px
;
margin-left
:
20px
;
}
}
...
@@ -214,15 +216,19 @@
...
@@ -214,15 +216,19 @@
}
}
.returnTablePrint
.label
{
.returnTablePrint
.label
{
color
:
#
646464
;
color
:
#
000
;
font-size
:
1
0
px
;
font-size
:
1
5
px
;
}
}
.returnTablePrint
.value
{
.returnTablePrint
.value
{
color
:
#000
;
color
:
#000
;
font-size
:
10px
;
font-size
:
15px
;
}
.returnTablePrint
.main-title
span
{
font-size
:
22px
;
color
:
#333
;
font-weight
:
bold
;
}
}
.returnTablePrint
.main-title
{
.returnTablePrint
.main-title
{
font-size
:
17px
;
font-size
:
17px
;
color
:
#000000
;
color
:
#000000
;
...
@@ -245,7 +251,7 @@
...
@@ -245,7 +251,7 @@
table
.altrowstable
{
table
.altrowstable
{
width
:
100%
;
width
:
100%
;
font-size
:
11px
;
font-size
:
11px
;
color
:
#
141414
;
color
:
#
000
;
border-width
:
0px
;
border-width
:
0px
;
border-color
:
#a9c6c9
;
border-color
:
#a9c6c9
;
border-collapse
:
collapse
;
border-collapse
:
collapse
;
...
@@ -256,30 +262,25 @@
...
@@ -256,30 +262,25 @@
table
.altrowstable
th
{
table
.altrowstable
th
{
border-width
:
0px
;
border-width
:
0px
;
padding
:
5px
;
border-style
:
solid
;
border-style
:
solid
;
border-color
:
#a9c6c9
;
border-color
:
#a9c6c9
;
background-color
:
#dedede
;
background-color
:
#dedede
;
word-break
:
break-all
;
height
:
24px
;
height
:
20px
;
line-height
:
24px
;
line-height
:
20px
;
font-size
:
15px
;
font-size
:
10px
;
}
}
table
.altrowstable
td
{
table
.altrowstable
td
{
border-width
:
0px
;
border-width
:
0px
;
height
:
2
0
px
;
height
:
2
4
px
;
line-height
:
2
0
px
;
line-height
:
2
4
px
;
font-size
:
1
0
px
;
font-size
:
1
5
px
;
/*border-style: solid;*/
/*border-style: solid;*/
/*border-color: #a9c6c9;*/
/*border-color: #a9c6c9;*/
/*border: 1px solid #bebebe;*/
word-break
:
break-all
;
word-break
:
break-all
;
word-wrap
:
break-word
;
word-wrap
:
break-word
;
border-bottom
:
1px
solid
#bebebe
;
width
:
100%
;
width
:
100%
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
}
.oddrowcolor
{
.oddrowcolor
{
...
@@ -297,6 +298,8 @@
...
@@ -297,6 +298,8 @@
</head>
</head>
<body>
<body>
<div
class=
"returnTablePrint"
>
<div
class=
"returnTablePrint"
>
<div
class=
"content"
>
<div
class=
"content"
>
<div>
<div>
...
@@ -305,12 +308,12 @@
...
@@ -305,12 +308,12 @@
<div
class=
"title"
>
<div
class=
"title"
>
<div
class=
"main-title"
>
<div
class=
"main-title"
>
<span>
<span>
工作交接单
工作交接单
2
</span>
</span>
</div>
</div>
<div
style=
"width:100%;text-align:left;font-size: 1px;margin-bottom:2px"
>
<div
style=
"width:100%;text-align:left;font-size: 1px;margin-bottom:2px"
>
<div
style=
"text-align:left;display: inline-block; width: 49%"
class=
"number"
>
<div
style=
"text-align:left;display: inline-block; width: 49%"
class=
"number"
>
<span
class=
"number"
>
时间:${time
!
}
</span>
<span
class=
"number"
>
时间:${time}
</span>
</div>
</div>
<!-- <div style="text-align:center;display: inline-block; width: 34%" class="number">
<!-- <div style="text-align:center;display: inline-block; width: 34%" class="number">
<span></span>
<span></span>
...
@@ -324,7 +327,7 @@
...
@@ -324,7 +327,7 @@
<div
class=
"line2 tableList"
>
<div
class=
"line2 tableList"
>
<table
class=
"altrowstable"
id=
"alternatecolor"
>
<table
class=
"altrowstable"
id=
"alternatecolor"
>
<tr>
<tr>
<th>
序号
</th>
<th
width=
"70px"
>
序号
</th>
<th>
型号
</th>
<th>
型号
</th>
<th>
名称
</th>
<th>
名称
</th>
<th>
在库
</th>
<th>
在库
</th>
...
@@ -332,7 +335,7 @@
...
@@ -332,7 +335,7 @@
<th>
报废
</th>
<th>
报废
</th>
<th>
清退
</th>
<th>
清退
</th>
<th>
其他
</th>
<th>
其他
</th>
<th
>
装备序列号
</th>
<th
width=
"420px"
>
装备序列号
</th>
</tr>
</tr>
<
#
list
documentDevices
as
dev
>
<
#
list
documentDevices
as
dev
>
<tr>
<tr>
...
...
dev-user/pom.xml
浏览文件 @
dc28a537
...
@@ -34,6 +34,11 @@
...
@@ -34,6 +34,11 @@
<groupId>
com.tykj.dev
</groupId>
<groupId>
com.tykj.dev
</groupId>
<artifactId>
socket
</artifactId>
<artifactId>
socket
</artifactId>
</dependency>
</dependency>
<!--<dependency>-->
<!--<groupId>com.tykj</groupId>-->
<!--<artifactId>dev-file</artifactId>-->
<!--</dependency>-->
<dependency>
<dependency>
<groupId>
com.tykj.dev
</groupId>
<groupId>
com.tykj.dev
</groupId>
<artifactId>
blockcha
</artifactId>
<artifactId>
blockcha
</artifactId>
...
...
dev-user/src/main/java/com/tykj/dev/device/user/subject/service/impl/UnitsServiceImpl.java
浏览文件 @
dc28a537
...
@@ -83,7 +83,7 @@ public class UnitsServiceImpl implements UnitsService {
...
@@ -83,7 +83,7 @@ public class UnitsServiceImpl implements UnitsService {
}
}
);
);
List
<
Area
>
countys
=
areaDao
.
findAllByFatherId
(
area
.
getId
());
List
<
Area
>
countys
=
areaDao
.
findAllByFatherId
(
area
.
getId
())
.
stream
().
filter
(
area1
->
area1
.
getType
()
<=
3
).
collect
(
Collectors
.
toList
())
;
if
(
countys
!=
null
&&
countys
.
size
()
!=
0
)
{
if
(
countys
!=
null
&&
countys
.
size
()
!=
0
)
{
countys
.
forEach
(
countys
.
forEach
(
area1
->
unitsDao
.
findAllByAreaId
(
area1
.
getId
()).
forEach
(
area1
->
unitsDao
.
findAllByAreaId
(
area1
.
getId
()).
forEach
(
...
@@ -126,14 +126,14 @@ public class UnitsServiceImpl implements UnitsService {
...
@@ -126,14 +126,14 @@ public class UnitsServiceImpl implements UnitsService {
@Override
@Override
public
List
<
Integer
>
findListSubordinateId
(
Integer
unitsId
)
{
public
List
<
Integer
>
findListSubordinateId
(
Integer
unitsId
)
{
Integer
areaId
=
unitsDao
.
findById
(
unitsId
).
get
().
getAreaId
();
Integer
areaId
=
unitsDao
.
findById
(
unitsId
).
get
().
getAreaId
();
List
<
Integer
>
areaIds
=
areaDao
.
findAllByFatherId
(
areaId
).
stream
().
map
(
Area:
:
getId
).
collect
(
Collectors
.
toList
());
List
<
Integer
>
areaIds
=
areaDao
.
findAllByFatherId
(
areaId
).
stream
().
filter
(
area
->
area
.
getType
()
<=
3
).
map
(
Area:
:
getId
).
collect
(
Collectors
.
toList
());
return
unitsDao
.
findAllByAreaIdIn
(
areaIds
).
stream
().
map
(
Units:
:
getUnitId
).
collect
(
Collectors
.
toList
());
return
unitsDao
.
findAllByAreaIdIn
(
areaIds
).
stream
().
map
(
Units:
:
getUnitId
).
collect
(
Collectors
.
toList
());
}
}
@Override
@Override
public
List
<
UnitsVo
>
findListVoSubordinateAreaId
(
Integer
areaId
)
{
public
List
<
UnitsVo
>
findListVoSubordinateAreaId
(
Integer
areaId
)
{
List
<
UnitsVo
>
unitsVos
=
new
ArrayList
<>();
List
<
UnitsVo
>
unitsVos
=
new
ArrayList
<>();
List
<
Integer
>
areaIds
=
areaDao
.
findAllByFatherId
(
areaId
).
stream
().
map
(
Area:
:
getId
).
collect
(
Collectors
.
toList
());
List
<
Integer
>
areaIds
=
areaDao
.
findAllByFatherId
(
areaId
).
stream
().
filter
(
area
->
area
.
getType
()
<=
3
).
map
(
Area:
:
getId
).
collect
(
Collectors
.
toList
());
if
(
areaIds
.
size
()
!=
0
)
{
if
(
areaIds
.
size
()
!=
0
)
{
unitsVos
=
unitsDao
.
findAllByAreaIdIn
(
areaIds
).
stream
().
map
(
Units:
:
toVo
).
collect
(
Collectors
.
toList
());
unitsVos
=
unitsDao
.
findAllByAreaIdIn
(
areaIds
).
stream
().
map
(
Units:
:
toVo
).
collect
(
Collectors
.
toList
());
}
}
...
@@ -148,7 +148,7 @@ public class UnitsServiceImpl implements UnitsService {
...
@@ -148,7 +148,7 @@ public class UnitsServiceImpl implements UnitsService {
@Override
@Override
public
List
<
UnitsTrainVo
>
findListUnitsTrainVo
(
Integer
unitsId
)
{
public
List
<
UnitsTrainVo
>
findListUnitsTrainVo
(
Integer
unitsId
)
{
Integer
areaId
=
unitsDao
.
findById
(
unitsId
).
get
().
getAreaId
();
Integer
areaId
=
unitsDao
.
findById
(
unitsId
).
get
().
getAreaId
();
List
<
Integer
>
areaIds
=
areaDao
.
findAllByFatherId
(
areaId
).
stream
().
map
(
Area:
:
getId
).
collect
(
Collectors
.
toList
());
List
<
Integer
>
areaIds
=
areaDao
.
findAllByFatherId
(
areaId
).
stream
().
filter
(
area
->
area
.
getType
()
<=
3
).
map
(
Area:
:
getId
).
collect
(
Collectors
.
toList
());
return
unitsDao
.
findAllByAreaIdIn
(
areaIds
).
stream
().
map
(
Units:
:
toUnitsTrainVo
).
collect
(
Collectors
.
toList
());
return
unitsDao
.
findAllByAreaIdIn
(
areaIds
).
stream
().
map
(
Units:
:
toUnitsTrainVo
).
collect
(
Collectors
.
toList
());
}
}
...
@@ -172,7 +172,7 @@ public class UnitsServiceImpl implements UnitsService {
...
@@ -172,7 +172,7 @@ public class UnitsServiceImpl implements UnitsService {
@Override
@Override
public
List
<
Units
>
findBySubordinate
(
Integer
unitsId
)
{
public
List
<
Units
>
findBySubordinate
(
Integer
unitsId
)
{
Units
units
=
unitsDao
.
findById
(
unitsId
).
get
();
Units
units
=
unitsDao
.
findById
(
unitsId
).
get
();
List
<
Integer
>
areaIds
=
areaDao
.
findAllByFatherId
(
units
.
getAreaId
()).
stream
().
map
(
Area:
:
getId
).
collect
(
Collectors
.
toList
());
List
<
Integer
>
areaIds
=
areaDao
.
findAllByFatherId
(
units
.
getAreaId
()).
stream
().
filter
(
area
->
area
.
getType
()
<=
3
).
map
(
Area:
:
getId
).
collect
(
Collectors
.
toList
());
List
<
Units
>
units1
=
unitsDao
.
findAllByAreaIdIn
(
areaIds
);
List
<
Units
>
units1
=
unitsDao
.
findAllByAreaIdIn
(
areaIds
);
if
(
units
.
getLevel
()==
1
){
if
(
units
.
getLevel
()==
1
){
units1
.
add
(
units
);
units1
.
add
(
units
);
...
@@ -184,7 +184,7 @@ public class UnitsServiceImpl implements UnitsService {
...
@@ -184,7 +184,7 @@ public class UnitsServiceImpl implements UnitsService {
@Override
@Override
public
List
<
Units
>
findBySubordinateNotOneself
(
Integer
unitsId
)
{
public
List
<
Units
>
findBySubordinateNotOneself
(
Integer
unitsId
)
{
Units
units
=
unitsDao
.
findById
(
unitsId
).
get
();
Units
units
=
unitsDao
.
findById
(
unitsId
).
get
();
List
<
Integer
>
areaIds
=
areaDao
.
findAllByFatherId
(
units
.
getAreaId
()).
stream
().
map
(
Area:
:
getId
).
collect
(
Collectors
.
toList
());
List
<
Integer
>
areaIds
=
areaDao
.
findAllByFatherId
(
units
.
getAreaId
()).
stream
().
filter
(
area
->
area
.
getType
()
<=
3
).
map
(
Area:
:
getId
).
collect
(
Collectors
.
toList
());
List
<
Units
>
units1
=
unitsDao
.
findAllByAreaIdIn
(
areaIds
);
List
<
Units
>
units1
=
unitsDao
.
findAllByAreaIdIn
(
areaIds
);
if
(
units
.
getLevel
()==
1
){
if
(
units
.
getLevel
()==
1
){
// units1.add(units);
// units1.add(units);
...
@@ -233,7 +233,7 @@ public class UnitsServiceImpl implements UnitsService {
...
@@ -233,7 +233,7 @@ public class UnitsServiceImpl implements UnitsService {
Optional
<
Units
>
unitsOptional
=
unitsDao
.
findById
(
unitsId
);
Optional
<
Units
>
unitsOptional
=
unitsDao
.
findById
(
unitsId
);
if
(
unitsOptional
.
isPresent
())
{
if
(
unitsOptional
.
isPresent
())
{
Units
units
=
unitsOptional
.
get
();
Units
units
=
unitsOptional
.
get
();
List
<
Integer
>
areaIds
=
areaDao
.
findAllByFatherId
(
units
.
getAreaId
()).
stream
().
map
(
Area:
:
getId
).
collect
(
Collectors
.
toList
());
List
<
Integer
>
areaIds
=
areaDao
.
findAllByFatherId
(
units
.
getAreaId
()).
stream
().
filter
(
area
->
area
.
getType
()
<=
3
).
map
(
Area:
:
getId
).
collect
(
Collectors
.
toList
());
List
<
Units
>
unitsList
=
unitsDao
.
findAllByAreaIdIn
(
areaIds
);
List
<
Units
>
unitsList
=
unitsDao
.
findAllByAreaIdIn
(
areaIds
);
unitsList
.
add
(
units
);
unitsList
.
add
(
units
);
return
unitsList
;
return
unitsList
;
...
@@ -269,7 +269,7 @@ public class UnitsServiceImpl implements UnitsService {
...
@@ -269,7 +269,7 @@ public class UnitsServiceImpl implements UnitsService {
LeftNavigation
leftNavigation2
=
new
LeftNavigation
(
0
,
"省直属"
,
leftNavigationList2
,
UUID
.
randomUUID
().
toString
(),
1
,
22
,
null
);
LeftNavigation
leftNavigation2
=
new
LeftNavigation
(
0
,
"省直属"
,
leftNavigationList2
,
UUID
.
randomUUID
().
toString
(),
1
,
22
,
null
);
leftNavigationList
.
add
(
leftNavigation2
);
leftNavigationList
.
add
(
leftNavigation2
);
}
}
List
<
Area
>
areas
=
areaDao
.
findAllByFatherId
(
areaId
);
List
<
Area
>
areas
=
areaDao
.
findAllByFatherId
(
areaId
)
.
stream
().
filter
(
area
->
area
.
getType
()
<=
3
).
collect
(
Collectors
.
toList
())
;
if
(
areas
.
size
()!=
0
)
{
if
(
areas
.
size
()!=
0
)
{
provinceAndCity
(
belongsArea
,
areas
,
leftNavigationList
);
provinceAndCity
(
belongsArea
,
areas
,
leftNavigationList
);
}
else
{
}
else
{
...
@@ -302,7 +302,7 @@ public class UnitsServiceImpl implements UnitsService {
...
@@ -302,7 +302,7 @@ public class UnitsServiceImpl implements UnitsService {
leftNavigationList
=
leftNavigationList1
;
leftNavigationList
=
leftNavigationList1
;
}
}
List
<
Area
>
areas
=
areaDao
.
findAllByFatherId
(
areaId
);
List
<
Area
>
areas
=
areaDao
.
findAllByFatherId
(
areaId
)
.
stream
().
filter
(
area
->
area
.
getType
()
<=
3
).
collect
(
Collectors
.
toList
())
;
if
(
areas
.
size
()!=
0
)
{
if
(
areas
.
size
()!=
0
)
{
provinceAndCity
(
belongsArea
,
areas
,
leftNavigationList
);
provinceAndCity
(
belongsArea
,
areas
,
leftNavigationList
);
}
else
{
}
else
{
...
@@ -341,7 +341,7 @@ public class UnitsServiceImpl implements UnitsService {
...
@@ -341,7 +341,7 @@ public class UnitsServiceImpl implements UnitsService {
@Override
@Override
public
List
<
Units
>
findSubordinateList
(
Integer
unitsId
)
{
public
List
<
Units
>
findSubordinateList
(
Integer
unitsId
)
{
Units
units
=
unitsDao
.
findById
(
unitsId
).
get
();
Units
units
=
unitsDao
.
findById
(
unitsId
).
get
();
List
<
Integer
>
areaIds
=
areaDao
.
findAllByFatherId
(
units
.
getAreaId
()).
stream
().
map
(
Area:
:
getId
).
collect
(
Collectors
.
toList
());
List
<
Integer
>
areaIds
=
areaDao
.
findAllByFatherId
(
units
.
getAreaId
()).
stream
().
filter
(
area
->
area
.
getType
()
<=
3
).
map
(
Area:
:
getId
).
collect
(
Collectors
.
toList
());
return
unitsDao
.
findAllByAreaIdIn
(
areaIds
);
return
unitsDao
.
findAllByAreaIdIn
(
areaIds
);
}
}
...
...
dev-user/src/main/java/com/tykj/dev/device/user/subject/service/impl/UserServiceImpl.java
浏览文件 @
dc28a537
...
@@ -296,8 +296,13 @@ public class UserServiceImpl implements UserService {
...
@@ -296,8 +296,13 @@ public class UserServiceImpl implements UserService {
private
Specification
<
User
>
getUserSpecification
(
UserConditionsVo
userConditionsVo
)
{
private
Specification
<
User
>
getUserSpecification
(
UserConditionsVo
userConditionsVo
)
{
PredicateBuilder
<
User
>
predicateBuilder
=
Specifications
.
and
();
PredicateBuilder
<
User
>
predicateBuilder
=
Specifications
.
and
();
if
(
userConditionsVo
.
getType
()==
1
){
if
(
userConditionsVo
.
getType
()==
1
){
List
<
Integer
>
ids
=
areaService
.
findIdQuerySubordinateIds
(
userConditionsVo
.
getUnitsId
());
List
<
Integer
>
unitIds
;
List
<
Integer
>
unitIds
=
unitsDao
.
findAllByAreaIdIn
(
ids
).
stream
().
map
(
Units:
:
getUnitId
).
collect
(
Collectors
.
toList
());
if
(
userConditionsVo
.
getUnitsId
()!=
0
)
{
List
<
Integer
>
ids
=
areaService
.
findIdQuerySubordinateIds
(
userConditionsVo
.
getUnitsId
());
unitIds
=
unitsDao
.
findAllByAreaIdIn
(
ids
).
stream
().
map
(
Units:
:
getUnitId
).
collect
(
Collectors
.
toList
());
}
else
{
unitIds
=
unitsDao
.
findAllByType
(
2
).
stream
().
map
(
Units:
:
getUnitId
).
collect
(
Collectors
.
toList
());
}
predicateBuilder
.
in
(
"unitsId"
,
unitIds
.
toArray
());
predicateBuilder
.
in
(
"unitsId"
,
unitIds
.
toArray
());
}
else
{
}
else
{
predicateBuilder
.
eq
(
"unitsId"
,
userConditionsVo
.
getUnitsId
());
predicateBuilder
.
eq
(
"unitsId"
,
userConditionsVo
.
getUnitsId
());
...
...
pom.xml
浏览文件 @
dc28a537
...
@@ -47,6 +47,7 @@
...
@@ -47,6 +47,7 @@
<module>
dev-loss
</module>
<module>
dev-loss
</module>
<module>
dev-decommissioning
</module>
<module>
dev-decommissioning
</module>
<module>
dev-excel
</module>
<module>
dev-excel
</module>
<module>
dev-policydocument
</module>
</modules>
</modules>
<properties>
<properties>
...
@@ -162,6 +163,12 @@
...
@@ -162,6 +163,12 @@
<artifactId>
dev-library
</artifactId>
<artifactId>
dev-library
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<version>
1.0-SNAPSHOT
</version>
</dependency>
</dependency>
<dependency>
<groupId>
com.tykj
</groupId>
<artifactId>
dev-policydocument
</artifactId>
<version>
1.0-SNAPSHOT
</version>
</dependency>
<dependency>
<dependency>
<groupId>
com.tykj
</groupId>
<groupId>
com.tykj
</groupId>
<artifactId>
dev-matching
</artifactId>
<artifactId>
dev-matching
</artifactId>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论