Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
34aeeb4f
提交
34aeeb4f
authored
5月 26, 2022
作者:
zhoushaopan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(配发模块,维修模块): 无任务
1.省给省直属配发,省直属无任务和阅知 2.省直属给省发起维修,省直接入库
上级
62f9326f
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
18 行增加
和
8 行删除
+18
-8
AllotBillController.java
...tykj/dev/device/allot/controller/AllotBillController.java
+15
-5
RepairController.java
...m/tykj/dev/device/repair/controller/RepairController.java
+3
-3
没有找到文件。
dev-allot/src/main/java/com/tykj/dev/device/allot/controller/AllotBillController.java
浏览文件 @
34aeeb4f
...
@@ -272,11 +272,21 @@ public class AllotBillController {
...
@@ -272,11 +272,21 @@ public class AllotBillController {
// .distinct().collect(Collectors.toList())) + "的装备共" + allotBillSaveVo.getAllotCount() + "件",
// .distinct().collect(Collectors.toList())) + "的装备共" + allotBillSaveVo.getAllotCount() + "件",
// null, ".", billId, 3,
// null, ".", billId, 3,
// userPublicService.findUnitIdByName(allotBillEntity.getSendUnit()), 1, "country", userIds);
// userPublicService.findUnitIdByName(allotBillEntity.getSendUnit()), 1, "country", userIds);
TaskBto
taskBto2
=
new
TaskBto
(
StatusEnum
.
WAIT_UPLOAD_CROSS_FILE
.
id
,
"["
+
DeviceModelSort
.
unitNameToDisName
(
allotBillSaveVo
.
getReceiveUnit
())+
"]型号"
+
// TaskBto taskBto2 = new TaskBto(StatusEnum.WAIT_UPLOAD_CROSS_FILE.id, "["+DeviceModelSort.unitNameToDisName(allotBillSaveVo.getReceiveUnit())+ "]型号" +
// StringSplitUtil.stringListToString(allotBillSaveVo.getScriptSaveVos().stream().map(ScriptSaveVo::getModel)
// .distinct().collect(Collectors.toList())) + "的装备共" + allotBillSaveVo.getAllotCount() + "件",
// null, ".", billId, 3,
// allotBillSaveVo.getSendUnitId(), 1, "country1", userIds);
// TaskBto taskBto2 = new TaskBto(StatusEnum.WAIT_UPLOAD_CROSS_FILE.id, "["+DeviceModelSort.unitNameToDisName(allotBillSaveVo.getReceiveUnit())+ "]型号" +
// StringSplitUtil.stringListToString(allotBillSaveVo.getScriptSaveVos().stream().map(ScriptSaveVo::getModel)
// .distinct().collect(Collectors.toList())) + "的装备共" + allotBillSaveVo.getAllotCount() + "件",
// null, ".", billId, 3,
// allotBillSaveVo.getSendUnitId(), 1, null, userIds);
TaskBto
taskBto2
=
new
TaskBto
(
StatusEnum
.
WAIT_UPLOAD_ALLOT_RECEIVE_FILE
.
id
,
"["
+
DeviceModelSort
.
unitNameToDisName
(
allotBillSaveVo
.
getReceiveUnit
())+
"]型号"
+
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
)
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
)
.
distinct
().
collect
(
Collectors
.
toList
()))
+
"的装备共"
+
allotBillSaveVo
.
getAllotCount
()
+
"件"
,
.
distinct
().
collect
(
Collectors
.
toList
()))
+
"的装备共"
+
allotBillSaveVo
.
getAllotCount
()
+
"件"
,
null
,
"."
,
billId
,
3
,
null
,
"."
,
billId
,
3
,
allotBillSaveVo
.
get
SendUnitId
(),
1
,
"country1"
,
userIds
);
allotBillSaveVo
.
get
ReceiveUnitId
(),
1
,
null
,
userIds
);
saveEntity
=
taskService
.
start
(
taskBto2
);
saveEntity
=
taskService
.
start
(
taskBto2
);
}
}
//从草稿发起
//从草稿发起
...
@@ -284,7 +294,7 @@ public class AllotBillController {
...
@@ -284,7 +294,7 @@ public class AllotBillController {
TaskBto
taskBto
=
taskService
.
get
(
allotBillSaveVo
.
getTaskId
());
TaskBto
taskBto
=
taskService
.
get
(
allotBillSaveVo
.
getTaskId
());
// taskBto.setTitle("["+allotBillSaveVo.getReceiveUnit().substring(0,3) + "]型号" + StringSplitUtil.stringListToString(allotBillSaveVo.getScriptSaveVos().stream().map(ScriptSaveVo::getModel).distinct().collect(Collectors.toList())) + "的装备共" + allotBillSaveVo.getAllotCount() + "件");
// taskBto.setTitle("["+allotBillSaveVo.getReceiveUnit().substring(0,3) + "]型号" + StringSplitUtil.stringListToString(allotBillSaveVo.getScriptSaveVos().stream().map(ScriptSaveVo::getModel).distinct().collect(Collectors.toList())) + "的装备共" + allotBillSaveVo.getAllotCount() + "件");
taskBto
.
setTitle
(
"["
+
DeviceModelSort
.
unitNameToDisName
(
allotBillSaveVo
.
getReceiveUnit
())
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"的装备共"
+
allotBillSaveVo
.
getAllotCount
()
+
"件"
);
taskBto
.
setTitle
(
"["
+
DeviceModelSort
.
unitNameToDisName
(
allotBillSaveVo
.
getReceiveUnit
())
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"的装备共"
+
allotBillSaveVo
.
getAllotCount
()
+
"件"
);
taskBto
.
setCustomInfo
(
"country1"
);
//
taskBto.setCustomInfo("country1");
//添加当前操作人为涉及人员
//添加当前操作人为涉及人员
TaskBto
taskBto1
=
taskService
.
addInvolveUser
(
taskBto
,
userId
);
TaskBto
taskBto1
=
taskService
.
addInvolveUser
(
taskBto
,
userId
);
//推动任务到配发中状态
//推动任务到配发中状态
...
@@ -379,14 +389,14 @@ public class AllotBillController {
...
@@ -379,14 +389,14 @@ public class AllotBillController {
//发送阅知信息
//发送阅知信息
List
<
Integer
>
idList
=
userPublicService
.
findOtherUser
(
userId
);
List
<
Integer
>
idList
=
userPublicService
.
findOtherUser
(
userId
);
//纵向配发阅知要发给收件单位的人
//纵向配发阅知要发给收件单位的人
if
(
allotBillSaveVo
.
getAllotType
()
==
1
)
{
//
if (allotBillSaveVo.getAllotType() == 1) {
// idList.addAll(userDao.findAllByUnitsId(userPublicService.findUnitIdByName(allotBillEntity.getReceiveUnit())).stream()
// idList.addAll(userDao.findAllByUnitsId(userPublicService.findUnitIdByName(allotBillEntity.getReceiveUnit())).stream()
// .map(User::getUserId)
// .map(User::getUserId)
// .collect(Collectors.toList()));
// .collect(Collectors.toList()));
idList
.
addAll
(
userDao
.
findAllByUnitsId
(
allotBillSaveVo
.
getReceiveUnitId
()).
stream
()
idList
.
addAll
(
userDao
.
findAllByUnitsId
(
allotBillSaveVo
.
getReceiveUnitId
()).
stream
()
.
map
(
User:
:
getUserId
)
.
map
(
User:
:
getUserId
)
.
collect
(
Collectors
.
toList
()));
.
collect
(
Collectors
.
toList
()));
}
//
}
//给被选签发人推阅知
//给被选签发人推阅知
// if (allotBillSaveVo.getSendUserbId() != null) {
// if (allotBillSaveVo.getSendUserbId() != null) {
// List<Integer> idList1 = new ArrayList<>();
// List<Integer> idList1 = new ArrayList<>();
...
...
dev-repair/src/main/java/com/tykj/dev/device/repair/controller/RepairController.java
浏览文件 @
34aeeb4f
...
@@ -367,7 +367,7 @@ public class RepairController {
...
@@ -367,7 +367,7 @@ public class RepairController {
if
(
repairBillSaveVo
.
getScriptSaveVos
()
!=
null
)
{
if
(
repairBillSaveVo
.
getScriptSaveVos
()
!=
null
)
{
deviceRepairSendBillEntity
.
setScriptJson
(
JacksonUtil
.
toJSon
(
repairBillSaveVo
.
getScriptSaveVos
()));
deviceRepairSendBillEntity
.
setScriptJson
(
JacksonUtil
.
toJSon
(
repairBillSaveVo
.
getScriptSaveVos
()));
}
}
//如果当前为省向国家发起的
//如果当前为省向国家发起的
省直属 level=1 type = 2
if
(
level
==
1
&&
units
.
getType
()
==
1
)
{
if
(
level
==
1
&&
units
.
getType
()
==
1
)
{
repairBill
.
setRepairStatus
(
4
);
//维修中
repairBill
.
setRepairStatus
(
4
);
//维修中
deviceRepairSendBillEntity
.
setRepairStatus
(
5
);
//维修中
deviceRepairSendBillEntity
.
setRepairStatus
(
5
);
//维修中
...
@@ -596,7 +596,7 @@ public class RepairController {
...
@@ -596,7 +596,7 @@ public class RepairController {
deviceRepairDetailService
.
save
(
repairDetail
);
deviceRepairDetailService
.
save
(
repairDetail
);
}
}
//如果当前为省像国家发起的
//如果当前为省像国家发起的
if
(
level
==
1
)
{
if
(
level
==
1
&&
units1
.
getType
()
==
1
)
{
deviceLibraryEntity
.
setLifeStatus
(
4
);
deviceLibraryEntity
.
setLifeStatus
(
4
);
deviceLibraryEntity
.
setLocationUnit
(
repairBillSaveVo
.
getReceiveUnit
());
deviceLibraryEntity
.
setLocationUnit
(
repairBillSaveVo
.
getReceiveUnit
());
deviceLibraryEntity
.
setStorageLocationId
(
0
);
deviceLibraryEntity
.
setStorageLocationId
(
0
);
...
@@ -623,7 +623,7 @@ public class RepairController {
...
@@ -623,7 +623,7 @@ public class RepairController {
String
deviceIdDetail
=
deviceRepairSendBillEntity
.
getRepairDeviceCheckDetail
();
String
deviceIdDetail
=
deviceRepairSendBillEntity
.
getRepairDeviceCheckDetail
();
List
<
Integer
>
idList
=
StringSplitUtil
.
split
(
deviceIdDetail
);
List
<
Integer
>
idList
=
StringSplitUtil
.
split
(
deviceIdDetail
);
//如果当前为省,改变装备的所在为中办
//如果当前为省,改变装备的所在为中办
if
(
level
==
1
)
{
if
(
level
==
1
&&
units1
.
getType
()
==
1
)
{
//获取当前业务维修详情 记录
//获取当前业务维修详情 记录
List
<
RepairDetail
>
repairDetailEntities
=
deviceRepairDetailService
.
findByBillId
(
repairBill
.
getId
());
List
<
RepairDetail
>
repairDetailEntities
=
deviceRepairDetailService
.
findByBillId
(
repairBill
.
getId
());
//改变维修详情装备所在单位为中办,状态为维修中
//改变维修详情装备所在单位为中办,状态为维修中
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论