Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 59b40f0d
由
zshaohui
编写于
2024-07-09 10:02:16 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1.A/B面显示问题处理
2.GR入库卡控料箱条码
1 个父辈
198ee938
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
19 行增加
和
8 行删除
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/controller/manual/ManualGrPutInController.java
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/util/BoxHandleUtil.java
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/controller/manual/ManualGrPutInController.java
查看文件 @
59b40f0
...
...
@@ -81,7 +81,7 @@ public class ManualGrPutInController {
@ApiOperation
(
"获取GR已过账的列表"
)
@RequestMapping
(
"/grStatus"
)
@AnonymousAccess
//
@AnonymousAccess
public
ResultBean
grStatus
(
@RequestBody
Map
<
String
,
String
>
paramMap
)
{
//物料
String
codeStr
=
paramMap
.
get
(
"codeStr"
);
...
...
@@ -103,7 +103,7 @@ public class ManualGrPutInController {
@ApiOperation
(
"缓存已过帐缓存信息"
)
@RequestMapping
(
"/bindGrUdQty"
)
@AnonymousAccess
//
@AnonymousAccess
public
ResultBean
bindGrUdQty
(
@RequestBody
GrUdNum
grUdNum
)
{
GrUtil
.
updateGrUdQty
(
grUdNum
.
getCode
(),
grUdNum
.
getGrCode
(),
grUdNum
.
getGrItem
(),
grUdNum
.
getPickedQty
(),
grUdNum
.
getLotQty
());
return
ResultBean
.
newOkResult
(
GrUtil
.
getGrUdQty
(
grUdNum
.
getGrCode
(),
grUdNum
.
getGrItem
()));
...
...
@@ -111,7 +111,7 @@ public class ManualGrPutInController {
@ApiOperation
(
"获取过账信息"
)
@RequestMapping
(
"/grUdNum"
)
@AnonymousAccess
//
@AnonymousAccess
public
ResultBean
getGrUdNum
(
String
grCode
,
String
grItem
)
{
if
(
StringUtils
.
isEmpty
(
grCode
))
{
return
ResultBean
.
newErrorResult
(-
1
,
"smfcore.valueCanotNull"
,
"{0}不能为空"
,
new
String
[]{
"grCode"
});
...
...
@@ -124,12 +124,23 @@ public class ManualGrPutInController {
@ApiOperation
(
"获取料箱信息"
)
@RequestMapping
(
"/getBoxInfo"
)
@AnonymousAccess
//
@AnonymousAccess
public
ResultBean
getBoxInfo
(
String
boxStr
){
if
(
StringUtils
.
isEmpty
(
boxStr
))
{
return
ResultBean
.
newErrorResult
(-
1
,
"smfcore.valueCanotNull"
,
"{0}不能为空"
,
new
String
[]{
"料箱信息"
});
}
//如果不是C07,C13,C15开头的 报错
if
(!
boxStr
.
startsWith
(
"C07"
)
&&
!
boxStr
.
startsWith
(
"C13"
)
&&
!
boxStr
.
startsWith
(
"C15"
))
{
return
ResultBean
.
newErrorResult
(-
1
,
""
,
boxStr
+
"不是有效的料箱条码"
);
}
//如果不是以A/B结尾的,则提示
if
(!
boxStr
.
endsWith
(
"A"
)
&&
!
boxStr
.
endsWith
(
"B"
)){
return
ResultBean
.
newErrorResult
(-
1
,
""
,
boxStr
+
"请输入完整的料箱条码"
);
}
Barcode
barcode
=
codeResolve
.
resolveCode
(
boxStr
);
if
(
barcode
!=
null
){
StoragePos
pos
=
storagePosManager
.
getByBarcode
(
barcode
.
getBarcode
());
...
...
@@ -148,7 +159,7 @@ public class ManualGrPutInController {
@ApiOperation
(
"GR料盘入到料格"
)
@RequestMapping
(
"/reelToBox"
)
@AnonymousAccess
//
@AnonymousAccess
public
synchronized
ResultBean
reelToBox
(
@RequestBody
Map
<
String
,
String
>
paramMap
)
{
...
...
@@ -288,7 +299,7 @@ public class ManualGrPutInController {
@ApiOperation
(
"完成装箱并入库"
)
@RequestMapping
(
"/boxToPos"
)
@AnonymousAccess
//
@AnonymousAccess
public
synchronized
ResultBean
boxToPosNew
(
String
boxStr
,
String
posName
,
String
type
)
{
if
(
StringUtils
.
isEmpty
(
boxStr
))
{
...
...
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/util/BoxHandleUtil.java
查看文件 @
59b40f0
...
...
@@ -399,11 +399,11 @@ public class BoxHandleUtil {
if
(
barcode
!=
null
)
{
boxStr
=
barcode
.
getBarcode
();
String
endStr
=
code
.
substring
(
code
.
length
()
-
1
);
//得到是A、B面
if
(
boxSideMap
.
get
(
boxStr
)
!=
null
)
{
/*
if (boxSideMap.get(boxStr) != null) {
endStr = boxSideMap.get(boxStr);
} else {
boxSideMap.put(boxStr, endStr);
}
}
*/
List
<
Barcode
>
subCodeList
=
barcode
.
getSubCodeList
();
if
(
subCodeList
==
null
){
subCodeList
=
new
ArrayList
<>();
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论