Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 253a9627
由
LN
编写于
2023-07-27 09:09:04 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
TriggerMatReqOrder 增加unitOfMeasures参数
1 个父辈
14b92928
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
8 行增加
和
3 行删除
src/main/java/com/neotel/smfcore/custom/micron20031/Micron20031Api.java
src/main/java/com/neotel/smfcore/custom/micron20031/MicronSpOrderController.java
src/main/java/com/neotel/smfcore/custom/micron20031/Micron20031Api.java
查看文件 @
253a962
...
@@ -664,8 +664,12 @@ public class Micron20031Api {
...
@@ -664,8 +664,12 @@ public class Micron20031Api {
Map
<
String
,
Object
>
resultMap
=
JsonUtil
.
toMap
(
resultJson
);
Map
<
String
,
Object
>
resultMap
=
JsonUtil
.
toMap
(
resultJson
);
Object
resultStatus
=
resultMap
.
get
(
"status"
);
Object
resultStatus
=
resultMap
.
get
(
"status"
);
if
(
resultStatus
!=
null
&&
!
resultStatus
.
toString
().
equalsIgnoreCase
(
"PASS"
))
{
if
(
resultStatus
!=
null
&&
!
resultStatus
.
toString
().
equalsIgnoreCase
(
"PASS"
))
{
String
msg
=
resultMap
.
get
(
"message"
).
toString
();
Object
msgObj
=
resultMap
.
get
(
"message"
)
;
throw
new
ApiException
(
"smfcore.api.error"
,
msg
);
if
(
ObjectUtil
.
isEmpty
(
msgObj
)){
throw
new
ApiException
(
"smfcore.api.error"
,
"status="
+
resultStatus
);
}
else
{
throw
new
ApiException
(
"smfcore.api.error"
,
msgObj
.
toString
());
}
}
}
if
(
key
!=
null
&&
!
key
.
isEmpty
())
{
if
(
key
!=
null
&&
!
key
.
isEmpty
())
{
Object
value
=
resultMap
.
get
(
key
);
Object
value
=
resultMap
.
get
(
key
);
...
...
src/main/java/com/neotel/smfcore/custom/micron20031/MicronSpOrderController.java
查看文件 @
253a962
...
@@ -78,10 +78,11 @@ public class MicronSpOrderController {
...
@@ -78,10 +78,11 @@ public class MicronSpOrderController {
@ApiOperation
(
"修改PN数量后提交"
)
@ApiOperation
(
"修改PN数量后提交"
)
@RequestMapping
(
value
=
"/submitPn"
)
@RequestMapping
(
value
=
"/submitPn"
)
public
ResultBean
submitPn
(
String
partNumber
,
Integer
qty
)
{
public
ResultBean
submitPn
(
String
partNumber
,
Integer
qty
,
String
unitOfMeasures
)
{
MatOrderBean
bean
=
new
MatOrderBean
();
MatOrderBean
bean
=
new
MatOrderBean
();
bean
.
setMicronPN
(
partNumber
);
bean
.
setMicronPN
(
partNumber
);
bean
.
setQuantity
(
qty
);
bean
.
setQuantity
(
qty
);
bean
.
setUnitOfMeasures
(
unitOfMeasures
);
//
//
// Map<String, String> map=new HashMap<>();
// Map<String, String> map=new HashMap<>();
// map.put("partNumber",partNumber);
// map.put("partNumber",partNumber);
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论