Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 640260db
由
LN
编写于
2022-12-13 15:46:48 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
锡膏料仓修改
1 个父辈
9bf711a7
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
79 行增加
和
2 行删除
src/main/java/com/neotel/smfcore/core/humiture/rest/bean/query/HumitureQueryCriteria.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/solder/rest/SpBoxController.java
src/main/java/com/neotel/smfcore/core/solder/rest/bean/dto/SpTaskDto.java
src/main/java/com/neotel/smfcore/core/humiture/rest/bean/query/HumitureQueryCriteria.java
查看文件 @
640260d
...
@@ -23,6 +23,6 @@ public class HumitureQueryCriteria {
...
@@ -23,6 +23,6 @@ public class HumitureQueryCriteria {
private
String
humitureId
;
private
String
humitureId
;
@QueryCondition
(
type
=
QueryCondition
.
Type
.
BETWEEN
,
propName
=
"createDate"
)
@QueryCondition
(
type
=
QueryCondition
.
Type
.
BETWEEN
,
propName
=
"createDate"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd
HH
"
)
private
BetweenData
<
Date
>
createDate
;
private
BetweenData
<
Date
>
createDate
;
}
}
src/main/java/com/neotel/smfcore/core/kanban/rest/BoxKanbanController.java
查看文件 @
640260d
...
@@ -413,7 +413,7 @@ public class BoxKanbanController {
...
@@ -413,7 +413,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"
,
""
,
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
());
//获取设备状态,设置状态和当前任务信息
//获取设备状态,设置状态和当前任务信息
...
@@ -441,6 +441,7 @@ public class BoxKanbanController {
...
@@ -441,6 +441,7 @@ public class BoxKanbanController {
String
humidity
=
boxStatus
.
getHumidity
();
String
humidity
=
boxStatus
.
getHumidity
();
String
temperature
=
boxStatus
.
getTemperature
();
String
temperature
=
boxStatus
.
getTemperature
();
boxDto
.
setHumidity
(
humidity
);
boxDto
.
setHumidity
(
humidity
);
boxDto
.
setCodeAirTemp
(
boxStatus
.
getCodeAirTemp
());
boxDto
.
setTemperature
(
temperature
);
boxDto
.
setTemperature
(
temperature
);
boxDto
.
setStatus
(
bean
.
getStatus
());
boxDto
.
setStatus
(
bean
.
getStatus
());
boxDto
.
setMsg
(
bean
.
getShowMsg
(
locale
));
boxDto
.
setMsg
(
bean
.
getShowMsg
(
locale
));
...
...
src/main/java/com/neotel/smfcore/core/kanban/rest/bean/dto/BoxStatusDto.java
查看文件 @
640260d
...
@@ -35,6 +35,8 @@ public class BoxStatusDto {
...
@@ -35,6 +35,8 @@ public class BoxStatusDto {
private
String
temperature
;
private
String
temperature
;
@ApiModelProperty
(
"湿度"
)
@ApiModelProperty
(
"湿度"
)
private
String
humidity
;
private
String
humidity
;
@ApiModelProperty
(
"冷气机温度"
)
private
String
codeAirTemp
;
@ApiModelProperty
(
"文字显示"
)
@ApiModelProperty
(
"文字显示"
)
private
String
msg
=
""
;
private
String
msg
=
""
;
...
...
src/main/java/com/neotel/smfcore/core/solder/rest/SpBoxController.java
查看文件 @
640260d
...
@@ -12,6 +12,7 @@ import com.neotel.smfcore.core.barcode.enums.SOLDER_STATUS;
...
@@ -12,6 +12,7 @@ import com.neotel.smfcore.core.barcode.enums.SOLDER_STATUS;
import
com.neotel.smfcore.core.barcode.service.manager.IBarcodeManager
;
import
com.neotel.smfcore.core.barcode.service.manager.IBarcodeManager
;
import
com.neotel.smfcore.core.barcode.service.po.Barcode
;
import
com.neotel.smfcore.core.barcode.service.po.Barcode
;
import
com.neotel.smfcore.core.device.util.DataCache
;
import
com.neotel.smfcore.core.device.util.DataCache
;
import
com.neotel.smfcore.core.solder.rest.bean.dto.SpTaskDto
;
import
com.neotel.smfcore.core.storage.rest.dto.CheckOutDto
;
import
com.neotel.smfcore.core.storage.rest.dto.CheckOutDto
;
import
com.neotel.smfcore.core.storage.rest.dto.InventoryItemDto
;
import
com.neotel.smfcore.core.storage.rest.dto.InventoryItemDto
;
import
com.neotel.smfcore.core.storage.rest.dto.StoragePosDto
;
import
com.neotel.smfcore.core.storage.rest.dto.StoragePosDto
;
...
@@ -20,7 +21,9 @@ import com.neotel.smfcore.core.storage.rest.query.StoragePosFindCriteria;
...
@@ -20,7 +21,9 @@ import com.neotel.smfcore.core.storage.rest.query.StoragePosFindCriteria;
import
com.neotel.smfcore.core.storage.service.manager.IStoragePosManager
;
import
com.neotel.smfcore.core.storage.service.manager.IStoragePosManager
;
import
com.neotel.smfcore.core.storage.service.po.Storage
;
import
com.neotel.smfcore.core.storage.service.po.Storage
;
import
com.neotel.smfcore.core.storage.service.po.StoragePos
;
import
com.neotel.smfcore.core.storage.service.po.StoragePos
;
import
com.neotel.smfcore.core.system.rest.bean.query.TaskQueryCondition
;
import
com.neotel.smfcore.core.system.util.TaskService
;
import
com.neotel.smfcore.core.system.util.TaskService
;
import
com.neotel.smfcore.security.annotation.AnonymousGetMapping
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.RequiredArgsConstructor
;
import
lombok.RequiredArgsConstructor
;
...
@@ -220,4 +223,32 @@ public class SpBoxController {
...
@@ -220,4 +223,32 @@ public class SpBoxController {
q
.
with
(
Sort
.
by
(
Sort
.
Direction
.
ASC
,
"barcode.solderStatus"
).
and
(
Sort
.
by
(
Sort
.
Direction
.
ASC
,
"barcode.putInTime"
)));
q
.
with
(
Sort
.
by
(
Sort
.
Direction
.
ASC
,
"barcode.solderStatus"
).
and
(
Sort
.
by
(
Sort
.
Direction
.
ASC
,
"barcode.putInTime"
)));
return
storagePosManager
.
findByQuery
(
q
);
return
storagePosManager
.
findByQuery
(
q
);
}
}
@ApiOperation
(
"锡膏料仓任务列表"
)
@RequestMapping
(
value
=
"/tasks"
)
public
List
<
SpTaskDto
>
filterTask
(
TaskQueryCondition
criteria
,
HttpServletRequest
request
){
String
storageId
=
criteria
.
getStorageId
();
Storage
storage
=
dataCache
.
getStorageById
(
storageId
);
if
(!
storage
.
isSolderPaste
()){
return
new
ArrayList
<>();
}
Criteria
c
=
Criteria
.
where
(
"storageId"
).
is
(
storageId
)
.
and
(
"enabled"
).
is
(
true
)
.
and
(
"used"
).
is
(
true
)
.
and
(
"barcode.solderStatus"
).
nin
(
SOLDER_STATUS
.
NONE
.
name
(),
SOLDER_STATUS
.
UNDER_REFRIGERATION
.
name
(),
SOLDER_STATUS
.
RETREAT_STORAGE
.
name
());
List
<
StoragePos
>
taskPosList
=
storagePosManager
.
findByQuery
(
new
Query
(
c
));
List
<
SpTaskDto
>
spTaskDtos
=
new
ArrayList
<>();
for
(
StoragePos
pos
:
taskPosList
)
{
try
{
SpTaskDto
spTaskDto
=
new
SpTaskDto
(
pos
.
getId
(),
pos
.
getStorageId
(),
pos
.
getId
(),
pos
.
getPosName
(),
pos
.
getBarcode
().
getBarcode
(),
pos
.
getBarcode
().
getPartNumber
(),
pos
.
getBarcode
().
getAmount
(),
pos
.
getBarcode
().
getSolderStatus
(),
pos
.
getBarcode
().
getNeedOutDate
());
spTaskDtos
.
add
(
spTaskDto
);
}
catch
(
Exception
ex
){
}
}
return
spTaskDtos
;
}
}
}
src/main/java/com/neotel/smfcore/core/solder/rest/bean/dto/SpTaskDto.java
0 → 100644
查看文件 @
640260d
package
com
.
neotel
.
smfcore
.
core
.
solder
.
rest
.
bean
.
dto
;
import
com.neotel.smfcore.core.barcode.enums.SOLDER_STATUS
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.*
;
import
java.io.Serializable
;
import
java.util.Date
;
@Data
@NoArgsConstructor
@AllArgsConstructor
public
class
SpTaskDto
implements
Serializable
{
@ApiModelProperty
(
"ID"
)
private
String
id
;
@ApiModelProperty
(
"料仓 ID"
)
private
String
storageId
;
@ApiModelProperty
(
"料仓 ID"
)
private
String
posId
;
@ApiModelProperty
(
"仓位名称"
)
private
String
posName
;
@ApiModelProperty
(
"二维码(Reel ID)"
)
private
String
barcode
;
@ApiModelProperty
(
"物料编号"
)
private
String
partNumber
;
@ApiModelProperty
(
"重量"
)
private
int
amount
;
@ApiModelProperty
(
"锡膏状态"
)
private
String
solderStatus
=
SOLDER_STATUS
.
NONE
.
name
();
@ApiModelProperty
(
"锡膏指定时间出库"
)
private
Date
needOutDate
;
}
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论