Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
56984fd5
提交
56984fd5
authored
4月 29, 2021
作者:
邓砥奕
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更新
上级
44e3e709
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
34 行增加
和
18 行删除
+34
-18
AllotBillSaveVo.java
...com/tykj/dev/device/allot/subject/vo/AllotBillSaveVo.java
+4
-4
FilesUtil.java
...main/java/com/tykj/dev/device/file/service/FilesUtil.java
+13
-8
RepairController.java
...m/tykj/dev/device/repair/controller/RepairController.java
+17
-2
LogAspect.java
dev-union/src/main/java/com/tykj/dev/union/LogAspect.java
+0
-4
没有找到文件。
dev-allot/src/main/java/com/tykj/dev/device/allot/subject/vo/AllotBillSaveVo.java
浏览文件 @
56984fd5
...
@@ -107,10 +107,10 @@ public class AllotBillSaveVo {
...
@@ -107,10 +107,10 @@ public class AllotBillSaveVo {
public
AllotBill
toDo
()
{
public
AllotBill
toDo
()
{
AllotBill
allotBillEntity
=
new
AllotBill
();
AllotBill
allotBillEntity
=
new
AllotBill
();
BeanUtils
.
copyProperties
(
this
,
allotBillEntity
);
BeanUtils
.
copyProperties
(
this
,
allotBillEntity
);
if
(
this
.
replyFiles
!=
null
&&
this
.
replyFiles
.
size
()>
0
){
if
(
this
.
replyFiles
!=
null
){
allotBillEntity
.
setReplyFiles
(
FilesUtil
.
stringFileToList
(
this
.
replyFiles
));
allotBillEntity
.
setReplyFiles
(
FilesUtil
.
stringFileToList
(
this
.
replyFiles
));
}
}
if
(
this
.
applyFiles
!=
null
&&
this
.
applyFiles
.
size
()>
0
){
if
(
this
.
applyFiles
!=
null
){
allotBillEntity
.
setApplyFiles
(
FilesUtil
.
stringFileToList
(
this
.
applyFiles
));
allotBillEntity
.
setApplyFiles
(
FilesUtil
.
stringFileToList
(
this
.
applyFiles
));
}
}
allotBillEntity
.
setAllotStatus
(
2
);
allotBillEntity
.
setAllotStatus
(
2
);
...
@@ -124,10 +124,10 @@ public class AllotBillSaveVo {
...
@@ -124,10 +124,10 @@ public class AllotBillSaveVo {
public
AllotBackBill
toBackDo
()
{
public
AllotBackBill
toBackDo
()
{
AllotBackBill
allotBillEntity
=
new
AllotBackBill
();
AllotBackBill
allotBillEntity
=
new
AllotBackBill
();
BeanUtils
.
copyProperties
(
this
,
allotBillEntity
);
BeanUtils
.
copyProperties
(
this
,
allotBillEntity
);
if
(
this
.
replyFiles
!=
null
&&
this
.
replyFiles
.
size
()>
0
){
if
(
this
.
replyFiles
!=
null
){
allotBillEntity
.
setReplyFiles
(
FilesUtil
.
stringFileToList
(
this
.
replyFiles
));
allotBillEntity
.
setReplyFiles
(
FilesUtil
.
stringFileToList
(
this
.
replyFiles
));
}
}
if
(
this
.
applyFiles
!=
null
&&
this
.
applyFiles
.
size
()>
0
){
if
(
this
.
applyFiles
!=
null
){
allotBillEntity
.
setApplyFiles
(
FilesUtil
.
stringFileToList
(
this
.
applyFiles
));
allotBillEntity
.
setApplyFiles
(
FilesUtil
.
stringFileToList
(
this
.
applyFiles
));
}
}
allotBillEntity
.
setBackStatus
(
0
);
allotBillEntity
.
setBackStatus
(
0
);
...
...
dev-file/src/main/java/com/tykj/dev/device/file/service/FilesUtil.java
浏览文件 @
56984fd5
...
@@ -38,14 +38,19 @@ public class FilesUtil {
...
@@ -38,14 +38,19 @@ public class FilesUtil {
public
static
String
stringFileToList
(
List
<
FileRet
>
fileRets
){
public
static
String
stringFileToList
(
List
<
FileRet
>
fileRets
){
StringBuffer
fileString
=
new
StringBuffer
();
StringBuffer
fileString
=
new
StringBuffer
();
if
(
fileRets
!=
null
)
{
if
(
fileRets
!=
null
)
{
fileRets
.
forEach
(
if
(
fileRets
.
size
()>
0
)
{
fileRet
->
fileString
.
append
(
"<*>"
).
append
(
fileRet
.
getName
())
fileRets
.
forEach
(
.
append
(
","
)
fileRet
->
fileString
.
append
(
"<*>"
).
append
(
fileRet
.
getName
())
.
append
(
fileRet
.
getFilePath
())
.
append
(
","
)
.
append
(
","
)
.
append
(
fileRet
.
getFilePath
())
.
append
(
fileRet
.
getPreviewPath
())
.
append
(
","
)
);
.
append
(
fileRet
.
getPreviewPath
())
return
fileString
.
toString
();
);
return
fileString
.
toString
();
}
else
{
return
""
;
}
}
else
{
}
else
{
return
fileString
.
toString
();
return
fileString
.
toString
();
}
}
...
...
dev-repair/src/main/java/com/tykj/dev/device/repair/controller/RepairController.java
浏览文件 @
56984fd5
...
@@ -1514,7 +1514,7 @@ public class RepairController {
...
@@ -1514,7 +1514,7 @@ public class RepairController {
Integer
level
=
userUtils
.
getCurrentUnitLevel
();
Integer
level
=
userUtils
.
getCurrentUnitLevel
();
List
<
RepairDetail
>
repairDetails
;
List
<
RepairDetail
>
repairDetails
;
if
(
level
==
1
)
{
if
(
level
==
1
)
{
repairDetails
=
repairDetailDao
.
findAllByRepairStatus
In
(
Arrays
.
asList
(
4
,
5
)
,
repairTaskSelectVo
.
getPageable
().
getSort
());
repairDetails
=
repairDetailDao
.
findAllByRepairStatus
(
5
,
repairTaskSelectVo
.
getPageable
().
getSort
());
}
}
else
if
(
level
==
2
)
{
else
if
(
level
==
2
)
{
repairDetails
=
repairDetailDao
.
findAllByRepairStatus
(
5
,
repairTaskSelectVo
.
getPageable
().
getSort
());
repairDetails
=
repairDetailDao
.
findAllByRepairStatus
(
5
,
repairTaskSelectVo
.
getPageable
().
getSort
());
...
@@ -1530,8 +1530,23 @@ public class RepairController {
...
@@ -1530,8 +1530,23 @@ public class RepairController {
List
<
RepairDetail
>
repairDetails2
=
repairDetails
.
stream
().
filter
(
repairDetail
->
units
.
contains
(
repairDetail
.
getLocationUnit
())&&(!
hasYear
||
repairDetail
.
getUpdateTime
().
getYear
()==
year
-
1900
)).
collect
(
Collectors
.
toList
());
List
<
RepairDetail
>
repairDetails2
=
repairDetails
.
stream
().
filter
(
repairDetail
->
units
.
contains
(
repairDetail
.
getLocationUnit
())&&(!
hasYear
||
repairDetail
.
getUpdateTime
().
getYear
()==
year
-
1900
)).
collect
(
Collectors
.
toList
());
return
ResponseEntity
.
ok
(
PageUtil
.
getPerPage
(
repairTaskSelectVo
.
getPage
(),
repairTaskSelectVo
.
getSize
(),
repairDetails2
,
repairTaskSelectVo
.
getPageable
()));
return
ResponseEntity
.
ok
(
PageUtil
.
getPerPage
(
repairTaskSelectVo
.
getPage
(),
repairTaskSelectVo
.
getSize
(),
repairDetails2
,
repairTaskSelectVo
.
getPageable
()));
}
}
else
if
(
type
==
5
){
Integer
level
=
userUtils
.
getCurrentUnitLevel
();
List
<
RepairDetail
>
repairDetails
;
if
(
level
==
1
)
{
repairDetails
=
repairDetailDao
.
findAllByRepairStatus
(
4
,
repairTaskSelectVo
.
getPageable
().
getSort
());
}
else
{
throw
new
ApiException
(
"区县没有维修完成列表"
);
}
repairDetails
.
forEach
(
repairDetail
->
{
repairDetail
.
setConfigName
();
});
List
<
RepairDetail
>
repairDetails2
=
repairDetails
.
stream
().
filter
(
repairDetail
->
!
hasYear
||
repairDetail
.
getUpdateTime
().
getYear
()==
year
-
1900
).
collect
(
Collectors
.
toList
());
return
ResponseEntity
.
ok
(
PageUtil
.
getPerPage
(
repairTaskSelectVo
.
getPage
(),
repairTaskSelectVo
.
getSize
(),
repairDetails2
,
repairTaskSelectVo
.
getPageable
()));
}
else
{
else
{
throw
new
ApiException
(
"type只能为1,2,3,4"
);
throw
new
ApiException
(
"type只能为1,2,3,4
,5
"
);
}
}
}
}
...
...
dev-union/src/main/java/com/tykj/dev/union/LogAspect.java
浏览文件 @
56984fd5
...
@@ -12,8 +12,6 @@ import com.tykj.dev.device.apply.subject.domin.DeviceApplyBill;
...
@@ -12,8 +12,6 @@ import com.tykj.dev.device.apply.subject.domin.DeviceApplyBill;
import
com.tykj.dev.device.confirmcheck.repository.DeviceCheckBillDao
;
import
com.tykj.dev.device.confirmcheck.repository.DeviceCheckBillDao
;
import
com.tykj.dev.device.confirmcheck.repository.DeviceCheckDetailDao
;
import
com.tykj.dev.device.confirmcheck.repository.DeviceCheckDetailDao
;
import
com.tykj.dev.device.confirmcheck.repository.DeviceCheckStatDao
;
import
com.tykj.dev.device.confirmcheck.repository.DeviceCheckStatDao
;
import
com.tykj.dev.device.destroy.entity.domain.DeviceDestroyBill
;
import
com.tykj.dev.device.destroy.service.DeviceDestroyBillService
;
import
com.tykj.dev.device.file.service.FilesUtil
;
import
com.tykj.dev.device.file.service.FilesUtil
;
import
com.tykj.dev.device.library.subject.vo.FileVo
;
import
com.tykj.dev.device.library.subject.vo.FileVo
;
import
com.tykj.dev.device.matching.service.MatchingDeviceBillService
;
import
com.tykj.dev.device.matching.service.MatchingDeviceBillService
;
...
@@ -26,8 +24,6 @@ import com.tykj.dev.device.repair.subject.domin.RepairBackBill;
...
@@ -26,8 +24,6 @@ import com.tykj.dev.device.repair.subject.domin.RepairBackBill;
import
com.tykj.dev.device.repair.subject.domin.RepairBill
;
import
com.tykj.dev.device.repair.subject.domin.RepairBill
;
import
com.tykj.dev.device.repair.subject.domin.RepairSendBill
;
import
com.tykj.dev.device.repair.subject.domin.RepairSendBill
;
import
com.tykj.dev.device.retired.service.DeviceRetiredBillService
;
import
com.tykj.dev.device.retired.service.DeviceRetiredBillService
;
import
com.tykj.dev.device.scrap.service.ScrapBillService
;
import
com.tykj.dev.device.scrap.subject.domin.ScrapBill
;
import
com.tykj.dev.device.selfcheck.service.SelfCheckBillService
;
import
com.tykj.dev.device.selfcheck.service.SelfCheckBillService
;
import
com.tykj.dev.device.selfcheck.subject.domin.SelfCheckBill
;
import
com.tykj.dev.device.selfcheck.subject.domin.SelfCheckBill
;
import
com.tykj.dev.device.storage.service.StorageBillService
;
import
com.tykj.dev.device.storage.service.StorageBillService
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论