Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit d062f820
由
LN
编写于
2023-09-08 13:23:31 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1.API超时时间改为60S
2.显示的库位号名称修改。 3.点料数量上传修改。
1 个父辈
b1e26fc4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
16 行增加
和
11 行删除
src/main/java/com/neotel/smfcore/common/utils/HttpHelper.java
src/main/java/com/neotel/smfcore/core/storage/rest/StoragePosController.java
src/main/java/com/neotel/smfcore/custom/micron1053/controller/MicronDeviceController.java
src/main/java/com/neotel/smfcore/custom/micron1053/task/enums/OrderItemStatus.java
src/main/java/com/neotel/smfcore/common/utils/HttpHelper.java
查看文件 @
d062f82
...
@@ -286,7 +286,7 @@ public class HttpHelper {
...
@@ -286,7 +286,7 @@ public class HttpHelper {
// }
// }
try
{
try
{
CloseableHttpClient
httpClient
=
HttpClients
.
createDefault
();
CloseableHttpClient
httpClient
=
HttpClients
.
createDefault
();
RequestConfig
requestConfig
=
RequestConfig
.
custom
().
setConnectTimeout
(
CONNECTION_TIMEOUT
).
setConnectionRequestTimeout
(
10000
).
setSocketTimeout
(
5
000
).
build
();
RequestConfig
requestConfig
=
RequestConfig
.
custom
().
setConnectTimeout
(
CONNECTION_TIMEOUT
).
setConnectionRequestTimeout
(
60000
).
setSocketTimeout
(
60
000
).
build
();
httpGet
.
setConfig
(
requestConfig
);
httpGet
.
setConfig
(
requestConfig
);
CloseableHttpResponse
response
=
httpClient
.
execute
(
httpGet
);
CloseableHttpResponse
response
=
httpClient
.
execute
(
httpGet
);
int
code
=
response
.
getStatusLine
().
getStatusCode
();
int
code
=
response
.
getStatusLine
().
getStatusCode
();
...
@@ -330,7 +330,7 @@ public class HttpHelper {
...
@@ -330,7 +330,7 @@ public class HttpHelper {
}
}
try
{
try
{
CloseableHttpClient
httpClient
=
HttpClients
.
createDefault
();
CloseableHttpClient
httpClient
=
HttpClients
.
createDefault
();
RequestConfig
requestConfig
=
RequestConfig
.
custom
().
setConnectTimeout
(
CONNECTION_TIMEOUT
).
setConnectionRequestTimeout
(
10000
).
setSocketTimeout
(
5
000
).
build
();
RequestConfig
requestConfig
=
RequestConfig
.
custom
().
setConnectTimeout
(
CONNECTION_TIMEOUT
).
setConnectionRequestTimeout
(
60000
).
setSocketTimeout
(
60
000
).
build
();
httpPost
.
setConfig
(
requestConfig
);
httpPost
.
setConfig
(
requestConfig
);
CloseableHttpResponse
response
=
httpClient
.
execute
(
httpPost
);
CloseableHttpResponse
response
=
httpClient
.
execute
(
httpPost
);
HttpEntity
entity
=
response
.
getEntity
();
HttpEntity
entity
=
response
.
getEntity
();
...
...
src/main/java/com/neotel/smfcore/core/storage/rest/StoragePosController.java
查看文件 @
d062f82
...
@@ -420,9 +420,14 @@ public class StoragePosController {
...
@@ -420,9 +420,14 @@ public class StoragePosController {
StoragePosDtos
.
get
(
i
).
setCid
(
storage
.
getCid
());
StoragePosDtos
.
get
(
i
).
setCid
(
storage
.
getCid
());
if
(
storage
.
isTHIRDBox
()){
if
(
storage
.
isTHIRDBox
()){
St
oragePosDtos
.
get
(
i
).
setPosName
(
storage
.
getCid
()
);
St
ring
posName
=
storage
.
getName
()
+
"_"
+
StoragePosDtos
.
get
(
i
).
getPosName
(
);
if
(
StoragePosDtos
.
get
(
i
).
getBarcode
()!=
null
){
if
(
StoragePosDtos
.
get
(
i
).
getBarcode
()!=
null
){
StoragePosDtos
.
get
(
i
).
getBarcode
().
setPosName
(
storage
.
getCid
());
StoragePosDtos
.
get
(
i
).
getBarcode
().
setPosName
(
posName
);
}
}
else
{
String
posName
=
storage
.
getName
()
+
"_"
+
StoragePosDtos
.
get
(
i
).
getPosName
();
if
(
StoragePosDtos
.
get
(
i
).
getBarcode
()!=
null
){
StoragePosDtos
.
get
(
i
).
getBarcode
().
setPosName
(
posName
);
}
}
}
}
...
...
src/main/java/com/neotel/smfcore/custom/micron1053/controller/MicronDeviceController.java
查看文件 @
d062f82
...
@@ -339,9 +339,9 @@ public class MicronDeviceController {
...
@@ -339,9 +339,9 @@ public class MicronDeviceController {
@PostMapping
(
value
=
"/updateReelQty"
)
@PostMapping
(
value
=
"/updateReelQty"
)
@ResponseBody
@ResponseBody
@AnonymousAccess
@AnonymousAccess
public
ResultBean
updateReelQty
(
@RequestBody
Map
<
String
,
Object
>
param
,
HttpServletRequest
request
)
{
public
ResultBean
updateReelQty
(
HttpServletRequest
request
)
{
String
barcodeStr
=
param
.
get
(
"barcode"
).
toString
();
String
barcodeStr
=
request
.
getParameter
(
"barcode"
).
toString
();
Integer
qty
=
Integer
.
parseInt
(
param
.
get
(
"qty"
).
toString
());
Integer
qty
=
Integer
.
parseInt
(
request
.
getParameter
(
"qty"
).
toString
());
log
.
info
(
"X-Ray点料完成:barcode="
+
barcodeStr
+
",qty="
+
qty
);
log
.
info
(
"X-Ray点料完成:barcode="
+
barcodeStr
+
",qty="
+
qty
);
Collection
<
CodeBean
>
codeBeans
=
codeResolve
.
resolveCodeStr
(
barcodeStr
,
COMPONENT_TYPE
.
COMPONENT
);
Collection
<
CodeBean
>
codeBeans
=
codeResolve
.
resolveCodeStr
(
barcodeStr
,
COMPONENT_TYPE
.
COMPONENT
);
Barcode
barcode
=
null
;
Barcode
barcode
=
null
;
...
...
src/main/java/com/neotel/smfcore/custom/micron1053/task/enums/OrderItemStatus.java
查看文件 @
d062f82
...
@@ -8,7 +8,7 @@ public class OrderItemStatus {
...
@@ -8,7 +8,7 @@ public class OrderItemStatus {
//缺料
//缺料
public
static
final
String
shortage
=
"SHORTAGE"
;
public
static
final
String
shortage
=
"SHORTAGE"
;
//MES扣除失败
//MES扣除失败
Api010返回失败的
public
static
final
String
executFail
=
"EXECUTFAIL"
;
public
static
final
String
executFail
=
"EXECUTFAIL"
;
//正在执行
//正在执行
...
@@ -18,14 +18,14 @@ public class OrderItemStatus {
...
@@ -18,14 +18,14 @@ public class OrderItemStatus {
//通知成功
//通知成功
public
static
final
String
notify_success
=
"SUCCESS"
;
public
static
final
String
notify_success
=
"SUCCESS"
;
//通知失败
//通知失败
Api007失败
public
static
final
String
notify_fail
=
"FAIL"
;
public
static
final
String
notify_fail
=
"FAIL"
;
//正常完成
public
static
final
String
finish
=
"FINISH"
;
public
static
final
String
finish
=
"FINISH"
;
//取消
public
static
final
String
cancel
=
"CANCEL"
;
public
static
final
String
cancel
=
"CANCEL"
;
//API009验证成功,可用
//API009验证成功,可用
public
static
final
String
CheckOk
=
"CheckOk"
;
public
static
final
String
CheckOk
=
"CheckOk"
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论