Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
f7ccbf2b
提交
f7ccbf2b
authored
11月 16, 2021
作者:
zhoushaopan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(装备模块,配套设备库模块):…
feat(装备模块,配套设备库模块): 入库新增存放位置的id,修改装备存放位置的id,根据装备的存放位置查询装备,入库配套设备新增存放位置的id,修改配套装备存放位置的id,根据配套装备的存放位置查询装备, 入库新增存放位置的id,修改装备存放位置的id,根据装备的存放位置查询装备,入库配套设备新增存放位置的id,修改配套装备存放位置的id,根据配套装备的存放位置查询装备,
上级
a52d1735
全部展开
显示空白字符变更
内嵌
并排
正在显示
20 个修改的文件
包含
121 行增加
和
46 行删除
+121
-46
DeviceLibraryController.java
...ev/device/library/controller/DeviceLibraryController.java
+9
-0
DeviceLibraryDao.java
.../tykj/dev/device/library/repository/DeviceLibraryDao.java
+2
-2
DeviceLibraryServiceImpl.java
...device/library/service/impl/DeviceLibraryServiceImpl.java
+4
-2
DeviceLibrary.java
.../tykj/dev/device/library/subject/domin/DeviceLibrary.java
+3
-0
DeviceLibrarySaveVo.java
...kj/dev/device/library/subject/vo/DeviceLibrarySaveVo.java
+3
-0
DeviceLibrarySelectVo.java
.../dev/device/library/subject/vo/DeviceLibrarySelectVo.java
+3
-0
DeviceLibraryUpdateVo.java
.../dev/device/library/subject/vo/DeviceLibraryUpdateVo.java
+3
-0
DeviceStorageLocation.java
.../dev/device/library/subject/vo/DeviceStorageLocation.java
+3
-0
UpdateStorageLocationVo.java
...ev/device/library/subject/vo/UpdateStorageLocationVo.java
+3
-0
MatchingDeviceController.java
.../device/matching/controller/MatchingDeviceController.java
+10
-0
MatchingDeviceLibraryServiceImpl.java
...tching/service/impl/MatchingDeviceLibraryServiceImpl.java
+2
-0
MatchingDeviceLibrary.java
.../device/matching/subject/domin/MatchingDeviceLibrary.java
+6
-0
MatchingDeviceEditVo.java
.../dev/device/matching/subject/vo/MatchingDeviceEditVo.java
+6
-0
MatchingDeviceSaveVo.java
.../dev/device/matching/subject/vo/MatchingDeviceSaveVo.java
+6
-0
MatchingDeviceSelectVo.java
...ev/device/matching/subject/vo/MatchingDeviceSelectVo.java
+3
-0
StorageBillDetail.java
...tykj/dev/device/storage/subject/vo/StorageBillDetail.java
+2
-0
StorageBillDetailVo.java
...kj/dev/device/storage/subject/vo/StorageBillDetailVo.java
+8
-0
StorageBillSaveVo.java
...tykj/dev/device/storage/subject/vo/StorageBillSaveVo.java
+3
-0
DataInit.java
dev-union/src/main/java/com/tykj/dev/union/DataInit.java
+0
-0
RunController.java
...union/src/main/java/com/tykj/dev/union/RunController.java
+42
-42
没有找到文件。
dev-library/src/main/java/com/tykj/dev/device/library/controller/DeviceLibraryController.java
浏览文件 @
f7ccbf2b
...
@@ -782,6 +782,7 @@ public class DeviceLibraryController {
...
@@ -782,6 +782,7 @@ public class DeviceLibraryController {
DeviceLogDto
deviceLogDto
=
new
DeviceLogDto
(
deviceEditVo
.
getDeviceId
(),
"将存放位置改为"
+
libraryUpdateVo
.
getStorageLocation
(),
null
,
null
,
null
);
DeviceLogDto
deviceLogDto
=
new
DeviceLogDto
(
deviceEditVo
.
getDeviceId
(),
"将存放位置改为"
+
libraryUpdateVo
.
getStorageLocation
(),
null
,
null
,
null
);
deviceLogService
.
addLog
(
deviceLogDto
);
deviceLogService
.
addLog
(
deviceLogDto
);
deviceLibraryEntity
.
setStorageLocation
(
libraryUpdateVo
.
getStorageLocation
());
deviceLibraryEntity
.
setStorageLocation
(
libraryUpdateVo
.
getStorageLocation
());
deviceLibraryEntity
.
setStorageLocationId
(
libraryUpdateVo
.
getStorageLocationId
());
}
}
//add 备注
//add 备注
if
(
libraryUpdateVo
.
getRecord
()!=
null
&&
!
libraryUpdateVo
.
getRecord
().
equals
(
deviceLibraryEntity
.
getRecord
())){
if
(
libraryUpdateVo
.
getRecord
()!=
null
&&
!
libraryUpdateVo
.
getRecord
().
equals
(
deviceLibraryEntity
.
getRecord
())){
...
@@ -931,6 +932,7 @@ public class DeviceLibraryController {
...
@@ -931,6 +932,7 @@ public class DeviceLibraryController {
DeviceLibrary
deviceLibrary
=
deviceLibraryService
.
getOne
(
deviceStorageLocation
.
getDevId
());
DeviceLibrary
deviceLibrary
=
deviceLibraryService
.
getOne
(
deviceStorageLocation
.
getDevId
());
//添加修改存放装备位置
//添加修改存放装备位置
deviceLibrary
.
setStorageLocation
(
deviceStorageLocation
.
getStorageLocation
());
deviceLibrary
.
setStorageLocation
(
deviceStorageLocation
.
getStorageLocation
());
deviceLibrary
.
setStorageLocationId
(
deviceStorageLocation
.
getStorageLocationId
());
DeviceLogDto
deviceLogDto
=
new
DeviceLogDto
(
deviceStorageLocation
.
getDevId
(),
"将存放位置改为"
+
deviceStorageLocation
.
getStorageLocation
(),
null
,
null
,
null
);
DeviceLogDto
deviceLogDto
=
new
DeviceLogDto
(
deviceStorageLocation
.
getDevId
(),
"将存放位置改为"
+
deviceStorageLocation
.
getStorageLocation
(),
null
,
null
,
null
);
deviceLogService
.
addLog
(
deviceLogDto
);
deviceLogService
.
addLog
(
deviceLogDto
);
deviceLibraryService
.
update
(
deviceLibrary
);
deviceLibraryService
.
update
(
deviceLibrary
);
...
@@ -974,8 +976,15 @@ public class DeviceLibraryController {
...
@@ -974,8 +976,15 @@ public class DeviceLibraryController {
@ApiOperation
(
"入库修改试用装备的序列号"
)
@ApiOperation
(
"入库修改试用装备的序列号"
)
@PostMapping
(
"updateSeq"
)
@PostMapping
(
"updateSeq"
)
@CacheEvict
(
value
=
"devicesLibraryList"
,
key
=
"'device'"
,
allEntries
=
true
)
public
ResponseEntity
updateSeq
(
@RequestBody
List
<
DeviceForApplyVo
>
deviceForApplyVos
){
public
ResponseEntity
updateSeq
(
@RequestBody
List
<
DeviceForApplyVo
>
deviceForApplyVos
){
deviceLibraryService
.
updateSeqNumber
(
deviceForApplyVos
);
deviceLibraryService
.
updateSeqNumber
(
deviceForApplyVos
);
//异步去查询数据库
executor
.
execute
(
()->{
cacheLibraryService
.
getAllDeviceLibraryList
();
}
);
return
ResponseEntity
.
ok
(
"更新成功"
);
return
ResponseEntity
.
ok
(
"更新成功"
);
}
}
...
...
dev-library/src/main/java/com/tykj/dev/device/library/repository/DeviceLibraryDao.java
浏览文件 @
f7ccbf2b
...
@@ -225,8 +225,8 @@ public interface DeviceLibraryDao extends JpaRepository<DeviceLibrary, Integer>,
...
@@ -225,8 +225,8 @@ public interface DeviceLibraryDao extends JpaRepository<DeviceLibrary, Integer>,
@Transactional
@Transactional
@Modifying
@Modifying
@Query
(
"update DeviceLibrary o set o.storageLocation = :storageLocation where o.id in :deviceIds"
)
@Query
(
"update DeviceLibrary o set o.storageLocation = :storageLocation
,o.storageLocationId = :storageLocationId
where o.id in :deviceIds"
)
int
updateStorageLocation
(
@Param
(
"storageLocation"
)
String
storageLocation
,
int
updateStorageLocation
(
@Param
(
"storageLocation"
)
String
storageLocation
,
@Param
(
"storageLocationId"
)
Integer
storageLocationId
,
@Param
(
"deviceIds"
)
List
<
Integer
>
deviceIds
);
@Param
(
"deviceIds"
)
List
<
Integer
>
deviceIds
);
...
...
dev-library/src/main/java/com/tykj/dev/device/library/service/impl/DeviceLibraryServiceImpl.java
浏览文件 @
f7ccbf2b
...
@@ -236,6 +236,7 @@ public class DeviceLibraryServiceImpl implements DeviceLibraryService {
...
@@ -236,6 +236,7 @@ public class DeviceLibraryServiceImpl implements DeviceLibraryService {
d
.
setName
(
deviceLibrarySelectVo
.
getName
());
d
.
setName
(
deviceLibrarySelectVo
.
getName
());
d
.
setContent
(
deviceLibrarySelectVo
.
getContent
());
d
.
setContent
(
deviceLibrarySelectVo
.
getContent
());
d
.
setType
(
deviceLibrarySelectVo
.
getType
());
d
.
setType
(
deviceLibrarySelectVo
.
getType
());
d
.
setStorageLocationId
(
deviceLibrarySelectVo
.
getStorageLocationId
());
//获取所有的核心装备
//获取所有的核心装备
List
<
DeviceLibrary
>
libraryEntities
=
getCoreDevicePage
(
d
);
List
<
DeviceLibrary
>
libraryEntities
=
getCoreDevicePage
(
d
);
if
(
libraryEntities
.
size
()
>
0
)
{
if
(
libraryEntities
.
size
()
>
0
)
{
...
@@ -1156,7 +1157,8 @@ public class DeviceLibraryServiceImpl implements DeviceLibraryService {
...
@@ -1156,7 +1157,8 @@ public class DeviceLibraryServiceImpl implements DeviceLibraryService {
updateStorageLocationVo
.
getStorageLocation
(),
null
,
userId
);
updateStorageLocationVo
.
getStorageLocation
(),
null
,
userId
);
deviceLogDtos
.
add
(
deviceLogDto
);
deviceLogDtos
.
add
(
deviceLogDto
);
}});
}});
deviceLibraryDao
.
updateStorageLocation
(
updateStorageLocationVo
.
getStorageLocation
(),
deviceIds
);
deviceLibraryDao
.
updateStorageLocation
(
updateStorageLocationVo
.
getStorageLocation
(),
updateStorageLocationVo
.
getStorageLocationId
(),
deviceIds
);
}
else
{
}
else
{
throw
new
ApiException
(
"请选择要修改的装备"
);
throw
new
ApiException
(
"请选择要修改的装备"
);
}
}
...
@@ -1372,7 +1374,7 @@ public class DeviceLibraryServiceImpl implements DeviceLibraryService {
...
@@ -1372,7 +1374,7 @@ public class DeviceLibraryServiceImpl implements DeviceLibraryService {
predicateBuilder
.
in
(
"seqNumber"
,
DeviceSeqUtil
.
selectDeviceSeqs
(
deviceLibrarySelectVo
.
getSeqInterval
()));
predicateBuilder
.
in
(
"seqNumber"
,
DeviceSeqUtil
.
selectDeviceSeqs
(
deviceLibrarySelectVo
.
getSeqInterval
()));
}
}
//新增库房位置
//新增库房位置
predicateBuilder
.
eq
(
deviceLibrarySelectVo
.
getStorageLocation
()
!=
null
,
"storageLocation"
,
deviceLibrarySelectVo
.
getStorageLocation
());
predicateBuilder
.
eq
(
deviceLibrarySelectVo
.
getStorageLocation
Id
()
!=
null
,
"storageLocationId"
,
deviceLibrarySelectVo
.
getStorageLocationId
());
//新增装备的形态
//新增装备的形态
predicateBuilder
.
eq
(
deviceLibrarySelectVo
.
getType
()
!=
null
,
"type"
,
deviceLibrarySelectVo
.
getType
());
predicateBuilder
.
eq
(
deviceLibrarySelectVo
.
getType
()
!=
null
,
"type"
,
deviceLibrarySelectVo
.
getType
());
}
}
...
...
dev-library/src/main/java/com/tykj/dev/device/library/subject/domin/DeviceLibrary.java
浏览文件 @
f7ccbf2b
...
@@ -239,6 +239,9 @@ public class DeviceLibrary implements Serializable {
...
@@ -239,6 +239,9 @@ public class DeviceLibrary implements Serializable {
@ApiModelProperty
(
value
=
"装备存放位置"
,
notes
=
"默认是库房"
)
@ApiModelProperty
(
value
=
"装备存放位置"
,
notes
=
"默认是库房"
)
private
String
storageLocation
;
private
String
storageLocation
;
@ApiModelProperty
(
value
=
"装备存放位置Id"
,
notes
=
"默认是库房"
)
private
Integer
storageLocationId
;
@Transient
@Transient
private
List
<
DeviceLibrary
>
childs
=
new
ArrayList
<>();
private
List
<
DeviceLibrary
>
childs
=
new
ArrayList
<>();
...
...
dev-library/src/main/java/com/tykj/dev/device/library/subject/vo/DeviceLibrarySaveVo.java
浏览文件 @
f7ccbf2b
...
@@ -60,6 +60,9 @@ public class DeviceLibrarySaveVo {
...
@@ -60,6 +60,9 @@ public class DeviceLibrarySaveVo {
@ApiModelProperty
(
value
=
"装备存放位置"
,
notes
=
"默认是库房"
)
@ApiModelProperty
(
value
=
"装备存放位置"
,
notes
=
"默认是库房"
)
private
String
storageLocation
;
private
String
storageLocation
;
@ApiModelProperty
(
value
=
"装备存放位置的id"
,
notes
=
"默认是库房id"
)
private
Integer
storageLocationId
;
@ApiModelProperty
(
value
=
"是否是试用装备"
,
notes
=
"0 是正式 1 是测试"
)
@ApiModelProperty
(
value
=
"是否是试用装备"
,
notes
=
"0 是正式 1 是测试"
)
private
Integer
tryOutDevice
=
0
;
private
Integer
tryOutDevice
=
0
;
...
...
dev-library/src/main/java/com/tykj/dev/device/library/subject/vo/DeviceLibrarySelectVo.java
浏览文件 @
f7ccbf2b
...
@@ -123,6 +123,9 @@ public class DeviceLibrarySelectVo extends CustomPage {
...
@@ -123,6 +123,9 @@ public class DeviceLibrarySelectVo extends CustomPage {
@ApiModelProperty
(
value
=
"存储位置"
)
@ApiModelProperty
(
value
=
"存储位置"
)
private
String
storageLocation
;
private
String
storageLocation
;
@ApiModelProperty
(
value
=
"存储位置"
)
private
Integer
storageLocationId
;
@ApiModelProperty
(
value
=
"存储位置的模糊查询字段"
)
@ApiModelProperty
(
value
=
"存储位置的模糊查询字段"
)
private
String
storageLocationDim
;
private
String
storageLocationDim
;
...
...
dev-library/src/main/java/com/tykj/dev/device/library/subject/vo/DeviceLibraryUpdateVo.java
浏览文件 @
f7ccbf2b
...
@@ -48,6 +48,9 @@ public class DeviceLibraryUpdateVo {
...
@@ -48,6 +48,9 @@ public class DeviceLibraryUpdateVo {
@ApiModelProperty
(
"库存位置"
)
@ApiModelProperty
(
"库存位置"
)
private
String
storageLocation
;
private
String
storageLocation
;
@ApiModelProperty
(
"库存位置id"
)
private
Integer
storageLocationId
;
@ApiModelProperty
(
"备注"
)
@ApiModelProperty
(
"备注"
)
private
String
record
;
private
String
record
;
...
...
dev-library/src/main/java/com/tykj/dev/device/library/subject/vo/DeviceStorageLocation.java
浏览文件 @
f7ccbf2b
...
@@ -22,4 +22,7 @@ public class DeviceStorageLocation {
...
@@ -22,4 +22,7 @@ public class DeviceStorageLocation {
@ApiModelProperty
(
value
=
"库存位置"
)
@ApiModelProperty
(
value
=
"库存位置"
)
private
String
storageLocation
;
private
String
storageLocation
;
@ApiModelProperty
(
value
=
"库存位置id"
)
private
Integer
storageLocationId
;
}
}
dev-library/src/main/java/com/tykj/dev/device/library/subject/vo/UpdateStorageLocationVo.java
浏览文件 @
f7ccbf2b
...
@@ -21,4 +21,7 @@ public class UpdateStorageLocationVo {
...
@@ -21,4 +21,7 @@ public class UpdateStorageLocationVo {
@ApiModelProperty
(
value
=
"要修改的库房位置"
)
@ApiModelProperty
(
value
=
"要修改的库房位置"
)
private
String
storageLocation
;
private
String
storageLocation
;
@ApiModelProperty
(
value
=
"要修改的库房位置id"
)
private
Integer
storageLocationId
;
}
}
dev-matching/src/main/java/com/tykj/dev/device/matching/controller/MatchingDeviceController.java
浏览文件 @
f7ccbf2b
...
@@ -529,6 +529,16 @@ public class MatchingDeviceController {
...
@@ -529,6 +529,16 @@ public class MatchingDeviceController {
m
.
setDeviceId
(
0
);
m
.
setDeviceId
(
0
);
}
}
if
(
matchingDeviceEditVo
.
getMatchingDeviceStorageLocation
()
!=
null
&&
!
m
.
getMatchingDeviceStorageLocation
().
equals
(
matchingDeviceEditVo
.
getMatchingDeviceStorageLocation
()))
{
//添加设备日志 存放位置
String
remark
=
"将设备的存放位置改为"
+
matchingDeviceEditVo
.
getMatchingDeviceStorageLocation
();
DeviceLogDto
deviceLogDto
=
new
DeviceLogDto
(
1
,
matchingDeviceEditVo
.
getMatchingDeviceId
(),
remark
,
null
,
null
);
deviceLogService
.
addLog
(
deviceLogDto
);
m
.
setMatchingDeviceStorageLocation
(
m
.
getMatchingDeviceStorageLocation
());
m
.
setMatchingDeviceStorageLocationId
(
m
.
getMatchingDeviceStorageLocationId
());
}
matchingDeviceLibraryService
.
update
(
m
);
matchingDeviceLibraryService
.
update
(
m
);
return
ResponseEntity
.
ok
(
"修改成功"
);
return
ResponseEntity
.
ok
(
"修改成功"
);
}
}
...
...
dev-matching/src/main/java/com/tykj/dev/device/matching/service/impl/MatchingDeviceLibraryServiceImpl.java
浏览文件 @
f7ccbf2b
...
@@ -377,6 +377,8 @@ public class MatchingDeviceLibraryServiceImpl implements MatchingDeviceLibrarySe
...
@@ -377,6 +377,8 @@ public class MatchingDeviceLibraryServiceImpl implements MatchingDeviceLibrarySe
predicateBuilder
.
in
(
"rfidCardId"
,
""
);
predicateBuilder
.
in
(
"rfidCardId"
,
""
);
}
}
}
}
predicateBuilder
.
eq
(
matchingDeviceSelectVo
.
getMatchingDeviceStorageLocationId
()
!=
null
,
"matchingDeviceStorageLocationId"
,
matchingDeviceSelectVo
.
getMatchingDeviceStorageLocationId
());
return
predicateBuilder
;
return
predicateBuilder
;
}
}
}
}
dev-matching/src/main/java/com/tykj/dev/device/matching/subject/domin/MatchingDeviceLibrary.java
浏览文件 @
f7ccbf2b
...
@@ -136,6 +136,12 @@ public class MatchingDeviceLibrary {
...
@@ -136,6 +136,12 @@ public class MatchingDeviceLibrary {
@Transient
@Transient
private
String
deviceSeqNumber
;
private
String
deviceSeqNumber
;
@ApiModelProperty
(
value
=
"存放位置"
)
private
String
matchingDeviceStorageLocation
;
@ApiModelProperty
(
value
=
"存放位置id"
)
private
Integer
matchingDeviceStorageLocationId
;
public
MatchingDeviceLibrary
setConfigName
(){
public
MatchingDeviceLibrary
setConfigName
(){
ConfigCache
configCache
=
SpringUtils
.
getBean
(
"initConfigCache"
);
ConfigCache
configCache
=
SpringUtils
.
getBean
(
"initConfigCache"
);
...
...
dev-matching/src/main/java/com/tykj/dev/device/matching/subject/vo/MatchingDeviceEditVo.java
浏览文件 @
f7ccbf2b
...
@@ -62,4 +62,10 @@ public class MatchingDeviceEditVo {
...
@@ -62,4 +62,10 @@ public class MatchingDeviceEditVo {
@ApiModelProperty
(
value
=
"删除相关装备id"
)
@ApiModelProperty
(
value
=
"删除相关装备id"
)
private
Integer
deleteDeviceId
;
private
Integer
deleteDeviceId
;
@ApiModelProperty
(
value
=
"存放位置"
)
private
String
matchingDeviceStorageLocation
;
@ApiModelProperty
(
value
=
"存放位置id"
)
private
Integer
matchingDeviceStorageLocationId
;
}
}
dev-matching/src/main/java/com/tykj/dev/device/matching/subject/vo/MatchingDeviceSaveVo.java
浏览文件 @
f7ccbf2b
...
@@ -58,6 +58,12 @@ public class MatchingDeviceSaveVo {
...
@@ -58,6 +58,12 @@ public class MatchingDeviceSaveVo {
@ApiModelProperty
(
value
=
"序列号集合"
)
@ApiModelProperty
(
value
=
"序列号集合"
)
private
List
<
String
>
seqList
;
private
List
<
String
>
seqList
;
@ApiModelProperty
(
value
=
"存放位置"
)
private
String
matchingDeviceStorageLocation
;
@ApiModelProperty
(
value
=
"存放位置id"
)
private
Integer
matchingDeviceStorageLocationId
;
public
MatchingDeviceLibrary
toDo
()
{
public
MatchingDeviceLibrary
toDo
()
{
MatchingDeviceLibrary
matchingDeviceLibraryEntity
=
new
MatchingDeviceLibrary
();
MatchingDeviceLibrary
matchingDeviceLibraryEntity
=
new
MatchingDeviceLibrary
();
BeanUtils
.
copyProperties
(
this
,
matchingDeviceLibraryEntity
);
BeanUtils
.
copyProperties
(
this
,
matchingDeviceLibraryEntity
);
...
...
dev-matching/src/main/java/com/tykj/dev/device/matching/subject/vo/MatchingDeviceSelectVo.java
浏览文件 @
f7ccbf2b
...
@@ -33,6 +33,9 @@ public class MatchingDeviceSelectVo extends CustomPage {
...
@@ -33,6 +33,9 @@ public class MatchingDeviceSelectVo extends CustomPage {
@ApiModelProperty
(
value
=
"查询是否打印标签(有没有表面号)装备"
)
@ApiModelProperty
(
value
=
"查询是否打印标签(有没有表面号)装备"
)
private
Integer
isPrint
;
private
Integer
isPrint
;
@ApiModelProperty
(
value
=
"存放位置id"
)
private
Integer
matchingDeviceStorageLocationId
;
private
String
typeDim
;
private
String
typeDim
;
private
String
modelDim
;
private
String
modelDim
;
...
...
dev-storage/src/main/java/com/tykj/dev/device/storage/subject/vo/StorageBillDetail.java
浏览文件 @
f7ccbf2b
...
@@ -31,4 +31,6 @@ public class StorageBillDetail {
...
@@ -31,4 +31,6 @@ public class StorageBillDetail {
private
String
typeName
;
private
String
typeName
;
@ApiModelProperty
(
value
=
"装备存放位置"
,
notes
=
"默认是库房"
)
@ApiModelProperty
(
value
=
"装备存放位置"
,
notes
=
"默认是库房"
)
private
String
storageLocation
;
private
String
storageLocation
;
@ApiModelProperty
(
value
=
"装备存放位置的id"
,
notes
=
"默认是库房id"
)
private
Integer
storageLocationId
;
}
}
dev-storage/src/main/java/com/tykj/dev/device/storage/subject/vo/StorageBillDetailVo.java
浏览文件 @
f7ccbf2b
...
@@ -16,17 +16,25 @@ public class StorageBillDetailVo {
...
@@ -16,17 +16,25 @@ public class StorageBillDetailVo {
@ApiModelProperty
(
value
=
"配件列表"
)
@ApiModelProperty
(
value
=
"配件列表"
)
List
<
StorageBillDetailVo
>
list
;
List
<
StorageBillDetailVo
>
list
;
@ApiModelProperty
(
value
=
"列装id"
)
@ApiModelProperty
(
value
=
"列装id"
)
private
Integer
packingId
;
private
Integer
packingId
;
@ApiModelProperty
(
value
=
"入库数量"
)
@ApiModelProperty
(
value
=
"入库数量"
)
private
Integer
storageCount
;
private
Integer
storageCount
;
@ApiModelProperty
(
value
=
"序列号区间"
)
@ApiModelProperty
(
value
=
"序列号区间"
)
private
String
seqInterval
;
private
String
seqInterval
;
@ApiModelProperty
(
value
=
"生产号区间"
)
@ApiModelProperty
(
value
=
"生产号区间"
)
private
String
prodInterval
;
private
String
prodInterval
;
@ApiModelProperty
(
value
=
"列装装备"
)
@ApiModelProperty
(
value
=
"列装装备"
)
private
PackingLibrary
packingLibrary
;
private
PackingLibrary
packingLibrary
;
@ApiModelProperty
(
value
=
"装备存放位置"
,
notes
=
"默认是库房"
)
@ApiModelProperty
(
value
=
"装备存放位置"
,
notes
=
"默认是库房"
)
private
String
storageLocation
;
private
String
storageLocation
;
@ApiModelProperty
(
value
=
"装备存放位置的id"
,
notes
=
"默认是库房id"
)
private
Integer
storageLocationId
;
}
}
dev-storage/src/main/java/com/tykj/dev/device/storage/subject/vo/StorageBillSaveVo.java
浏览文件 @
f7ccbf2b
...
@@ -118,6 +118,9 @@ public class StorageBillSaveVo {
...
@@ -118,6 +118,9 @@ public class StorageBillSaveVo {
@ApiModelProperty
(
value
=
"装备存放位置"
,
notes
=
"默认是库房"
)
@ApiModelProperty
(
value
=
"装备存放位置"
,
notes
=
"默认是库房"
)
private
String
storageLocation
;
private
String
storageLocation
;
@ApiModelProperty
(
value
=
"装备存放位置的id"
,
notes
=
"默认是库房id"
)
private
Integer
storageLocationId
;
@ApiModelProperty
(
value
=
"是否是试用装备"
,
notes
=
"0 是正式 1 是测试"
)
@ApiModelProperty
(
value
=
"是否是试用装备"
,
notes
=
"0 是正式 1 是测试"
)
private
Integer
tryOutDevice
=
0
;
private
Integer
tryOutDevice
=
0
;
...
...
dev-union/src/main/java/com/tykj/dev/union/DataInit.java
浏览文件 @
f7ccbf2b
差异被折叠。
点击展开。
dev-union/src/main/java/com/tykj/dev/union/RunController.java
浏览文件 @
f7ccbf2b
package
com
.
tykj
.
dev
.
union
;
//
package com.tykj.dev.union;
//
/**
/
//
**
* @author zjm
//
* @author zjm
* @version 1.0.0
//
* @version 1.0.0
* @ClassName AreaController.java
//
* @ClassName AreaController.java
* @Description TODO
//
* @Description TODO
* @createTime 2020年09月04日 13:34:00
//
* @createTime 2020年09月04日 13:34:00
*/
//
*/
//
import
com.tykj.dev.config.swagger.AutoDocument
;
//
import com.tykj.dev.config.swagger.AutoDocument;
import
com.tykj.dev.device.user.subject.dao.AreaDao
;
//
import com.tykj.dev.device.user.subject.dao.AreaDao;
import
com.tykj.dev.device.user.subject.entity.Area
;
//
import com.tykj.dev.device.user.subject.entity.Area;
import
com.tykj.dev.device.user.subject.entity.SecurityUser
;
//
import com.tykj.dev.device.user.subject.entity.SecurityUser;
import
com.tykj.dev.device.user.subject.service.AreaService
;
//
import com.tykj.dev.device.user.subject.service.AreaService;
import
com.tykj.dev.misc.exception.ApiException
;
//
import com.tykj.dev.misc.exception.ApiException;
import
io.swagger.annotations.Api
;
//
import io.swagger.annotations.Api;
import
io.swagger.annotations.ApiOperation
;
//
import io.swagger.annotations.ApiOperation;
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.web.bind.annotation.*
;
//
import org.springframework.web.bind.annotation.*;
import
springfox.documentation.annotations.ApiIgnore
;
//
import springfox.documentation.annotations.ApiIgnore;
//
import
java.util.Optional
;
//
import java.util.Optional;
//
/**
/
//
**
* 区域视图层
//
* 区域视图层
*/
//
*/
@RestController
//
@RestController
@RequestMapping
(
"/run"
)
//
@RequestMapping("/run")
public
class
RunController
{
//
public class RunController {
@Autowired
//
@Autowired
DataInit
dataInit
;
//
DataInit dataInit;
@GetMapping
(
value
=
"/init2"
)
//
@GetMapping(value = "/init2")
public
ResponseEntity
addPermissions
(
@ApiIgnore
@AuthenticationPrincipal
SecurityUser
securityUser
)
{
//
public ResponseEntity addPermissions(@ApiIgnore @AuthenticationPrincipal SecurityUser securityUser) {
dataInit
.
init2
();
//
dataInit.init2();
return
ResponseEntity
.
ok
(
"ok"
);
//
return ResponseEntity.ok("ok");
}
//
}
//
//
}
//
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论