Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 18f4ec8a
由
LN
编写于
2023-11-20 18:47:08 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
增加钢网料架NLS
1 个父辈
0698a9c8
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
29 行增加
和
9 行删除
src/main/java/com/neotel/smfcore/core/device/handler/impl/NLSShelfHandler.java
src/main/java/com/neotel/smfcore/core/inList/rest/InListController.java
src/main/java/com/neotel/smfcore/core/storage/enums/DeviceType.java
src/main/java/com/neotel/smfcore/core/storage/rest/StorageController.java
src/main/java/com/neotel/smfcore/core/storage/service/po/Storage.java
src/main/java/com/neotel/smfcore/core/system/rest/SettingsController.java
src/main/java/com/neotel/smfcore/core/device/handler/impl/NLSShelfHandler.java
0 → 100644
查看文件 @
18f4ec8
package
com
.
neotel
.
smfcore
.
core
.
device
.
handler
.
impl
;
import
com.neotel.smfcore.core.storage.enums.DeviceType
;
import
io.swagger.annotations.Api
;
import
lombok.extern.slf4j.Slf4j
;
@Api
(
tags
=
"SHELF: NLS(钢网料架)"
)
@Slf4j
public
class
NLSShelfHandler
extends
NLShelfHandler
{
@Override
public
DeviceType
getDeviceType
()
{
return
DeviceType
.
NLS
;
}
}
src/main/java/com/neotel/smfcore/core/inList/rest/InListController.java
查看文件 @
18f4ec8
...
@@ -206,7 +206,7 @@ public class InListController {
...
@@ -206,7 +206,7 @@ public class InListController {
for
(
String
cid
:
cidList
)
{
for
(
String
cid
:
cidList
)
{
Storage
storage
=
dataCache
.
getStorage
(
cid
);
Storage
storage
=
dataCache
.
getStorage
(
cid
);
if
(
storage
!=
null
)
{
if
(
storage
!=
null
)
{
if
(
storage
.
isType
(
new
DeviceType
[]{
DeviceType
.
NLP
,
DeviceType
.
NL
}))
{
if
(
storage
.
isType
(
new
DeviceType
[]{
DeviceType
.
NLP
,
DeviceType
.
NL
,
DeviceType
.
NLS
}))
{
storage
.
setInListName
(
inListName
);
storage
.
setInListName
(
inListName
);
log
.
info
(
"设置组["
+
groupId
+
"]料架["
+
storage
.
getName
()
+
"]的入库单为:["
+
inListName
+
"]"
);
log
.
info
(
"设置组["
+
groupId
+
"]料架["
+
storage
.
getName
()
+
"]的入库单为:["
+
inListName
+
"]"
);
storageManager
.
save
(
storage
);
storageManager
.
save
(
storage
);
...
@@ -218,7 +218,7 @@ public class InListController {
...
@@ -218,7 +218,7 @@ public class InListController {
}
else
{
}
else
{
Storage
storage
=
dataCache
.
getStorageById
(
storageId
);
Storage
storage
=
dataCache
.
getStorageById
(
storageId
);
if
(
storage
!=
null
)
{
if
(
storage
!=
null
)
{
if
(
storage
.
isType
(
new
DeviceType
[]{
DeviceType
.
NLP
,
DeviceType
.
NL
}))
{
if
(
storage
.
isType
(
new
DeviceType
[]{
DeviceType
.
NLP
,
DeviceType
.
NL
,
DeviceType
.
NLS
}))
{
storage
.
setInListName
(
inListName
);
storage
.
setInListName
(
inListName
);
log
.
info
(
"设置料架["
+
storage
.
getName
()
+
"]的入库单为:["
+
inListName
+
"]"
);
log
.
info
(
"设置料架["
+
storage
.
getName
()
+
"]的入库单为:["
+
inListName
+
"]"
);
storageManager
.
save
(
storage
);
storageManager
.
save
(
storage
);
...
...
src/main/java/com/neotel/smfcore/core/storage/enums/DeviceType.java
查看文件 @
18f4ec8
...
@@ -132,7 +132,12 @@ public enum DeviceType {
...
@@ -132,7 +132,12 @@ public enum DeviceType {
/**
/**
* 21 标签料架 NLL
* 21 标签料架 NLL
*/
*/
NLL
(
"storage.type.nll"
);
NLL
(
"storage.type.nll"
),
/**
* 22 钢网料架 NLS
*/
NLS
(
"storage.type.nls"
);
private
String
key
;
private
String
key
;
...
@@ -153,6 +158,6 @@ public enum DeviceType {
...
@@ -153,6 +158,6 @@ public enum DeviceType {
}
}
public
static
List
<
DeviceType
>
availableTypeList
(){
public
static
List
<
DeviceType
>
availableTypeList
(){
return
Lists
.
newArrayList
(
AUTO
,
LINE
,
BATCH
,
SOLDERPASTE
,
VERTICALBOX
,
SMD_XL
,
SMD_DUO
,
SMD_XLC
,
SMD_XLR
,
VIRTUAL
,
NL
,
NLP
,
NLM
,
NLL
,
SMDBOX_THIRD
);
return
Lists
.
newArrayList
(
AUTO
,
LINE
,
BATCH
,
SOLDERPASTE
,
VERTICALBOX
,
SMD_XL
,
SMD_DUO
,
SMD_XLC
,
SMD_XLR
,
VIRTUAL
,
NL
,
NLP
,
NLM
,
NLL
,
NLS
,
SMDBOX_THIRD
);
}
}
}
}
src/main/java/com/neotel/smfcore/core/storage/rest/StorageController.java
查看文件 @
18f4ec8
...
@@ -187,7 +187,7 @@ public class StorageController {
...
@@ -187,7 +187,7 @@ public class StorageController {
@ApiOperation
(
"料架设置界面,返回所有的料架列表"
)
@ApiOperation
(
"料架设置界面,返回所有的料架列表"
)
@GetMapping
(
value
=
"/allShelf"
)
@GetMapping
(
value
=
"/allShelf"
)
public
List
<
StorageDto
>
allShelf
()
{
public
List
<
StorageDto
>
allShelf
()
{
Query
query
=
new
Query
(
Criteria
.
where
(
"type"
).
in
(
new
String
[]{
DeviceType
.
NLP
.
name
(),
DeviceType
.
NL
.
name
()
}));
Query
query
=
new
Query
(
Criteria
.
where
(
"type"
).
in
(
new
String
[]{
DeviceType
.
NLP
.
name
(),
DeviceType
.
NL
.
name
()
,
DeviceType
.
NLS
.
name
()
}));
List
<
Storage
>
storages
=
storageManager
.
findByQuery
(
query
);
List
<
Storage
>
storages
=
storageManager
.
findByQuery
(
query
);
List
<
StorageDto
>
storageDtos
=
new
ArrayList
<>();
List
<
StorageDto
>
storageDtos
=
new
ArrayList
<>();
for
(
Storage
storage
:
for
(
Storage
storage
:
...
@@ -474,7 +474,7 @@ public class StorageController {
...
@@ -474,7 +474,7 @@ public class StorageController {
int
priIndex
=
csvRead
.
getCsvIndex
(
"优先级"
,
"pri"
);
int
priIndex
=
csvRead
.
getCsvIndex
(
"优先级"
,
"pri"
);
int
hIndex
=
csvRead
.
getCsvIndex
(
"高度"
,
"h"
);
int
hIndex
=
csvRead
.
getCsvIndex
(
"高度"
,
"h"
);
int
wIndex
=
csvRead
.
getCsvIndex
(
"宽度"
,
"w"
);
int
wIndex
=
csvRead
.
getCsvIndex
(
"宽度"
,
"w"
);
int
warmPosIndex
=
csvRead
.
getHasCsvIndex
(
"回温库位"
,
"warmPos"
);
int
warmPosIndex
=
csvRead
.
getHasCsvIndex
(
"回温库位"
,
"warmPos"
);
//true表示回温区库位,
int
areaIndex
=
csvRead
.
getHasCsvIndex
(
"区域"
,
"area"
);
int
areaIndex
=
csvRead
.
getHasCsvIndex
(
"区域"
,
"area"
);
...
@@ -531,7 +531,7 @@ public class StorageController {
...
@@ -531,7 +531,7 @@ public class StorageController {
}
}
}
else
{
}
else
{
if
(
isWarmPos
){
if
(
isWarmPos
){
needUpdate
=
true
;
needUpdate
=
true
;
}
}
}
}
posInfo
.
setWarmPos
(
isWarmPos
);
posInfo
.
setWarmPos
(
isWarmPos
);
...
...
src/main/java/com/neotel/smfcore/core/storage/service/po/Storage.java
查看文件 @
18f4ec8
...
@@ -134,7 +134,7 @@ public class Storage extends BasePo implements Serializable {
...
@@ -134,7 +134,7 @@ public class Storage extends BasePo implements Serializable {
* 是否是普通料架
* 是否是普通料架
*/
*/
public
boolean
isNLShelf
()
{
public
boolean
isNLShelf
()
{
return
DeviceType
.
NL
.
name
().
equals
(
type
);
return
DeviceType
.
NL
.
name
().
equals
(
type
)
||
DeviceType
.
NLS
.
name
().
equals
(
type
)
;
}
}
/**
/**
* 是否是感应料架
* 是否是感应料架
...
...
src/main/java/com/neotel/smfcore/core/system/rest/SettingsController.java
查看文件 @
18f4ec8
...
@@ -140,7 +140,7 @@ public class SettingsController {
...
@@ -140,7 +140,7 @@ public class SettingsController {
List
<
Storage
>
storages
=
new
ArrayList
<>(
dataCache
.
getAllStorage
().
values
());
List
<
Storage
>
storages
=
new
ArrayList
<>(
dataCache
.
getAllStorage
().
values
());
for
(
Storage
storage
:
storages
for
(
Storage
storage
:
storages
)
{
)
{
if
(
storage
.
isType
(
new
DeviceType
[]{
DeviceType
.
NLP
,
DeviceType
.
NL
}))
{
if
(
storage
.
isType
(
new
DeviceType
[]{
DeviceType
.
NLP
,
DeviceType
.
NL
,
DeviceType
.
NLS
}))
{
orderSetting
.
setShowLightType
(
true
);
orderSetting
.
setShowLightType
(
true
);
break
;
break
;
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论