Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit ddc1e591
由
zshaohui
编写于
2024-03-21 15:30:11 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
returnMaterial 增加备注字段
1 个父辈
a97f1ab4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
13 行增加
和
3 行删除
src/main/java/com/neotel/smfcore/core/storage/rest/dto/CheckOutDto.java
src/main/java/com/neotel/smfcore/custom/micron20031/Micron20031Api.java
src/main/java/com/neotel/smfcore/custom/micron20031/MicronSpApiListener.java
src/main/java/com/neotel/smfcore/custom/micron20031/MicronSpUnloadController.java
src/main/java/com/neotel/smfcore/core/storage/rest/dto/CheckOutDto.java
查看文件 @
ddc1e59
...
...
@@ -9,4 +9,6 @@ public class CheckOutDto {
private
String
[]
pids
;
@ApiModelProperty
(
"是否是单盘出库"
)
private
String
singleOut
;
@ApiModelProperty
(
"备注"
)
private
String
comments
;
}
src/main/java/com/neotel/smfcore/custom/micron20031/Micron20031Api.java
查看文件 @
ddc1e59
...
...
@@ -790,7 +790,7 @@ public class Micron20031Api {
* //Input: TypeofReturn, MicronPN, LotNo, BatchNo, Location, RemainingQuantity, Mode, Username, SystemId, MaterialType
* //Output: TypeofReturn, MicronPN, LotNo, BatchNo, Location, RemainingQuantity, Mode, Username, SystemId, MaterialType, Message, Status, ExpiredDate
*/
public
static
Barcode
returnMaterial
(
Barcode
barcode
,
String
typeOfReturn
,
String
username
)
throws
ApiException
{
public
static
Barcode
returnMaterial
(
Barcode
barcode
,
String
typeOfReturn
,
String
username
,
String
comments
)
throws
ApiException
{
String
checkStockAvailableUrl
=
getUrl
(
api_ReturnMaterial
);
if
(
ObjectUtil
.
isEmpty
(
checkStockAvailableUrl
)){
return
barcode
;
...
...
@@ -807,6 +807,7 @@ public class Micron20031Api {
dataMap
.
put
(
"Username"
,
username
);
dataMap
.
put
(
"SystemID"
,
"SPMMS"
);
dataMap
.
put
(
"MaterialType"
,
MATERIAL_TYPE
);
dataMap
.
put
(
"Comments"
,
comments
);
log
.
info
(
"调用MES接口 ReturnMaterial type="
+
typeOfReturn
+
",参数:"
+
JsonUtil
.
toJsonStr
(
dataMap
));
String
resultStr
=
HttpHelper
.
postJsonWithAuth
(
checkStockAvailableUrl
,
dataMap
,
auth
);
...
...
src/main/java/com/neotel/smfcore/custom/micron20031/MicronSpApiListener.java
查看文件 @
ddc1e59
...
...
@@ -108,7 +108,7 @@ public class MicronSpApiListener extends BaseSmfApiListener {
//普通入库验证 调用return
try
{
log
.
info
(
"canPutInAfterResolve 普通入库验证 调用return"
);
Barcode
resultBarcode
=
Micron20031Api
.
returnMaterial
(
barcode
,
Micron20031Api
.
NORMAL_RETURN
,
params
.
getLoginUser
());
Barcode
resultBarcode
=
Micron20031Api
.
returnMaterial
(
barcode
,
Micron20031Api
.
NORMAL_RETURN
,
params
.
getLoginUser
()
,
""
);
if
(
resultBarcode
!=
null
)
{
return
resultBarcode
;
}
...
...
src/main/java/com/neotel/smfcore/custom/micron20031/MicronSpUnloadController.java
查看文件 @
ddc1e59
...
...
@@ -6,6 +6,7 @@ import com.neotel.smfcore.common.bean.ResultBean;
import
com.neotel.smfcore.common.exception.ApiException
;
import
com.neotel.smfcore.common.exception.ValidateException
;
import
com.neotel.smfcore.common.utils.SecurityUtils
;
import
com.neotel.smfcore.common.utils.StringUtils
;
import
com.neotel.smfcore.core.barcode.service.po.Barcode
;
import
com.neotel.smfcore.core.device.util.DataCache
;
import
com.neotel.smfcore.core.storage.enums.CHECKOUT_TYPE
;
...
...
@@ -175,6 +176,12 @@ public class MicronSpUnloadController {
if
(
checkOutDto
.
getSingleOut
()
==
null
)
{
checkOutDto
.
setSingleOut
(
true
+
""
);
}
String
comments
=
checkOutDto
.
getComments
();
if
(
StringUtils
.
isEmpty
(
comments
)){
throw
new
ValidateException
(
"smfcore.valueCanotNull"
,
"{0}不能为空"
,
new
String
[]{
"comments"
});
}
String
isSingleOutStr
=
checkOutDto
.
getSingleOut
();
boolean
isSingleOut
=
Boolean
.
valueOf
(
isSingleOutStr
);
...
...
@@ -193,7 +200,7 @@ public class MicronSpUnloadController {
int
unloakOk
=
0
;
try
{
//接口验证能否出库
Barcode
barcode
=
Micron20031Api
.
returnMaterial
(
pos
.
getBarcode
(),
Micron20031Api
.
EXPIRED_DISPOSAL
,
SecurityUtils
.
getCurrentUsername
());
Barcode
barcode
=
Micron20031Api
.
returnMaterial
(
pos
.
getBarcode
(),
Micron20031Api
.
EXPIRED_DISPOSAL
,
SecurityUtils
.
getCurrentUsername
()
,
comments
);
if
(
barcode
!=
null
)
{
log
.
info
(
"removal 料仓【"
+
storage
.
getName
()
+
"_"
+
storage
.
getCid
()
+
"】仓位【"
+
pos
.
getPosName
()
+
"】 returnMaterial 成功,开始出库"
);
try
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论