Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 85ee94db
由
zshaohui
编写于
2024-03-20 15:52:13 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1.料架入库或者出库的时候,特殊条码处理
2.资源翻译上传的时候,设置成已经修改
1 个父辈
9b40b286
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
26 行增加
和
0 行删除
src/main/java/com/neotel/smfcore/core/device/handler/impl/BaseDeviceHandler.java
src/main/java/com/neotel/smfcore/core/device/handler/impl/NLLShelfHandler.java
src/main/java/com/neotel/smfcore/core/device/handler/impl/NLMShelfHandler.java
src/main/java/com/neotel/smfcore/core/device/handler/impl/NLPShelfHandler.java
src/main/java/com/neotel/smfcore/core/device/handler/impl/NLShelfHandler.java
src/main/java/com/neotel/smfcore/core/language/util/LanguageMsgService.java
src/main/java/com/neotel/smfcore/core/device/handler/impl/BaseDeviceHandler.java
查看文件 @
85ee94d
...
@@ -1118,6 +1118,14 @@ public class BaseDeviceHandler implements IDeviceHandler {
...
@@ -1118,6 +1118,14 @@ public class BaseDeviceHandler implements IDeviceHandler {
}
}
}
}
protected
String
replaceSpecial
(
String
code
){
code
=
code
.
replace
(
"[RS]"
,
"$"
);
code
=
code
.
replace
(
"[GS]"
,
"$"
);
code
=
code
.
replace
(
"[EOT]"
,
"$"
);
return
code
;
}
@Override
@Override
public
DeviceType
getDeviceType
()
{
public
DeviceType
getDeviceType
()
{
return
DeviceType
.
DEFAULT
;
return
DeviceType
.
DEFAULT
;
...
...
src/main/java/com/neotel/smfcore/core/device/handler/impl/NLLShelfHandler.java
查看文件 @
85ee94d
...
@@ -104,6 +104,8 @@ public class NLLShelfHandler extends BaseDeviceHandler {
...
@@ -104,6 +104,8 @@ public class NLLShelfHandler extends BaseDeviceHandler {
throw
new
ValidateException
(
"smfcore.valueCanotNull"
,
"{0}不能为空"
,
new
String
[]{
"code"
});
throw
new
ValidateException
(
"smfcore.valueCanotNull"
,
"{0}不能为空"
,
new
String
[]{
"code"
});
}
}
code
=
replaceSpecial
(
code
);
Barcode
barcode
=
codeResolve
.
resolveOneValideBarcode
(
code
);
Barcode
barcode
=
codeResolve
.
resolveOneValideBarcode
(
code
);
if
(
barcode
==
null
)
{
if
(
barcode
==
null
)
{
throw
new
ValidateException
(
"smfcore.error.barcode.noValidCode"
,
"条码无效"
);
throw
new
ValidateException
(
"smfcore.error.barcode.noValidCode"
,
"条码无效"
);
...
@@ -185,6 +187,10 @@ public class NLLShelfHandler extends BaseDeviceHandler {
...
@@ -185,6 +187,10 @@ public class NLLShelfHandler extends BaseDeviceHandler {
String
posName
=
paramMap
.
get
(
"posName"
);
String
posName
=
paramMap
.
get
(
"posName"
);
String
code
=
paramMap
.
get
(
"code"
);
String
code
=
paramMap
.
get
(
"code"
);
if
(
StringUtils
.
isNotEmpty
(
code
)){
code
=
replaceSpecial
(
code
);
}
Barcode
barcode
=
codeResolve
.
resolveOneValideBarcode
(
code
);
Barcode
barcode
=
codeResolve
.
resolveOneValideBarcode
(
code
);
if
(
barcode
==
null
)
{
if
(
barcode
==
null
)
{
throw
new
ValidateException
(
"smfcore.error.barcode.noValidCode"
,
"条码无效"
);
throw
new
ValidateException
(
"smfcore.error.barcode.noValidCode"
,
"条码无效"
);
...
...
src/main/java/com/neotel/smfcore/core/device/handler/impl/NLMShelfHandler.java
查看文件 @
85ee94d
...
@@ -222,6 +222,9 @@ public class NLMShelfHandler extends BaseDeviceHandler {
...
@@ -222,6 +222,9 @@ public class NLMShelfHandler extends BaseDeviceHandler {
if
(
ObjectUtils
.
isEmpty
(
code
))
{
if
(
ObjectUtils
.
isEmpty
(
code
))
{
throw
new
ValidateException
(
"smfcore.valueCanotNull"
,
"{0}不能为空"
,
new
String
[]{
"code"
});
throw
new
ValidateException
(
"smfcore.valueCanotNull"
,
"{0}不能为空"
,
new
String
[]{
"code"
});
}
}
code
=
replaceSpecial
(
code
);
if
(
groupId
==
null
&&
storageId
==
null
)
{
if
(
groupId
==
null
&&
storageId
==
null
)
{
throw
new
ValidateException
(
"smfcore.valueCanotNull"
,
"{0}不能为空"
,
new
String
[]{
"group"
});
throw
new
ValidateException
(
"smfcore.valueCanotNull"
,
"{0}不能为空"
,
new
String
[]{
"group"
});
}
}
...
...
src/main/java/com/neotel/smfcore/core/device/handler/impl/NLPShelfHandler.java
查看文件 @
85ee94d
...
@@ -64,6 +64,9 @@ public class NLPShelfHandler extends BaseDeviceHandler {
...
@@ -64,6 +64,9 @@ public class NLPShelfHandler extends BaseDeviceHandler {
if
(
ObjectUtils
.
isEmpty
(
code
))
{
if
(
ObjectUtils
.
isEmpty
(
code
))
{
throw
new
ValidateException
(
"smfcore.valueCanotNull"
,
"{0}不能为空"
,
new
String
[]{
"code"
});
throw
new
ValidateException
(
"smfcore.valueCanotNull"
,
"{0}不能为空"
,
new
String
[]{
"code"
});
}
}
code
=
replaceSpecial
(
code
);
if
(
groupId
==
null
&&
storageId
==
null
)
{
if
(
groupId
==
null
&&
storageId
==
null
)
{
throw
new
ValidateException
(
"smfcore.valueCanotNull"
,
"{0}不能为空"
,
new
String
[]{
"group"
});
throw
new
ValidateException
(
"smfcore.valueCanotNull"
,
"{0}不能为空"
,
new
String
[]{
"group"
});
}
}
...
...
src/main/java/com/neotel/smfcore/core/device/handler/impl/NLShelfHandler.java
查看文件 @
85ee94d
...
@@ -270,6 +270,9 @@ public class NLShelfHandler extends BaseDeviceHandler {
...
@@ -270,6 +270,9 @@ public class NLShelfHandler extends BaseDeviceHandler {
if
(
ObjectUtils
.
isEmpty
(
code
))
{
if
(
ObjectUtils
.
isEmpty
(
code
))
{
throw
new
ValidateException
(
"smfcore.valueCanotNull"
,
"{0}不能为空"
,
new
String
[]{
"code"
});
throw
new
ValidateException
(
"smfcore.valueCanotNull"
,
"{0}不能为空"
,
new
String
[]{
"code"
});
}
}
code
=
replaceSpecial
(
code
);
if
(
groupId
==
null
&&
storageId
==
null
)
{
if
(
groupId
==
null
&&
storageId
==
null
)
{
throw
new
ValidateException
(
"smfcore.valueCanotNull"
,
"{0}不能为空"
,
new
String
[]{
"group"
});
throw
new
ValidateException
(
"smfcore.valueCanotNull"
,
"{0}不能为空"
,
new
String
[]{
"group"
});
}
}
...
...
src/main/java/com/neotel/smfcore/core/language/util/LanguageMsgService.java
查看文件 @
85ee94d
...
@@ -360,6 +360,9 @@ public class LanguageMsgService {
...
@@ -360,6 +360,9 @@ public class LanguageMsgService {
}
}
if
(
isUpdate
)
{
if
(
isUpdate
)
{
if
(
isNeedUpdate
)
{
oldMsg
.
setEdited
(
true
);
}
updateLanguageList
.
add
(
oldMsg
);
updateLanguageList
.
add
(
oldMsg
);
languageMsgManager
.
save
(
oldMsg
);
languageMsgManager
.
save
(
oldMsg
);
MessageUtils
.
updateMsg
(
oldMsg
);
MessageUtils
.
updateMsg
(
oldMsg
);
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论