Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 0863fd24
由
zshaohui
编写于
2024-07-09 11:02:00 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
code转大写
1 个父辈
59b40f0d
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
12 行增加
和
4 行删除
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/controller/CDeviceController.java
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/controller/GrPutInController.java
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/controller/CDeviceController.java
查看文件 @
0863fd2
...
...
@@ -149,6 +149,8 @@ public class CDeviceController {
return
ResultBean
.
newErrorResult
(-
1
,
"smfcore.valueCanotNull"
,
"{0}不能为空"
,
new
String
[]{
"物料信息"
});
}
codeStr
=
codeStr
.
toUpperCase
(
Locale
.
ROOT
);
if
(
StringUtils
.
isEmpty
(
materialStr
))
{
return
ResultBean
.
newErrorResult
(-
1
,
"smfcore.valueCanotNull"
,
"{0}不能为空"
,
new
String
[]{
"料串信息"
});
}
...
...
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/controller/GrPutInController.java
查看文件 @
0863fd2
...
...
@@ -29,10 +29,7 @@ import org.springframework.web.bind.annotation.RequestBody;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.*
;
@Slf4j
@RestController
...
...
@@ -134,6 +131,8 @@ public class GrPutInController {
log
.
info
(
"获取GR过账信息,料串为:"
+
materialStr
+
",物料为:"
+
codeStr
);
codeStr
=
codeStr
.
toUpperCase
(
Locale
.
ROOT
);
//解析条码为barcode
Barcode
barcode
=
codeResolve
.
resolveCode
(
codeStr
);
if
(
barcode
==
null
)
{
...
...
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/controller/manual/ManualGrPutInController.java
查看文件 @
0863fd2
...
...
@@ -89,6 +89,8 @@ public class ManualGrPutInController {
return
ResultBean
.
newErrorResult
(-
1
,
"smfcore.valueCanotNull"
,
"{0}不能为空"
,
new
String
[]{
"条码信息"
});
}
codeStr
=
codeStr
.
toUpperCase
(
Locale
.
ROOT
);
//解析条码为barcode
Barcode
barcode
=
codeResolve
.
resolveCode
(
codeStr
);
if
(
barcode
==
null
)
{
...
...
@@ -130,6 +132,8 @@ public class ManualGrPutInController {
return
ResultBean
.
newErrorResult
(-
1
,
"smfcore.valueCanotNull"
,
"{0}不能为空"
,
new
String
[]{
"料箱信息"
});
}
boxStr
=
boxStr
.
toUpperCase
(
Locale
.
ROOT
);
//如果不是C07,C13,C15开头的 报错
if
(!
boxStr
.
startsWith
(
"C07"
)
&&
!
boxStr
.
startsWith
(
"C13"
)
&&
!
boxStr
.
startsWith
(
"C15"
))
{
return
ResultBean
.
newErrorResult
(-
1
,
""
,
boxStr
+
"不是有效的料箱条码"
);
...
...
@@ -192,6 +196,9 @@ public class ManualGrPutInController {
return
ResultBean
.
newErrorResult
(-
1
,
"smfcore.valueCanotNull"
,
"{0}不能为空"
,
new
String
[]{
"料箱信息"
});
}
codeStr
=
codeStr
.
toUpperCase
(
Locale
.
ROOT
);
binCode
=
binCode
.
toUpperCase
(
Locale
.
ROOT
);
boxStr
=
boxStr
.
toUpperCase
(
Locale
.
ROOT
);
Barcode
noDbBarcode
=
codeResolve
.
resolveCode
(
codeStr
);
if
(
noDbBarcode
==
null
)
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论