Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 33d99616
由
zshaohui
编写于
2025-01-17 14:59:19 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1.物料日志报表修改
2.提供料箱是否流走接口
1 个父辈
a065e42b
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
66 行增加
和
3 行删除
src/main/java/com/neotel/smfcore/core/system/rest/TaskController.java
src/main/java/com/neotel/smfcore/core/system/rest/bean/query/TaskQueryCondition.java
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/controller/CDeviceController.java
src/main/java/com/neotel/smfcore/core/system/rest/TaskController.java
查看文件 @
33d9961
...
@@ -94,6 +94,8 @@ public class TaskController {
...
@@ -94,6 +94,8 @@ public class TaskController {
@PreAuthorize
(
"@el.check('taskLog')"
)
@PreAuthorize
(
"@el.check('taskLog')"
)
public
PageData
<
TaskDto
>
query
(
TaskQueryCondition
criteria
,
Pageable
pageable
)
{
public
PageData
<
TaskDto
>
query
(
TaskQueryCondition
criteria
,
Pageable
pageable
)
{
Query
query
=
getQuery
(
criteria
);
Query
query
=
getQuery
(
criteria
);
query
.
fields
().
include
(
"partNumber"
,
"barcode"
,
"cartonId"
,
"posName"
,
"storageName"
,
"num"
,
"type"
,
"sourceName"
,
"status"
,
"currentLoc"
,
"creator"
,
"createDate"
,
"updateDate"
);
PageData
<
DataLog
>
taskList
=
dataLogManager
.
findByPage
(
query
,
pageable
);
PageData
<
DataLog
>
taskList
=
dataLogManager
.
findByPage
(
query
,
pageable
);
PageData
<
TaskDto
>
result
=
taskMapper
.
toDto
(
taskList
);
PageData
<
TaskDto
>
result
=
taskMapper
.
toDto
(
taskList
);
return
result
;
return
result
;
...
@@ -104,6 +106,8 @@ public class TaskController {
...
@@ -104,6 +106,8 @@ public class TaskController {
@PreAuthorize
(
"@el.check('taskLog')"
)
@PreAuthorize
(
"@el.check('taskLog')"
)
public
void
download
(
HttpServletResponse
response
,
TaskQueryCondition
criteria
,
Pageable
pageable
,
HttpServletRequest
request
)
throws
IOException
{
public
void
download
(
HttpServletResponse
response
,
TaskQueryCondition
criteria
,
Pageable
pageable
,
HttpServletRequest
request
)
throws
IOException
{
Query
query
=
getQuery
(
criteria
);
Query
query
=
getQuery
(
criteria
);
query
.
fields
().
include
(
"partNumber"
,
"barcode"
,
"cartonId"
,
"posName"
,
"storageName"
,
"num"
,
"type"
,
"sourceName"
,
"status"
,
"currentLoc"
,
"creator"
,
"createDate"
,
"updateDate"
);
FileUtil
.
downloadExcel
(
query
,
pageable
,
response
,
new
IExcelDownLoad
()
{
FileUtil
.
downloadExcel
(
query
,
pageable
,
response
,
new
IExcelDownLoad
()
{
@Override
@Override
public
List
<
List
<
String
>>
getHeader
()
{
public
List
<
List
<
String
>>
getHeader
()
{
...
...
src/main/java/com/neotel/smfcore/core/system/rest/bean/query/TaskQueryCondition.java
查看文件 @
33d9961
...
@@ -14,14 +14,23 @@ import java.util.Date;
...
@@ -14,14 +14,23 @@ import java.util.Date;
@ApiModel
(
"查询条件"
)
@ApiModel
(
"查询条件"
)
public
class
TaskQueryCondition
{
public
class
TaskQueryCondition
{
@QueryCondition
(
blurry
=
"barcode,partNumber,posName,sourceName"
)
/*
@QueryCondition(blurry = "barcode,partNumber,posName,sourceName")
@ApiModelProperty("模糊搜索")
@ApiModelProperty("模糊搜索")
private
String
blurry
;
private String blurry;
*/
@QueryCondition
@QueryCondition
(
type
=
QueryCondition
.
Type
.
EQ
,
propName
=
"barcode"
)
@ApiModelProperty
(
"条码编号"
)
@ApiModelProperty
(
"条码编号"
)
private
String
barcode
;
private
String
barcode
;
@QueryCondition
(
type
=
QueryCondition
.
Type
.
EQ
,
propName
=
"partNumber"
)
@ApiModelProperty
(
"料号"
)
private
String
partNumber
;
@QueryCondition
(
type
=
QueryCondition
.
Type
.
EQ
,
propName
=
"posName"
)
@ApiModelProperty
(
"库位号"
)
private
String
posName
;
@QueryCondition
(
type
=
QueryCondition
.
Type
.
BETWEEN
,
propName
=
"updateDate"
)
@QueryCondition
(
type
=
QueryCondition
.
Type
.
BETWEEN
,
propName
=
"updateDate"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
private
BetweenData
<
Date
>
updateDate
;
private
BetweenData
<
Date
>
updateDate
;
...
...
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/controller/CDeviceController.java
查看文件 @
33d9961
...
@@ -1523,4 +1523,54 @@ public class CDeviceController {
...
@@ -1523,4 +1523,54 @@ public class CDeviceController {
MaterialLocUtil
.
updateStackerLoc
(
stacker
,
""
,
""
,
status
,
""
);
MaterialLocUtil
.
updateStackerLoc
(
stacker
,
""
,
""
,
status
,
""
);
return
ResultBean
.
newOkResult
(
""
);
return
ResultBean
.
newOkResult
(
""
);
}
}
@ApiOperation
(
"入库的料箱是否可以放走"
)
@RequestMapping
(
"/putInBoxCanLeave"
)
@AnonymousAccess
public
ResultBean
putInBoxCanLeave
(
String
boxStr
)
{
//kafkaService.sendMachineParameterStackerAndBox(stacker, "", 0, "", 0, 6);
log
.
info
(
"入料机构是否可以放走料箱:"
+
boxStr
);
String
newBoxStr
=
BoxUtil
.
getBoxStr
(
boxStr
);
Barcode
barcode
=
codeResolve
.
resolveOneValideBarcode
(
newBoxStr
);
if
(
barcode
==
null
){
return
ResultBean
.
newErrorResult
(-
1
,
""
,
boxStr
+
"解析错误"
);
}
Map
<
String
,
String
>
countMap
=
new
HashMap
<>();
boolean
full
=
true
;
List
<
Barcode
>
subCodeList
=
barcode
.
getSubCodeList
();
if
(
subCodeList
==
null
||
subCodeList
.
isEmpty
()){
full
=
false
;
return
ResultBean
.
newOkResult
(
full
);
}
else
{
for
(
Barcode
subCode
:
subCodeList
)
{
String
posName
=
subCode
.
getPosName
();
if
(
StringUtils
.
isNotEmpty
(
posName
)){
countMap
.
put
(
posName
,
posName
);
}
}
}
String
barcodeStr
=
barcode
.
getBarcode
();
if
(
barcodeStr
.
startsWith
(
"C13"
)
||
barcodeStr
.
startsWith
(
"C15"
)){
String
key
=
barcodeStr
+
"-01"
;
String
value
=
countMap
.
get
(
key
);
if
(
StringUtils
.
isEmpty
(
value
)){
log
.
info
(
key
+
"料箱未满"
);
full
=
false
;
}
}
else
{
for
(
int
i
=
1
;
i
<=
6
;
i
++)
{
String
key
=
barcodeStr
+
"-0"
+
i
;
String
value
=
countMap
.
get
(
key
);
if
(
StringUtils
.
isEmpty
(
value
)){
log
.
info
(
key
+
"料箱未满"
);
full
=
false
;
//break;
}
}
}
return
ResultBean
.
newOkResult
(
full
);
}
}
}
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论