Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 78b0f051
由
sunke
编写于
2021-07-13 17:18:53 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
架构调整
1 个父辈
3d09227a
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
15 行增加
和
14 行删除
src/main/java/com/neotel/smfcore/core/service/po/Storage.java
src/main/java/com/neotel/smfcore/core/service/po/Storage.java
查看文件 @
78b0f05
package
com
.
neotel
.
smfcore
.
core
.
service
.
po
;
package
com
.
neotel
.
smfcore
.
core
.
service
.
po
;
import
com.neotel.smfcore.common.base.BasePo
;
import
com.neotel.smfcore.common.base.BasePo
;
import
com.neotel.smfcore.common.enums.DeviceType
;
import
com.neotel.smfcore.common.utils.StorageConstants
;
import
com.neotel.smfcore.common.utils.StorageConstants
;
import
com.neotel.smfcore.core.service.data.PlateSizeBean
;
import
com.neotel.smfcore.core.service.data.PlateSizeBean
;
import
com.neotel.smfcore.core.service.data.UsageItem
;
import
com.neotel.smfcore.core.service.data.UsageItem
;
...
@@ -37,7 +38,7 @@ public class Storage extends BasePo implements Serializable {
...
@@ -37,7 +38,7 @@ public class Storage extends BasePo implements Serializable {
/**
/**
* 料仓类型:单台自动料仓,手动料仓流水线料仓
* 料仓类型:单台自动料仓,手动料仓流水线料仓
*/
*/
private
String
type
=
StorageConstants
.
TYPE
.
AUTO
.
name
();
private
String
type
=
DeviceType
.
AUTO
.
name
();
//包含料仓 Box数量
//包含料仓 Box数量
private
Integer
boxCount
=
1
;
private
Integer
boxCount
=
1
;
...
@@ -64,7 +65,7 @@ public class Storage extends BasePo implements Serializable {
...
@@ -64,7 +65,7 @@ public class Storage extends BasePo implements Serializable {
* @return
* @return
*/
*/
public
boolean
isOnlineStorage
(){
public
boolean
isOnlineStorage
(){
return
StorageConstants
.
TYPE
.
ONLINE
.
name
().
equals
(
type
);
return
DeviceType
.
ONLINE
.
name
().
equals
(
type
);
}
}
/**
/**
...
@@ -72,14 +73,14 @@ public class Storage extends BasePo implements Serializable {
...
@@ -72,14 +73,14 @@ public class Storage extends BasePo implements Serializable {
* @return
* @return
*/
*/
public
boolean
isBatchStorage
(){
public
boolean
isBatchStorage
(){
return
StorageConstants
.
TYPE
.
BATCH
.
name
().
equals
(
type
);
return
DeviceType
.
BATCH
.
name
().
equals
(
type
);
}
}
/**
/**
* 是否是单台自动仓
* 是否是单台自动仓
*/
*/
public
boolean
isAuto
(){
public
boolean
isAuto
(){
return
StorageConstants
.
TYPE
.
AUTO
.
name
().
equals
(
type
);
return
DeviceType
.
AUTO
.
name
().
equals
(
type
);
}
}
...
@@ -87,7 +88,7 @@ public class Storage extends BasePo implements Serializable {
...
@@ -87,7 +88,7 @@ public class Storage extends BasePo implements Serializable {
* 是否是虚拟仓
* 是否是虚拟仓
*/
*/
public
boolean
isVirtual
(){
public
boolean
isVirtual
(){
return
StorageConstants
.
TYPE
.
VIRTUAL
.
name
().
equals
(
type
);
return
DeviceType
.
VIRTUAL
.
name
().
equals
(
type
);
}
}
...
@@ -95,34 +96,34 @@ public class Storage extends BasePo implements Serializable {
...
@@ -95,34 +96,34 @@ public class Storage extends BasePo implements Serializable {
* 是否是流水线料仓
* 是否是流水线料仓
*/
*/
public
boolean
isLine
()
{
public
boolean
isLine
()
{
return
StorageConstants
.
TYPE
.
LINE
.
name
().
equals
(
type
);
return
DeviceType
.
LINE
.
name
().
equals
(
type
);
}
}
/**
/**
* 是否是智能料架
* 是否是智能料架
*/
*/
public
boolean
isShelf
()
{
public
boolean
isShelf
()
{
return
StorageConstants
.
TYPE
.
SHELF
.
name
().
equals
(
type
);
return
DeviceType
.
SHELF
.
name
().
equals
(
type
);
}
}
/**
/**
* 是否是ACC智能料架
* 是否是ACC智能料架
*/
*/
public
boolean
isAccShelf
()
{
public
boolean
isAccShelf
()
{
return
StorageConstants
.
TYPE
.
ACCSHELF
.
name
().
equals
(
type
);
return
DeviceType
.
ACCSHELF
.
name
().
equals
(
type
);
}
}
/**
/**
* 是否是扫码料架
* 是否是扫码料架
*/
*/
public
boolean
isCodeShelf
()
{
public
boolean
isCodeShelf
()
{
return
StorageConstants
.
TYPE
.
CODESHELF
.
name
().
equals
(
type
);
return
DeviceType
.
CODESHELF
.
name
().
equals
(
type
);
}
}
/**
/**
* 是否是垂直货柜
* 是否是垂直货柜
*/
*/
public
boolean
isVerticalBox
(){
public
boolean
isVerticalBox
(){
return
StorageConstants
.
TYPE
.
VERTICALBOX
.
name
().
equals
(
type
);
return
DeviceType
.
VERTICALBOX
.
name
().
equals
(
type
);
}
}
...
@@ -131,7 +132,7 @@ public class Storage extends BasePo implements Serializable {
...
@@ -131,7 +132,7 @@ public class Storage extends BasePo implements Serializable {
* 是否是锡膏料仓
* 是否是锡膏料仓
*/
*/
public
boolean
isSolderPaste
(){
public
boolean
isSolderPaste
(){
return
StorageConstants
.
TYPE
.
SOLDERPASTE
.
name
().
equals
(
type
);
return
DeviceType
.
SOLDERPASTE
.
name
().
equals
(
type
);
}
}
...
@@ -139,21 +140,21 @@ public class Storage extends BasePo implements Serializable {
...
@@ -139,21 +140,21 @@ public class Storage extends BasePo implements Serializable {
* 是否是料柜
* 是否是料柜
*/
*/
public
boolean
isCabinet
()
{
public
boolean
isCabinet
()
{
return
StorageConstants
.
TYPE
.
CABINET
.
name
().
equals
(
type
);
return
DeviceType
.
CABINET
.
name
().
equals
(
type
);
}
}
/**
/**
* 是否是方仓
* 是否是方仓
*/
*/
public
boolean
isSmdXl
()
{
public
boolean
isSmdXl
()
{
return
StorageConstants
.
TYPE
.
SMD_XL
.
name
().
equals
(
type
);
return
DeviceType
.
SMD_XL
.
name
().
equals
(
type
);
}
}
/**
/**
* 是否是Duo料仓
* 是否是Duo料仓
*/
*/
public
boolean
isSmdDuo
()
{
public
boolean
isSmdDuo
()
{
return
StorageConstants
.
TYPE
.
SMD_DUO
.
name
().
equals
(
type
);
return
DeviceType
.
SMD_DUO
.
name
().
equals
(
type
);
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论