Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
ad658b43
提交
ad658b43
authored
1月 07, 2021
作者:
邓砥奕
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改配发
上级
87cfc741
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
48 行增加
和
5 行删除
+48
-5
AllotBillController.java
...tykj/dev/device/allot/controller/AllotBillController.java
+38
-4
AllotBill.java
...va/com/tykj/dev/device/allot/subject/domin/AllotBill.java
+6
-1
StorageBillController.java
.../dev/device/storage/controller/StorageBillController.java
+1
-0
StorageBillDetailVo.java
...kj/dev/device/storage/subject/vo/StorageBillDetailVo.java
+3
-0
没有找到文件。
dev-allot/src/main/java/com/tykj/dev/device/allot/controller/AllotBillController.java
浏览文件 @
ad658b43
...
...
@@ -27,6 +27,7 @@ import com.tykj.dev.misc.base.BusinessEnum;
import
com.tykj.dev.misc.base.ResultObj
;
import
com.tykj.dev.misc.base.StatusEnum
;
import
com.tykj.dev.misc.utils.Snowflake
;
import
com.tykj.dev.misc.utils.StringSplitUtil
;
import
com.tykj.dev.misc.utils.TimestampUtil
;
import
com.tykj.dev.rfid.service.InputOutputDeviceService
;
import
com.tykj.dev.socket.MyWebSocket
;
...
...
@@ -381,13 +382,26 @@ public class AllotBillController {
//第一次保存
if
(
allotBillSaveVo
.
getTaskId
()==
null
){
//保存入库单
Integer
userId
=
userUtils
.
getCurrentUserId
();
List
<
Integer
>
userIds
=
new
ArrayList
<>();
userIds
.
add
(
userId
);
AllotBill
allotBill1
=
allotBillSaveVo
.
toDo
();
allotBill1
.
setAllotStatus
(
0
);
AllotBill
allotBill
=
allotBillService
.
addEntity
(
allotBill1
);
//发起任务
return
null
;
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
ALLOT_DRAFT
.
id
,
"配发业务"
,
null
,
"."
,
allotBill
.
getId
(),
3
,
userUtils
.
getCurrentUnitId
(),
1
,
null
,
userIds
);
taskService
.
start
(
taskBto
);
return
ResponseEntity
.
ok
(
"保存成功"
);
}
else
{
//更新账单
return
null
;
TaskBto
taskBto
=
taskService
.
get
(
allotBillSaveVo
.
getTaskId
());
AllotBill
allotBill
=
allotBillService
.
getOne
(
taskBto
.
getBillId
());
AllotBill
allotBill1
=
allotBillSaveVo
.
toDo
();
allotBill1
.
setAllotStatus
(
0
);
allotBill1
.
setId
(
allotBill
.
getId
());
allotBillService
.
update
(
allotBill1
);
return
ResponseEntity
.
ok
(
"更新成功"
);
}
}
...
...
@@ -405,6 +419,26 @@ public class AllotBillController {
@PostMapping
(
value
=
"/selectAllotDetail/{taskId}"
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
ResponseEntity
selectAllotDetail
(
@PathVariable
(
"taskId"
)
int
taskId
)
{
return
null
;
TaskBto
taskBto
=
taskService
.
get
(
taskId
);
AllotBill
allotBillEntity
=
allotBillService
.
getOne
(
taskBto
.
getBillId
());
if
(
allotBillEntity
.
getSendUseraId
()
!=
null
)
{
allotBillEntity
.
setSenderUserA
(
userPublicService
.
getOne
(
allotBillEntity
.
getSendUseraId
()).
getName
());
}
if
(
allotBillEntity
.
getSendUserbId
()
!=
null
)
{
allotBillEntity
.
setSenderUserB
(
userPublicService
.
getOne
(
allotBillEntity
.
getSendUserbId
()).
getName
());
}
if
(
allotBillEntity
.
getReceiveUseraId
()
!=
null
)
{
allotBillEntity
.
setReceiveUserA
(
userPublicService
.
getOne
(
allotBillEntity
.
getReceiveUseraId
()).
getName
());
}
if
(
allotBillEntity
.
getReceiveUserbId
()
!=
null
)
{
allotBillEntity
.
setReceiveUserB
(
userPublicService
.
getOne
(
allotBillEntity
.
getReceiveUserbId
()).
getName
());
}
if
(
allotBillEntity
.
getAllotCheckDetail
()!=
null
){
List
<
Integer
>
ids
=
StringSplitUtil
.
split
(
allotBillEntity
.
getAllotCheckDetail
());
List
<
DeviceLibrary
>
deviceLibraryList
=
new
ArrayList
<>();
ids
.
forEach
(
integer
->
deviceLibraryList
.
add
(
deviceLibraryService
.
getOne
(
integer
)));
allotBillEntity
.
setDeviceLibraries
(
deviceLibraryList
);
}
return
ResponseEntity
.
ok
(
allotBillEntity
);
}
}
dev-allot/src/main/java/com/tykj/dev/device/allot/subject/domin/AllotBill.java
浏览文件 @
ad658b43
package
com
.
tykj
.
dev
.
device
.
allot
.
subject
.
domin
;
import
com.tykj.dev.device.library.subject.domin.DeviceLibrary
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
...
...
@@ -13,6 +14,7 @@ import org.springframework.data.jpa.domain.support.AuditingEntityListener;
import
javax.persistence.*
;
import
java.util.Date
;
import
java.util.List
;
/**
* entity class for allot_bill
...
...
@@ -131,7 +133,7 @@ public class AllotBill {
/**
* 配发状态(0:配发待审核,1:配发审核失败,2:配发中,3:配发接收待审核,4:配发接收审核失败,5:配发完成)
*/
@ApiModelProperty
(
value
=
"配发状态(0:
配发待审核
,1:配发审核失败,2:配发中,3:配发接收待审核,4:配发接收审核失败,5:配发完成)"
)
@ApiModelProperty
(
value
=
"配发状态(0:
草稿
,1:配发审核失败,2:配发中,3:配发接收待审核,4:配发接收审核失败,5:配发完成)"
)
private
Integer
allotStatus
;
/**
* 创建用户id
...
...
@@ -229,4 +231,7 @@ public class AllotBill {
@ApiModelProperty
(
value
=
"区块链记录id"
)
private
String
recordId
;
@Transient
private
List
<
DeviceLibrary
>
deviceLibraries
;
}
dev-storage/src/main/java/com/tykj/dev/device/storage/controller/StorageBillController.java
浏览文件 @
ad658b43
...
...
@@ -360,6 +360,7 @@ public class StorageBillController {
storageBillEntity
.
setReceiveUserA
(
userPublicService
.
getOne
(
storageBillEntity
.
getReceiveUseraId
()).
getName
());
storageBillEntity
.
setReceiveUserB
(
userPublicService
.
getOne
(
storageBillEntity
.
getReceiveUserbId
()).
getName
());
storageBillEntity
.
setStorageBillDetailVos
(
JacksonUtil
.
readValueToList
(
storageBillEntity
.
getPackingDetail
(),
StorageBillDetailVo
.
class
));
storageBillEntity
.
getStorageBillDetailVos
().
forEach
(
storageBillDetailVo
->
storageBillDetailVo
.
setPackingLibrary
(
packingLibraryService
.
getOne
(
storageBillDetailVo
.
getPackingId
())));
return
ResponseEntity
.
ok
(
storageBillEntity
);
}
}
dev-storage/src/main/java/com/tykj/dev/device/storage/subject/vo/StorageBillDetailVo.java
浏览文件 @
ad658b43
package
com
.
tykj
.
dev
.
device
.
storage
.
subject
.
vo
;
import
com.tykj.dev.device.packing.subject.domin.PackingLibrary
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
...
...
@@ -21,4 +22,6 @@ public class StorageBillDetailVo {
private
Integer
storageCount
;
@ApiModelProperty
(
value
=
"序列号区间"
)
private
String
seqInterval
;
@ApiModelProperty
(
value
=
"列装装备"
)
private
PackingLibrary
packingLibrary
;
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论