Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 23047cfc
由
LN
编写于
2025-03-12 14:43:24 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
锡膏料仓增加冷藏区温湿度3
1 个父辈
3c25bd46
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
33 行增加
和
3 行删除
src/main/java/com/neotel/smfcore/core/dashboard/mimo/SmdBoxMimoController.java
src/main/java/com/neotel/smfcore/core/device/bean/BoxStatusBean.java
src/main/java/com/neotel/smfcore/core/device/handler/impl/BaseDeviceHandler.java
src/main/java/com/neotel/smfcore/core/kanban/rest/BoxKanbanController.java
src/main/java/com/neotel/smfcore/core/kanban/rest/bean/dto/BoxStatusDto.java
src/main/java/com/neotel/smfcore/core/system/service/po/Humiture.java
src/main/java/com/neotel/smfcore/core/dashboard/mimo/SmdBoxMimoController.java
查看文件 @
23047cf
...
@@ -351,7 +351,7 @@ public class SmdBoxMimoController {
...
@@ -351,7 +351,7 @@ public class SmdBoxMimoController {
int
allCount
=
inTask
+
outTask
;
int
allCount
=
inTask
+
outTask
;
BoxStatusDto
boxDto
=
new
BoxStatusDto
(
storage
.
getId
(),
storage
.
getName
(),
storage
.
getCid
(),
false
,
0
,
BoxStatusDto
boxDto
=
new
BoxStatusDto
(
storage
.
getId
(),
storage
.
getName
(),
storage
.
getCid
(),
false
,
0
,
"0"
,
"0"
,
"0"
,
""
,
""
,
allCount
,
inTask
,
outTask
,
"0"
,
"0"
,
"0"
,
""
,
""
,
allCount
,
inTask
,
outTask
,
0
,
""
,
""
,
""
,
""
,
""
,
storage
.
getType
(),
storage
.
getUsageMap
(),
new
HashMap
<>(),
storage
.
getInListName
(),
""
,
""
,
""
,
""
);
0
,
""
,
""
,
""
,
""
,
""
,
storage
.
getType
(),
storage
.
getUsageMap
(),
new
HashMap
<>(),
storage
.
getInListName
(),
""
,
""
,
""
,
""
,
""
,
""
);
//获取设备状态,设置状态和当前任务信息
//获取设备状态,设置状态和当前任务信息
StatusBean
bean
=
DevicesStatusUtil
.
getStatusBean
(
storage
.
getCid
());
StatusBean
bean
=
DevicesStatusUtil
.
getStatusBean
(
storage
.
getCid
());
...
...
src/main/java/com/neotel/smfcore/core/device/bean/BoxStatusBean.java
查看文件 @
23047cf
...
@@ -73,6 +73,14 @@ public class BoxStatusBean {
...
@@ -73,6 +73,14 @@ public class BoxStatusBean {
* 冷藏区湿度
* 冷藏区湿度
*/
*/
public
String
humidity2
;
public
String
humidity2
;
/**
* 冷藏区温度3
*/
public
String
temperature3
;
/**
* 冷藏区湿度3
*/
public
String
humidity3
;
/**
/**
* 回温区温度
* 回温区温度
...
...
src/main/java/com/neotel/smfcore/core/device/handler/impl/BaseDeviceHandler.java
查看文件 @
23047cf
...
@@ -973,6 +973,13 @@ public class BaseDeviceHandler implements IDeviceHandler {
...
@@ -973,6 +973,13 @@ public class BaseDeviceHandler implements IDeviceHandler {
if
(
ObjectUtil
.
isNotEmpty
(
boxStatus
.
getHumidity2
())){
if
(
ObjectUtil
.
isNotEmpty
(
boxStatus
.
getHumidity2
())){
humiture
.
setHumidity2
(
boxStatus
.
getHumidity2
());
humiture
.
setHumidity2
(
boxStatus
.
getHumidity2
());
}
}
if
(
ObjectUtil
.
isNotEmpty
(
boxStatus
.
getTemperature3
())){
humiture
.
setTemperature3
(
boxStatus
.
getTemperature3
());
}
if
(
ObjectUtil
.
isNotEmpty
(
boxStatus
.
getHumidity3
())){
humiture
.
setHumidity3
(
boxStatus
.
getHumidity3
());
}
try
{
try
{
humitureManager
.
save
(
humiture
);
humitureManager
.
save
(
humiture
);
statusBean
.
setLastSaveTime
(
System
.
currentTimeMillis
());
statusBean
.
setLastSaveTime
(
System
.
currentTimeMillis
());
...
...
src/main/java/com/neotel/smfcore/core/kanban/rest/BoxKanbanController.java
查看文件 @
23047cf
...
@@ -424,7 +424,7 @@ public class BoxKanbanController {
...
@@ -424,7 +424,7 @@ public class BoxKanbanController {
int
allCount
=
inTask
+
outTask
;
int
allCount
=
inTask
+
outTask
;
BoxStatusDto
boxDto
=
new
BoxStatusDto
(
storage
.
getId
(),
storage
.
getName
(),
storage
.
getCid
(),
false
,
0
,
BoxStatusDto
boxDto
=
new
BoxStatusDto
(
storage
.
getId
(),
storage
.
getName
(),
storage
.
getCid
(),
false
,
0
,
"0"
,
"0"
,
"0"
,
""
,
""
,
allCount
,
inTask
,
outTask
,
"0"
,
"0"
,
"0"
,
""
,
""
,
allCount
,
inTask
,
outTask
,
0
,
""
,
""
,
""
,
""
,
""
,
storage
.
getType
(),
storage
.
getUsageMap
(),
new
HashMap
<>(),
storage
.
getInListName
(),
""
,
""
,
""
,
""
);
0
,
""
,
""
,
""
,
""
,
""
,
storage
.
getType
(),
storage
.
getUsageMap
(),
new
HashMap
<>(),
storage
.
getInListName
(),
""
,
""
,
""
,
""
,
""
,
""
);
//获取设备状态,设置状态和当前任务信息
//获取设备状态,设置状态和当前任务信息
StatusBean
bean
=
DevicesStatusUtil
.
getStatusBean
(
storage
.
getCid
());
StatusBean
bean
=
DevicesStatusUtil
.
getStatusBean
(
storage
.
getCid
());
...
...
src/main/java/com/neotel/smfcore/core/kanban/rest/bean/dto/BoxStatusDto.java
查看文件 @
23047cf
...
@@ -89,8 +89,12 @@ public class BoxStatusDto {
...
@@ -89,8 +89,12 @@ public class BoxStatusDto {
@ApiModelProperty
(
"冷藏区温度2"
)
@ApiModelProperty
(
"冷藏区温度2"
)
public
String
temperature2
;
public
String
temperature2
;
@ApiModelProperty
(
"冷藏区湿度"
)
@ApiModelProperty
(
"冷藏区湿度
2
"
)
public
String
humidity2
;
public
String
humidity2
;
@ApiModelProperty
(
"冷藏区温度3"
)
public
String
temperature3
;
@ApiModelProperty
(
"冷藏区湿度3"
)
public
String
humidity3
;
@ApiModelProperty
(
"回温区温度"
)
@ApiModelProperty
(
"回温区温度"
)
public
String
wTemp
;
public
String
wTemp
;
@ApiModelProperty
(
"回温区湿度"
)
@ApiModelProperty
(
"回温区湿度"
)
...
@@ -108,5 +112,8 @@ public class BoxStatusDto {
...
@@ -108,5 +112,8 @@ public class BoxStatusDto {
setTemperature2
(
boxStatus
.
getTemperature2
());
setTemperature2
(
boxStatus
.
getTemperature2
());
setHumidity2
(
boxStatus
.
getHumidity2
());
setHumidity2
(
boxStatus
.
getHumidity2
());
setTemperature3
(
boxStatus
.
getTemperature3
());
setHumidity3
(
boxStatus
.
getHumidity3
());
}
}
}
}
src/main/java/com/neotel/smfcore/core/system/service/po/Humiture.java
查看文件 @
23047cf
...
@@ -45,6 +45,14 @@ public class Humiture extends BasePo implements Serializable {
...
@@ -45,6 +45,14 @@ public class Humiture extends BasePo implements Serializable {
public
String
humidity2
=
""
;
public
String
humidity2
=
""
;
/**
/**
* 冷藏区温度3
*/
public
String
temperature3
=
""
;
/**
* 冷藏区湿度3
*/
public
String
humidity3
=
""
;
/**
* 回温区温度
* 回温区温度
*/
*/
public
String
wTemp
=
""
;
public
String
wTemp
=
""
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论