Commit 78b0f051 sunke

架构调整

1 个父辈 3d09227a
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!