Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
b7e37ca3
提交
b7e37ca3
authored
4月 12, 2021
作者:
邓砥奕
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更新
上级
b0e821ca
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
76 行增加
和
14 行删除
+76
-14
AllotBillController.java
...tykj/dev/device/allot/controller/AllotBillController.java
+3
-1
BackController.java
.../com/tykj/dev/device/allot/controller/BackController.java
+3
-1
StringSplitUtil.java
...rc/main/java/com/tykj/dev/misc/utils/StringSplitUtil.java
+13
-11
RepairController.java
...m/tykj/dev/device/repair/controller/RepairController.java
+27
-1
FileUploadVo.java
...a/com/tykj/dev/device/repair/subject/vo/FileUploadVo.java
+6
-0
FileVo.java
...in/java/com/tykj/dev/device/repair/subject/vo/FileVo.java
+3
-0
BusinessTypeVo.java
...a/com/tykj/dev/device/task/subject/vo/BusinessTypeVo.java
+21
-0
没有找到文件。
dev-allot/src/main/java/com/tykj/dev/device/allot/controller/AllotBillController.java
浏览文件 @
b7e37ca3
...
@@ -149,7 +149,9 @@ public class AllotBillController {
...
@@ -149,7 +149,9 @@ public class AllotBillController {
@PostMapping
(
value
=
"/addAllotBill"
)
@PostMapping
(
value
=
"/addAllotBill"
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
ResponseEntity
addAllotBill
(
@RequestBody
@Validated
AllotBillSaveVo
allotBillSaveVo
)
{
public
ResponseEntity
addAllotBill
(
@RequestBody
@Validated
AllotBillSaveVo
allotBillSaveVo
)
{
deviceLibraryService
.
isInStockOrWaitRetired
(
StringSplitUtil
.
split
(
allotBillSaveVo
.
getAllotCheckDetail
()));
if
(
allotBillSaveVo
.
getAllotCheckDetail
()!=
null
&&
allotBillSaveVo
.
getAllotCheckDetail
().
length
()>
0
)
{
deviceLibraryService
.
isInStockOrWaitRetired
(
StringSplitUtil
.
split
(
allotBillSaveVo
.
getAllotCheckDetail
()));
}
//1.添加配发单
//1.添加配发单
AllotBill
a
=
allotBillSaveVo
.
toDo
();
AllotBill
a
=
allotBillSaveVo
.
toDo
();
a
.
setSendUseraId
(
userUtils
.
getCurrentUserId
());
a
.
setSendUseraId
(
userUtils
.
getCurrentUserId
());
...
...
dev-allot/src/main/java/com/tykj/dev/device/allot/controller/BackController.java
浏览文件 @
b7e37ca3
...
@@ -88,7 +88,9 @@ public class BackController {
...
@@ -88,7 +88,9 @@ public class BackController {
@PostMapping
(
value
=
"/addBackBill"
)
@PostMapping
(
value
=
"/addBackBill"
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
ResponseEntity
addBackBill
(
@RequestBody
@Validated
AllotBillSaveVo
allotBillSaveVo
)
{
public
ResponseEntity
addBackBill
(
@RequestBody
@Validated
AllotBillSaveVo
allotBillSaveVo
)
{
deviceLibraryService
.
isInStockOrWaitRetired
(
StringSplitUtil
.
split
(
allotBillSaveVo
.
getAllotCheckDetail
()));
if
(
allotBillSaveVo
.
getAllotCheckDetail
()!=
null
&&
allotBillSaveVo
.
getAllotCheckDetail
().
length
()>
0
)
{
deviceLibraryService
.
isInStockOrWaitRetired
(
StringSplitUtil
.
split
(
allotBillSaveVo
.
getAllotCheckDetail
()));
}
//1.添加配发单
//1.添加配发单
AllotBackBill
a
=
allotBillSaveVo
.
toBackDo
();
AllotBackBill
a
=
allotBillSaveVo
.
toBackDo
();
a
.
setSendUseraId
(
userUtils
.
getCurrentUserId
());
a
.
setSendUseraId
(
userUtils
.
getCurrentUserId
());
...
...
dev-misc/src/main/java/com/tykj/dev/misc/utils/StringSplitUtil.java
浏览文件 @
b7e37ca3
...
@@ -17,17 +17,19 @@ public class StringSplitUtil {
...
@@ -17,17 +17,19 @@ public class StringSplitUtil {
*/
*/
public
static
List
<
Integer
>
split
(
String
s
)
{
public
static
List
<
Integer
>
split
(
String
s
)
{
List
<
Integer
>
list
=
new
ArrayList
<>();
List
<
Integer
>
list
=
new
ArrayList
<>();
//分隔开始的s标识符
if
(
s
!=
null
&&
s
.
length
()>
0
)
{
if
(
s
.
charAt
(
0
)
==
's'
)
{
//分隔开始的s标识符
s
=
s
.
substring
(
1
);
if
(
s
.
charAt
(
0
)
==
's'
)
{
}
s
=
s
.
substring
(
1
);
//按分隔符x分隔
}
String
[]
strings
=
s
.
split
(
"x"
);
//按分隔符x分隔
//遍历获取id\
String
[]
strings
=
s
.
split
(
"x"
);
if
(
strings
.
length
>
0
)
{
//遍历获取id\
for
(
String
str
:
strings
)
{
if
(
strings
.
length
>
0
)
{
if
(
str
.
length
()
>=
2
&&
"1"
.
equals
(
str
.
substring
(
str
.
length
()
-
1
)))
{
for
(
String
str
:
strings
)
{
list
.
add
(
Integer
.
parseInt
(
str
.
substring
(
0
,
str
.
length
()
-
1
)));
if
(
str
.
length
()
>=
2
&&
"1"
.
equals
(
str
.
substring
(
str
.
length
()
-
1
)))
{
list
.
add
(
Integer
.
parseInt
(
str
.
substring
(
0
,
str
.
length
()
-
1
)));
}
}
}
}
}
}
}
...
...
dev-repair/src/main/java/com/tykj/dev/device/repair/controller/RepairController.java
浏览文件 @
b7e37ca3
...
@@ -491,7 +491,9 @@ public class RepairController {
...
@@ -491,7 +491,9 @@ public class RepairController {
List
<
FileVo
>
fileVoList
=
new
ArrayList
<>();
List
<
FileVo
>
fileVoList
=
new
ArrayList
<>();
//更新维修单和送修单
//更新维修单和送修单
repairBill
.
setRepairStatus
(
4
);
repairBill
.
setRepairStatus
(
4
);
repairBill
.
setRepairUserB
(
userPublicService
.
getOne
(
repairReceiveVo
.
getReceiveUserbId
()).
getName
());
if
(
repairReceiveVo
.
getReceiveUserbId
()!=
null
)
{
repairBill
.
setRepairUserB
(
userPublicService
.
getOne
(
repairReceiveVo
.
getReceiveUserbId
()).
getName
());
}
if
(
repairReceiveVo
.
getStartUserbId
()!=
null
){
if
(
repairReceiveVo
.
getStartUserbId
()!=
null
){
repairSendBill
.
setStartUserbId
(
repairReceiveVo
.
getStartUserbId
());
repairSendBill
.
setStartUserbId
(
repairReceiveVo
.
getStartUserbId
());
repairSendBill
.
setAgent
(
userPublicService
.
getOne
(
repairReceiveVo
.
getStartUserbId
()).
getName
());
repairSendBill
.
setAgent
(
userPublicService
.
getOne
(
repairReceiveVo
.
getStartUserbId
()).
getName
());
...
@@ -595,6 +597,7 @@ public class RepairController {
...
@@ -595,6 +597,7 @@ public class RepairController {
taskService
.
moveToArchive
(
taskBto
);
taskService
.
moveToArchive
(
taskBto
);
}
}
else
{
else
{
RepairBill
repairBill
=
deviceRepairBillService
.
getOne
(
taskBto
.
getBillId
());
RepairSendBill
repairSendBill
=
deviceRepairSendBillDao
.
findByDeviceRepairBillId
(
taskBto
.
getBillId
());
RepairSendBill
repairSendBill
=
deviceRepairSendBillDao
.
findByDeviceRepairBillId
(
taskBto
.
getBillId
());
List
<
Integer
>
ids
=
userPublicService
.
findOtherUser
(
userId
);
List
<
Integer
>
ids
=
userPublicService
.
findOtherUser
(
userId
);
ids
.
addAll
(
userDao
.
findAllByUnitsId
(
userPublicService
.
findUnitIdByName
(
repairSendBill
.
getSendUnit
())).
stream
()
ids
.
addAll
(
userDao
.
findAllByUnitsId
(
userPublicService
.
findUnitIdByName
(
repairSendBill
.
getSendUnit
())).
stream
()
...
@@ -614,6 +617,21 @@ public class RepairController {
...
@@ -614,6 +617,21 @@ public class RepairController {
});
});
repairSendBill
.
setReceiveFiles
(
FilesUtil
.
stringFileToList
(
fileUploadVo
.
getReceiveFiles
()));
repairSendBill
.
setReceiveFiles
(
FilesUtil
.
stringFileToList
(
fileUploadVo
.
getReceiveFiles
()));
}
}
if
(
fileUploadVo
.
getStartUserbId
()!=
null
){
String
s
=
userPublicService
.
getOne
(
fileUploadVo
.
getStartUserbId
()).
getName
();
repairBill
.
setStartUserB
(
s
);
repairSendBill
.
setStartUserbId
(
fileUploadVo
.
getStartUserbId
());
repairSendBill
.
setAgent
(
s
);
MessageBto
messageBto1
=
new
MessageBto
(
taskBto
.
getId
(),
taskBto
.
getBusinessType
(),
"被选为签发人"
,
Collections
.
singletonList
(
fileUploadVo
.
getStartUserbId
()),
1
);
messageService
.
add
(
messageBto1
);
}
if
(
fileUploadVo
.
getRepairUserbId
()!=
null
){
repairSendBill
.
setRepairUserbId
(
fileUploadVo
.
getRepairUserbId
());
repairBill
.
setRepairUserB
(
userPublicService
.
getOne
(
fileUploadVo
.
getRepairUserbId
()).
getName
());
MessageBto
messageBto2
=
new
MessageBto
(
taskBto
.
getId
(),
taskBto
.
getBusinessType
(),
"被选为经办人"
,
Collections
.
singletonList
(
fileUploadVo
.
getRepairUserbId
()),
1
);
messageService
.
add
(
messageBto2
);
}
deviceRepairBillService
.
update
(
repairBill
);
deviceRepairSendBillService
.
update
(
repairSendBill
);
deviceRepairSendBillService
.
update
(
repairSendBill
);
//添加装备日志
//添加装备日志
List
<
Integer
>
deviceIds
=
StringSplitUtil
.
split
(
repairSendBill
.
getRepairDeviceCheckDetail
());
List
<
Integer
>
deviceIds
=
StringSplitUtil
.
split
(
repairSendBill
.
getRepairDeviceCheckDetail
());
...
@@ -1670,6 +1688,14 @@ public class RepairController {
...
@@ -1670,6 +1688,14 @@ public class RepairController {
//保存账单
//保存账单
repairSendBill
.
setSendFiles
(
FilesUtil
.
stringFileToList
(
fileVo
.
getSendFiles
()));
repairSendBill
.
setSendFiles
(
FilesUtil
.
stringFileToList
(
fileVo
.
getSendFiles
()));
List
<
Integer
>
idList
=
new
ArrayList
<>();
List
<
Integer
>
idList
=
new
ArrayList
<>();
if
(
fileVo
.
getStartUserbId
()!=
null
){
String
startUserB
=
userPublicService
.
getOne
(
fileVo
.
getStartUserbId
()).
getName
();
repairBill
.
setStartUserB
(
startUserB
);
repairSendBill
.
setStartUserbId
(
fileVo
.
getStartUserbId
());
repairSendBill
.
setAgent
(
startUserB
);
MessageBto
messageBto1
=
new
MessageBto
(
taskBto
.
getId
(),
taskBto
.
getBusinessType
(),
"被选为签发人"
,
Collections
.
singletonList
(
fileVo
.
getStartUserbId
()),
1
);
messageService
.
add
(
messageBto1
);
}
if
(
fileVo
.
getReceiveUseraId
()!=
null
)
{
if
(
fileVo
.
getReceiveUseraId
()!=
null
)
{
repairBill
.
setRepairUserA
(
userPublicService
.
getOne
(
fileVo
.
getReceiveUseraId
()).
getName
());
repairBill
.
setRepairUserA
(
userPublicService
.
getOne
(
fileVo
.
getReceiveUseraId
()).
getName
());
repairSendBill
.
setRepairUseraId
(
fileVo
.
getReceiveUseraId
());
repairSendBill
.
setRepairUseraId
(
fileVo
.
getReceiveUseraId
());
...
...
dev-repair/src/main/java/com/tykj/dev/device/repair/subject/vo/FileUploadVo.java
浏览文件 @
b7e37ca3
...
@@ -35,4 +35,10 @@ public class FileUploadVo {
...
@@ -35,4 +35,10 @@ public class FileUploadVo {
@ApiModelProperty
(
value
=
"接收方配发单"
)
@ApiModelProperty
(
value
=
"接收方配发单"
)
private
List
<
FileRet
>
receiveFiles
;
private
List
<
FileRet
>
receiveFiles
;
@ApiModelProperty
(
value
=
"接收单位B岗"
)
private
Integer
startUserbId
;
@ApiModelProperty
(
value
=
"接收单位B岗"
)
private
Integer
repairUserbId
;
}
}
dev-repair/src/main/java/com/tykj/dev/device/repair/subject/vo/FileVo.java
浏览文件 @
b7e37ca3
...
@@ -33,4 +33,7 @@ public class FileVo {
...
@@ -33,4 +33,7 @@ public class FileVo {
@ApiModelProperty
(
value
=
"接收单位B岗"
)
@ApiModelProperty
(
value
=
"接收单位B岗"
)
private
Integer
receiveUserbId
;
private
Integer
receiveUserbId
;
@ApiModelProperty
(
value
=
"发件单位B岗"
)
private
Integer
startUserbId
;
}
}
dev-task/src/main/java/com/tykj/dev/device/task/subject/vo/BusinessTypeVo.java
0 → 100644
浏览文件 @
b7e37ca3
package
com
.
tykj
.
dev
.
device
.
task
.
subject
.
vo
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
/**
* @author dengdiyi
*/
@Data
@AllArgsConstructor
@ApiModel
(
"业务类型返回类"
)
public
class
BusinessTypeVo
{
private
Integer
businessType
;
@ApiModelProperty
(
value
=
"业务类型名称"
)
private
String
businessTypeName
;
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论