Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 8fee91db
由
zshaohui
编写于
2023-03-02 15:23:07 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
松亚入库判断接口修改
1 个父辈
def3ef94
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
6 行增加
和
4 行删除
src/main/java/com/neotel/smfcore/custom/sungya20456/SungyaApi.java
src/main/java/com/neotel/smfcore/custom/sungya20456/bean/Item.java
src/main/java/com/neotel/smfcore/custom/sungya20456/SungyaApi.java
查看文件 @
8fee91d
package
com
.
neotel
.
smfcore
.
custom
.
sungya20456
;
import
com.alibaba.fastjson.JSONObject
;
import
com.neotel.smfcore.common.exception.ApiException
;
import
com.neotel.smfcore.common.exception.ValidateException
;
import
com.neotel.smfcore.common.utils.DateUtil
;
...
...
@@ -22,6 +23,7 @@ import com.neotel.smfcore.core.storage.service.po.Storage;
import
com.neotel.smfcore.core.system.service.po.DataLog
;
import
com.neotel.smfcore.custom.sungya20456.bean.Item
;
import
com.neotel.smfcore.custom.sungya20456.bean.SungyaResult
;
import
com.sun.corba.se.pept.transport.InboundConnectionCache
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -78,7 +80,7 @@ public class SungyaApi extends BaseSmfApiListener {
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
paramMap
.
put
(
"funcname"
,
"INWHCK"
);
Map
<
String
,
String
>
bodyMap
=
new
HashMap
<>();
bodyMap
.
put
(
"reelId"
,
barcode
.
getBarc
ode
());
bodyMap
.
put
(
"reelId"
,
StringUtils
.
isBlank
(
barcode
.
getFullCode
())
?
barcode
.
getBarcode
()
:
barcode
.
getFullC
ode
());
bodyMap
.
put
(
"fullCode"
,
StringUtils
.
isBlank
(
barcode
.
getFullCode
())
?
barcode
.
getBarcode
()
:
barcode
.
getFullCode
());
paramMap
.
put
(
"body"
,
bodyMap
);
...
...
@@ -98,8 +100,8 @@ public class SungyaApi extends BaseSmfApiListener {
barcode
.
setProvider
(
item
.
getVendor
());
}
//物料数量
if
(
item
.
getQty
()
!=
null
)
{
barcode
.
setAmount
(
item
.
getQty
(
));
if
(
StringUtils
.
isNotBlank
(
item
.
getQty
())
)
{
barcode
.
setAmount
(
JSONObject
.
parseObject
(
item
.
getQty
(),
Integer
.
class
));
}
//尺寸
if
(
item
.
getW
()
!=
null
)
{
...
...
src/main/java/com/neotel/smfcore/custom/sungya20456/bean/Item.java
查看文件 @
8fee91d
...
...
@@ -17,7 +17,7 @@ public class Item {
/**
* 物料数量
*/
private
Integer
qty
;
private
String
qty
;
/**
* 尺寸
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论