Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 168bdb36
由
zshaohui
编写于
2025-01-14 14:56:28 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1.1562亮灯接口开发
1 个父辈
bed2ce24
全部展开
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
145 行增加
和
0 行删除
src/main/java/com/neotel/smfcore/custom/Inventec1562/bean/AllLightsTurnOff.java
src/main/java/com/neotel/smfcore/custom/Inventec1562/bean/AllLightsTurnOn.java
src/main/java/com/neotel/smfcore/custom/Inventec1562/bean/LighthouseControl.java
src/main/java/com/neotel/smfcore/custom/Inventec1562/bean/MultiLight.java
src/main/java/com/neotel/smfcore/custom/Inventec1562/bean/SingleLight.java
src/main/java/com/neotel/smfcore/custom/Inventec1562/controller/InventecLightController.java
src/main/java/com/neotel/smfcore/custom/Inventec1562/enums/LightAction.java
src/main/java/com/neotel/smfcore/custom/Inventec1562/enums/LightColor.java
src/main/java/com/neotel/smfcore/custom/Inventec1562/bean/AllLightsTurnOff.java
0 → 100644
查看文件 @
168bdb3
package
com
.
neotel
.
smfcore
.
custom
.
Inventec1562
.
bean
;
import
lombok.Data
;
@Data
public
class
AllLightsTurnOff
{
private
String
ledBoard
;
private
String
color
;
private
String
reelShelfIp
;
}
src/main/java/com/neotel/smfcore/custom/Inventec1562/bean/AllLightsTurnOn.java
0 → 100644
查看文件 @
168bdb3
package
com
.
neotel
.
smfcore
.
custom
.
Inventec1562
.
bean
;
import
lombok.Data
;
@Data
public
class
AllLightsTurnOn
{
private
String
ledBoard
;
private
String
color
;
private
String
reelShelfIp
;
}
src/main/java/com/neotel/smfcore/custom/Inventec1562/bean/LighthouseControl.java
0 → 100644
查看文件 @
168bdb3
package
com
.
neotel
.
smfcore
.
custom
.
Inventec1562
.
bean
;
import
lombok.Data
;
@Data
public
class
LighthouseControl
{
/**
* Return value:True/False
* Parameters:
* LedBoard:Shelf number, take the first 3 digits of the Storage location number , do not accept arrays.
* Color:R/Y -red,G/P-green,B/C-blue
* On the side of shelf location 1-700: R-red,G-green,B-blue
* On the side of shelf location 701-1400: Y-red,P-green,C-blue
* Action: 0 - off, 1 - on
* ReelShelfIP: Server IP connected to the material rack
*/
private
String
ledBoard
;
private
String
color
;
private
Integer
action
;
private
String
reelShelfIp
;
}
src/main/java/com/neotel/smfcore/custom/Inventec1562/bean/MultiLight.java
0 → 100644
查看文件 @
168bdb3
package
com
.
neotel
.
smfcore
.
custom
.
Inventec1562
.
bean
;
import
lombok.Data
;
@Data
public
class
MultiLight
{
private
String
phwCode
;
private
String
color
;
private
String
reelShelfIp
;
}
src/main/java/com/neotel/smfcore/custom/Inventec1562/bean/SingleLight.java
0 → 100644
查看文件 @
168bdb3
package
com
.
neotel
.
smfcore
.
custom
.
Inventec1562
.
bean
;
import
lombok.Data
;
@Data
public
class
SingleLight
{
/**
* pHW_Code:Storage location number
* Color:R-red,G-green,B-blue
* Action: 0 – off, 1 – on, 2 - flashing
* Cycle:Each unit flashes for 1 second
* ReelShelfIP: Server IP connected to the material rack
*/
private
String
phwCode
;
private
String
color
;
private
Integer
action
;
private
Integer
cycle
;
private
String
reelShelfIp
;
}
src/main/java/com/neotel/smfcore/custom/Inventec1562/controller/InventecLightController.java
0 → 100644
查看文件 @
168bdb3
此文件的差异被折叠,
点击展开。
src/main/java/com/neotel/smfcore/custom/Inventec1562/enums/LightAction.java
0 → 100644
查看文件 @
168bdb3
package
com
.
neotel
.
smfcore
.
custom
.
Inventec1562
.
enums
;
public
enum
LightAction
{
close
(
0
),
open
(
1
),
flashing
(
2
),
openAll
(
3
),
closeAll
(
4
);
private
final
int
stateCode
;
LightAction
(
int
stateCode
)
{
this
.
stateCode
=
stateCode
;
}
public
static
String
getOpName
(
int
stateCode
)
{
if
(
stateCode
==
2
)
{
stateCode
=
1
;
}
for
(
LightAction
action
:
LightAction
.
values
())
{
if
(
action
.
stateCode
==
stateCode
)
{
return
action
.
name
();
}
}
return
""
;
}
}
src/main/java/com/neotel/smfcore/custom/Inventec1562/enums/LightColor.java
0 → 100644
查看文件 @
168bdb3
package
com
.
neotel
.
smfcore
.
custom
.
Inventec1562
.
enums
;
public
enum
LightColor
{
R
(
"red"
),
G
(
"green"
),
B
(
"blue"
),
Y
(
"red"
),
P
(
"green"
),
C
(
"blue"
);
private
final
String
blue
;
LightColor
(
String
blue
)
{
this
.
blue
=
blue
;
}
public
static
String
getColor
(
String
name
){
for
(
LightColor
color
:
LightColor
.
values
())
{
if
(
color
.
name
().
equals
(
name
)){
return
color
.
blue
;
}
}
return
""
;
}
}
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论