Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 79066491
由
zshaohui
编写于
2024-06-17 14:37:23 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1.功能优化提交
1 个父辈
910d50a1
全部展开
显示空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
234 行增加
和
40 行删除
src/main/java/com/neotel/smfcore/common/init/DataInitManager.java
src/main/java/com/neotel/smfcore/core/order/LiteOrderCache.java
src/main/java/com/neotel/smfcore/core/system/service/po/DataLog.java
src/main/java/com/neotel/smfcore/custom/lizhen/agvBox/rest/OutLineController.java
src/main/java/com/neotel/smfcore/custom/luxsan/api/LuxsanApi.java
src/main/java/com/neotel/smfcore/custom/luxsan/api/bean/request/TicketMoveRequest.java
src/main/java/com/neotel/smfcore/custom/luxsan/api/bean/request/TicketUpRequest.java
src/main/java/com/neotel/smfcore/custom/luxsan/api/bean/result/TicketMoveResult.java
src/main/java/com/neotel/smfcore/custom/luxsan/api/bean/result/TicketUpResult.java
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/controller/CDeviceController.java
src/main/resources/config/application-21088prod.yml
src/main/resources/config/application-21088test.yml
src/main/java/com/neotel/smfcore/common/init/DataInitManager.java
查看文件 @
7906649
...
...
@@ -196,14 +196,14 @@ public class DataInitManager {
addNewFunctionMenu
(
4
,
raw
,
"storageTransfer"
,
"储位转移"
,
"storageTransfer"
,
"storageTransfer/index"
,
"transfer"
,
functionMenuMap
);
//手动入库
addNewFunctionMenu
(
8
,
raw
,
"manualWarehous"
,
"手动入库"
,
"manualWarehous"
,
"manualWarehous/index"
,
"manualWa"
,
functionMenuMap
);
//
addNewFunctionMenu(8, raw, "manualWarehous", "手动入库", "manualWarehous", "manualWarehous/index", "manualWa", functionMenuMap);
Menu
doc
=
Menu
.
CreatePMenu
(
"单据操作"
,
9
,
"doc"
,
1
,
"docOp"
,
raw
);
Menu
doc
=
Menu
.
CreatePMenu
(
"单据操作"
,
5
,
"doc"
,
1
,
"docOp"
,
raw
);
//931单据领料
addNewFunctionMenu
(
1
,
doc
,
"docMaterialRe"
,
"单据
领料
"
,
"docMaterialRe"
,
"receipt/docMaterialRe/index"
,
"docMaterial"
,
functionMenuMap
);
addNewFunctionMenu
(
1
,
doc
,
"docMaterialRe"
,
"单据
分配
"
,
"docMaterialRe"
,
"receipt/docMaterialRe/index"
,
"docMaterial"
,
functionMenuMap
);
//单据转库
addNewFunctionMenu
(
2
,
doc
,
"docTransferWarehous"
,
"单据转库"
,
"docTransferWarehous"
,
"receipt/docTransferWarehous/index"
,
"docTransfer"
,
functionMenuMap
);
...
...
@@ -212,7 +212,7 @@ public class DataInitManager {
addNewFunctionMenu
(
3
,
doc
,
"docReturn"
,
"单据退料"
,
"docReturn"
,
"receipt/docReturn/index"
,
"docRe"
,
functionMenuMap
);
//手动出库
addNewFunctionMenu
(
4
,
doc
,
"outVir"
,
"手动出库"
,
"outVir"
,
"outVir/index"
,
"docOut"
,
functionMenuMap
);
addNewFunctionMenu
(
6
,
raw
,
"outVir"
,
"手动出库"
,
"outVir"
,
"outVir/index"
,
"docOut"
,
functionMenuMap
);
//addNewFunctionMenu(132,null,"outPage","线外入库","outPage","outers/outPage/index","index",functionMenuMap);
...
...
src/main/java/com/neotel/smfcore/core/order/LiteOrderCache.java
查看文件 @
7906649
此文件的差异被折叠,
点击展开。
src/main/java/com/neotel/smfcore/core/system/service/po/DataLog.java
查看文件 @
7906649
...
...
@@ -379,6 +379,9 @@ public class DataLog extends BasePo implements Serializable {
private
boolean
callEmptyBox
=
false
;
//任务优先级
private
int
priority
=
0
;
public
String
getBarcode
()
{
if
(
barcode
==
null
){
...
...
src/main/java/com/neotel/smfcore/custom/lizhen/agvBox/rest/OutLineController.java
查看文件 @
7906649
...
...
@@ -820,71 +820,73 @@ public class OutLineController {
List
<
Integer
>
partition1
=
new
ArrayList
<>();
partition1
.
add
(
getCountByPartition
(
needOutCountMap
,
boxStr
+
"-01"
));
partition1
.
add
(
getCountByPartition
(
allCountMap
,
boxStr
+
"-01"
));
partition1
.
add
(
1
);
List
<
Integer
>
partition2
=
new
ArrayList
<>();
partition2
.
add
(
getCountByPartition
(
needOutCountMap
,
boxStr
+
"-02"
));
partition2
.
add
(
getCountByPartition
(
allCountMap
,
boxStr
+
"-02"
));
partition2
.
add
(
2
);
List
<
Integer
>
partition3
=
new
ArrayList
<>();
partition3
.
add
(
getCountByPartition
(
needOutCountMap
,
boxStr
+
"-03"
));
partition3
.
add
(
getCountByPartition
(
allCountMap
,
boxStr
+
"-03"
));
partition3
.
add
(
3
);
List
<
Integer
>
partition4
=
new
ArrayList
<>();
partition4
.
add
(
getCountByPartition
(
needOutCountMap
,
boxStr
+
"-04"
));
partition4
.
add
(
getCountByPartition
(
allCountMap
,
boxStr
+
"-04"
));
partition4
.
add
(
4
);
List
<
Integer
>
partition5
=
new
ArrayList
<>();
partition5
.
add
(
getCountByPartition
(
needOutCountMap
,
boxStr
+
"-05"
));
partition5
.
add
(
getCountByPartition
(
allCountMap
,
boxStr
+
"-05"
));
partition5
.
add
(
5
);
List
<
Integer
>
partition6
=
new
ArrayList
<>();
partition6
.
add
(
getCountByPartition
(
needOutCountMap
,
boxStr
+
"-06"
));
partition6
.
add
(
getCountByPartition
(
allCountMap
,
boxStr
+
"-06"
));
List
<
Integer
>
partition7
=
new
ArrayList
<>();
partition7
.
add
(
getCountByPartition
(
needOutCountMap
,
boxStr
+
"-07"
));
partition7
.
add
(
getCountByPartition
(
allCountMap
,
boxStr
+
"-07"
));
List
<
Integer
>
partition8
=
new
ArrayList
<>();
partition8
.
add
(
getCountByPartition
(
needOutCountMap
,
boxStr
+
"-08"
));
partition8
.
add
(
getCountByPartition
(
allCountMap
,
boxStr
+
"-08"
));
partition6
.
add
(
6
);
//根据箱子面展示不同的隔扣
if
(
boxStr
.
startsWith
(
"C07"
))
{
platsize
=
"7"
;
if
(
"A"
.
equals
(
endStr
))
{
boxPartitionCounts
.
add
(
partition
8
);
boxPartitionCounts
.
add
(
partition
7
);
boxPartitionCounts
.
add
(
partition
2
);
boxPartitionCounts
.
add
(
partition
4
);
boxPartitionCounts
.
add
(
partition6
);
boxPartitionCounts
.
add
(
partition5
);
boxPartitionCounts
.
add
(
partition1
);
boxPartitionCounts
.
add
(
partition2
);
boxPartitionCounts
.
add
(
partition3
);
boxPartitionCounts
.
add
(
partition
4
);
boxPartitionCounts
.
add
(
partition
5
);
}
else
{
boxPartitionCounts
.
add
(
partition
4
);
boxPartitionCounts
.
add
(
partition
5
);
boxPartitionCounts
.
add
(
partition3
);
boxPartitionCounts
.
add
(
partition2
);
boxPartitionCounts
.
add
(
partition1
);
boxPartitionCounts
.
add
(
partition5
);
boxPartitionCounts
.
add
(
partition6
);
boxPartitionCounts
.
add
(
partition
7
);
boxPartitionCounts
.
add
(
partition
8
);
boxPartitionCounts
.
add
(
partition
4
);
boxPartitionCounts
.
add
(
partition
2
);
}
}
else
if
(
boxStr
.
startsWith
(
"C13"
))
{
platsize
=
"13"
;
if
(
"A"
.
equals
(
endStr
))
{
boxPartitionCounts
.
add
(
partition3
);
boxPartitionCounts
.
add
(
partition2
);
boxPartitionCounts
.
add
(
partition1
);
}
else
{
boxPartitionCounts
.
add
(
partition1
);
boxPartitionCounts
.
add
(
partition2
);
boxPartitionCounts
.
add
(
partition3
);
}
else
{
boxPartitionCounts
.
add
(
partition3
);
boxPartitionCounts
.
add
(
partition2
);
boxPartitionCounts
.
add
(
partition1
);
}
}
else
if
(
boxStr
.
startsWith
(
"C15"
))
{
platsize
=
"15"
;
if
(
"A"
.
equals
(
endStr
))
{
boxPartitionCounts
.
add
(
partition3
);
boxPartitionCounts
.
add
(
partition2
);
boxPartitionCounts
.
add
(
partition1
);
}
else
{
boxPartitionCounts
.
add
(
partition1
);
boxPartitionCounts
.
add
(
partition2
);
boxPartitionCounts
.
add
(
partition3
);
}
else
{
boxPartitionCounts
.
add
(
partition3
);
boxPartitionCounts
.
add
(
partition2
);
boxPartitionCounts
.
add
(
partition1
);
}
}
boxAllCount
=
boxAllCountMap
.
get
(
boxStr
)
==
null
?
0
:
boxAllCountMap
.
get
(
boxStr
);
...
...
src/main/java/com/neotel/smfcore/custom/luxsan/api/LuxsanApi.java
查看文件 @
7906649
...
...
@@ -859,7 +859,7 @@ public class LuxsanApi extends DefaultSmfApiListener {
}
public
static
void
binMove
(
BinMoveRequest
request
)
{
public
static
BinMoveResult
binMove
(
BinMoveRequest
request
)
{
log
.
info
(
"binMoveUrl接口请求参数为:"
+
JSON
.
toJSONString
(
request
));
try
{
String
resultStr
=
HttpHelper
.
postJson
(
binMoveUrl
,
request
);
...
...
@@ -869,10 +869,14 @@ public class LuxsanApi extends DefaultSmfApiListener {
if
(
LuxsanApiEnum
.
ERROR
.
equals
(
apiResult
.
getMSGTY
()))
{
throw
new
ValidateException
(
"smfcore.api.error"
,
"接口请求失败[{0}]"
,
new
String
[]{
apiResult
.
getMSGTX
()});
}
if
(
apiResult
.
getDATA
()
!=
null
)
{
return
JSONObject
.
parseObject
(
apiResult
.
getDATA
(),
BinMoveResult
.
class
);
}
}
catch
(
ApiException
e
)
{
e
.
printStackTrace
();
throw
new
ValidateException
(
"smfcore.api.error"
,
"接口请求失败[{0}]"
,
new
String
[]{
e
.
getMessage
()});
}
throw
new
ValidateException
(
"smfcore.api.error"
,
"接口请求失败[{0}]"
,
new
String
[]{
"储位移转失败"
});
}
...
...
@@ -966,6 +970,46 @@ public class LuxsanApi extends DefaultSmfApiListener {
}
}
public
static
TicketMoveResult
ticketMove
(
TicketMoveRequest
request
)
{
log
.
info
(
"ticketMove接口请求参数为:"
+
JSON
.
toJSONString
(
request
));
try
{
String
resultStr
=
HttpHelper
.
postJson
(
ticketMoveUrl
,
request
);
log
.
info
(
"ticketMove接口返回为:"
+
resultStr
);
LuxsanApiResult
apiResult
=
JSONObject
.
parseObject
(
resultStr
,
LuxsanApiResult
.
class
);
if
(
LuxsanApiEnum
.
ERROR
.
equals
(
apiResult
.
getMSGTY
()))
{
throw
new
ValidateException
(
"smfcore.api.error"
,
"接口请求失败[{0}]"
,
new
String
[]{
apiResult
.
getMSGTX
()});
}
TicketMoveResult
result
=
JSONObject
.
parseObject
(
apiResult
.
getDATA
(),
TicketMoveResult
.
class
);
return
result
;
}
catch
(
ApiException
e
)
{
e
.
printStackTrace
();
throw
new
ValidateException
(
"smfcore.api.error"
,
"接口请求失败[{0}]"
,
new
String
[]{
e
.
getMessage
()});
}
}
public
static
TicketUpResult
ticketUp
(
TicketUpRequest
request
)
{
log
.
info
(
"ticketUp接口请求参数为:"
+
JSON
.
toJSONString
(
request
));
try
{
String
resultStr
=
HttpHelper
.
postJson
(
ticketUpUrl
,
request
);
log
.
info
(
"ticketUp接口返回为:"
+
resultStr
);
LuxsanApiResult
apiResult
=
JSONObject
.
parseObject
(
resultStr
,
LuxsanApiResult
.
class
);
if
(
LuxsanApiEnum
.
ERROR
.
equals
(
apiResult
.
getMSGTY
()))
{
throw
new
ValidateException
(
"smfcore.api.error"
,
"接口请求失败[{0}]"
,
new
String
[]{
apiResult
.
getMSGTX
()});
}
TicketUpResult
result
=
JSONObject
.
parseObject
(
apiResult
.
getDATA
(),
TicketUpResult
.
class
);
return
result
;
}
catch
(
ApiException
e
)
{
e
.
printStackTrace
();
throw
new
ValidateException
(
"smfcore.api.error"
,
"接口请求失败[{0}]"
,
new
String
[]{
e
.
getMessage
()});
}
}
@Override
public
void
outTaskStatusChange
(
String
outNotifyUrl
,
DataLog
task
)
{
...
...
@@ -1232,4 +1276,19 @@ public class LuxsanApi extends DefaultSmfApiListener {
public
void
setCancelOdnUrl
(
String
url
){
LuxsanApi
.
cancelOdnUrl
=
url
;
}
public
static
String
ticketMoveUrl
;
@Value
(
"${api.ticketMove}"
)
public
void
setTicketMoveUrl
(
String
url
){
LuxsanApi
.
ticketMoveUrl
=
url
;
}
//ticketUp
public
static
String
ticketUpUrl
;
@Value
(
"${api.ticketUp}"
)
public
void
setTicketUpUrl
(
String
url
){
LuxsanApi
.
ticketUpUrl
=
url
;
}
}
src/main/java/com/neotel/smfcore/custom/luxsan/api/bean/request/TicketMoveRequest.java
0 → 100644
查看文件 @
7906649
package
com
.
neotel
.
smfcore
.
custom
.
luxsan
.
api
.
bean
.
request
;
import
io.swagger.annotations.Api
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
java.util.List
;
@Api
(
tags
=
"自动仓内单据转库"
)
@Data
@AllArgsConstructor
public
class
TicketMoveRequest
{
// 厂区
private
String
PLANT_CODE
;
// 单据号
private
String
TICKET_CODE
;
// 单据行
private
String
TICKET_ITEM
;
// 储位号
private
String
BIN_CODE
;
// 料卷行
private
List
<
String
>
REEL_LIST
;
}
src/main/java/com/neotel/smfcore/custom/luxsan/api/bean/request/TicketUpRequest.java
0 → 100644
查看文件 @
7906649
package
com
.
neotel
.
smfcore
.
custom
.
luxsan
.
api
.
bean
.
request
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
java.util.List
;
@Data
@AllArgsConstructor
public
class
TicketUpRequest
{
private
String
PLANT_CODE
;
private
String
TICKET_CODE
;
private
String
TICKET_ITEM
;
private
String
BIN_CODE
;
private
List
<
String
>
REEL_LIST
;
}
src/main/java/com/neotel/smfcore/custom/luxsan/api/bean/result/TicketMoveResult.java
0 → 100644
查看文件 @
7906649
package
com
.
neotel
.
smfcore
.
custom
.
luxsan
.
api
.
bean
.
result
;
import
lombok.Data
;
@Data
public
class
TicketMoveResult
{
}
src/main/java/com/neotel/smfcore/custom/luxsan/api/bean/result/TicketUpResult.java
0 → 100644
查看文件 @
7906649
package
com
.
neotel
.
smfcore
.
custom
.
luxsan
.
api
.
bean
.
result
;
import
lombok.Data
;
@Data
public
class
TicketUpResult
{
}
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/controller/CDeviceController.java
查看文件 @
7906649
package
com
.
neotel
.
smfcore
.
custom
.
luxsan
.
factory_c
.
rawstor
.
controller
;
import
cn.hutool.extra.spring.SpringUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.neotel.smfcore.common.bean.ReelLockPosInfo
;
import
com.neotel.smfcore.common.bean.ResultBean
;
...
...
@@ -26,9 +27,12 @@ import com.neotel.smfcore.core.storage.service.po.StoragePos;
import
com.neotel.smfcore.core.system.service.po.DataLog
;
import
com.neotel.smfcore.core.system.util.TaskService
;
import
com.neotel.smfcore.custom.luxsan.api.LuxsanApi
;
import
com.neotel.smfcore.custom.luxsan.api.bean.request.
NewLabelToCellRequest
;
import
com.neotel.smfcore.custom.luxsan.api.bean.re
quest.PickingIssueReques
t
;
import
com.neotel.smfcore.custom.luxsan.api.bean.request.
*
;
import
com.neotel.smfcore.custom.luxsan.api.bean.re
sult.BinMoveResul
t
;
import
com.neotel.smfcore.custom.luxsan.factory_c.rawstor.bean.BindGrInfo
;
import
com.neotel.smfcore.custom.luxsan.factory_c.rawstor.bean.StorTransfer
;
import
com.neotel.smfcore.custom.luxsan.factory_c.rawstor.bean.TicketReturn
;
import
com.neotel.smfcore.custom.luxsan.factory_c.rawstor.bean.TicketTransfer
;
import
com.neotel.smfcore.custom.luxsan.factory_c.rawstor.bean.dto.CtuTask
;
import
com.neotel.smfcore.custom.luxsan.factory_c.rawstor.bean.dto.ValidBin
;
import
com.neotel.smfcore.custom.luxsan.factory_c.rawstor.enums.LiteorderCheckType
;
...
...
@@ -185,6 +189,8 @@ public class CDeviceController {
if
(
boxBarcode
!=
null
){
//判断隔口是否可以放入
if
(
BinCacheUtil
.
canPutInBinCode
(
binCodeStr
,
warhouseCode
))
{
//绑定gr
if
(
MaterialUtil
.
bindGr
(
materialStr
)){
BindGrInfo
bindGrInfo
=
MaterialUtil
.
getBindGrInfo
(
materialStr
);
LuxsanApi
.
newLabelToCell
(
new
NewLabelToCellRequest
(
...
...
@@ -197,6 +203,29 @@ public class CDeviceController {
Date
grDate
=
DateUtil
.
getNoTimeDate
(
bindGrInfo
.
getGrDate
());
barcode
.
setProduceDate
(
grDate
);
}
//储位移转
else
if
(
MaterialUtil
.
storTransfer
(
materialStr
)){
BinMoveResult
binMoveResult
=
LuxsanApi
.
binMove
(
new
BinMoveRequest
(
CommonUtil
.
plantCode
,
binCodeStr
,
Arrays
.
asList
(
barcode
.
getBarcode
()),
barcode
.
getAmount
()));
if
(
StringUtils
.
isNotEmpty
(
binMoveResult
.
getGR_DATE
())){
Date
grDate
=
DateUtil
.
getNoTimeDate
(
binMoveResult
.
getGR_DATE
());
barcode
.
setProduceDate
(
grDate
);
}
}
//单据转库
else
if
(
MaterialUtil
.
ticketTransfer
(
materialStr
)){
TicketTransfer
transfer
=
MaterialUtil
.
getTicketTransferInfo
(
materialStr
);
LuxsanApi
.
ticketMove
(
new
TicketMoveRequest
(
CommonUtil
.
plantCode
,
transfer
.
getTicket
(),
transfer
.
getTicketItem
(),
binCodeStr
,
Arrays
.
asList
(
barcode
.
getBarcode
())));
}
//单据退库上架
else
if
(
MaterialUtil
.
ticketReturn
(
materialStr
)){
TicketReturn
ticketReturn
=
MaterialUtil
.
getTicketReturnInfo
(
materialStr
);
LuxsanApi
.
ticketUp
(
new
TicketUpRequest
(
CommonUtil
.
plantCode
,
ticketReturn
.
getTicket
(),
ticketReturn
.
getTicketItem
(),
binCodeStr
,
Arrays
.
asList
(
barcode
.
getBarcode
())));
}
barcode
.
setPosName
(
binCodeStr
);
barcode
.
setWarehouseCode
(
warhouseCode
);
barcode
.
setBarSource
(
soucre
);
...
...
@@ -536,21 +565,49 @@ public class CDeviceController {
String
stackerId
=
paramMap
.
get
(
"stackerId"
);
String
binListStr
=
paramMap
.
get
(
"binList"
);
String
source
=
paramMap
.
get
(
"source"
);
String
needBinCodeStr
=
paramMap
.
get
(
"needBinCodeStr"
);
List
<
String
>
validBinList
=
new
ArrayList
<
String
>();
log
.
info
(
"入料机构获取料串["
+
stackerId
+
"]的可用料格["
+
binListStr
+
"],入料机构为["
+
source
+
"]"
);
log
.
info
(
"入料机构获取料串["
+
stackerId
+
"]的可用料格["
+
binListStr
+
"],入料机构为["
+
source
+
"],需要的料格信息为:"
+
needBinCodeStr
);
if
(
MaterialUtil
.
bindInfo
(
stackerId
))
{
return
ResultBean
.
newErrorResult
(-
1
,
"error.nobind"
,
"料串["
+
stackerId
+
"]未绑定任何信息"
);
}
String
partNumber
=
""
;
String
provider
=
""
;
String
dateStr
=
""
;
if
(
MaterialUtil
.
storTransfer
(
stackerId
))
{
StorTransfer
storTransfer
=
MaterialUtil
.
getStorTransferInfo
(
stackerId
);
partNumber
=
storTransfer
.
getMaterialStr
();
provider
=
storTransfer
.
getProvider
();
}
else
if
(
MaterialUtil
.
ticketTransfer
(
stackerId
)){
TicketTransfer
ticketTransfer
=
MaterialUtil
.
getTicketTransferInfo
(
stackerId
);
partNumber
=
ticketTransfer
.
getPn
();
provider
=
ticketTransfer
.
getProvider
();
}
else
if
(
MaterialUtil
.
ticketReturn
(
stackerId
)){
TicketReturn
ticketReturn
=
MaterialUtil
.
getTicketReturnInfo
(
stackerId
);
partNumber
=
ticketReturn
.
getPn
();
provider
=
ticketReturn
.
getProvider
();
}
else
if
(
MaterialUtil
.
bindGr
(
stackerId
)){
BindGrInfo
bindGrInfo
=
MaterialUtil
.
getBindGrInfo
(
stackerId
);
if
(
bindGrInfo
==
null
)
{
return
ResultBean
.
newErrorResult
(-
1
,
"error.nobind"
,
"料串["
+
stackerId
+
"]未绑定GR"
);
partNumber
=
bindGrInfo
.
getMaterialCode
();
provider
=
bindGrInfo
.
getBrand
();
dateStr
=
bindGrInfo
.
getGrDate
();
}
Barcode
stackerBarcode
=
new
Barcode
();
stackerBarcode
.
setBarcode
(
stackerId
);
stackerBarcode
.
setPartNumber
(
bindGrInfo
.
getMaterialCode
()
);
stackerBarcode
.
setProvider
(
bindGrInfo
.
getBrand
()
);
stackerBarcode
.
setPartNumber
(
partNumber
);
stackerBarcode
.
setProvider
(
provider
);
//将GR日期设置为生产日期
Date
grDate
=
DateUtil
.
getNoTimeDate
(
bindGrInfo
.
getGrDate
());
if
(
StringUtils
.
isNotBlank
(
dateStr
))
{
Date
grDate
=
DateUtil
.
getNoTimeDate
(
dateStr
);
stackerBarcode
.
setProduceDate
(
grDate
);
}
String
warhouseCode
=
MaterialUtil
.
getWarhouseCode
(
stackerId
);
stackerBarcode
.
setWarehouseCode
(
warhouseCode
);
...
...
@@ -574,7 +631,7 @@ public class CDeviceController {
Map<String,Object> dataMap = new HashMap<>();
dataMap.put("validBinList",validBinList);*/
ValidBin
validBin
=
BinCacheUtil
.
validBin
(
stackerBarcode
,
source
,
binListStr
);
ValidBin
validBin
=
BinCacheUtil
.
validBin
(
stackerBarcode
,
source
,
binListStr
,
needBinCodeStr
);
if
(
validBin
==
null
){
return
ResultBean
.
newErrorResult
(-
1
,
""
,
stackerId
+
"未找到可用料箱"
);
}
...
...
@@ -588,7 +645,7 @@ public class CDeviceController {
public
ResultBean
callEmptyBox
(
String
size
,
String
outLet
,
String
wareHouseCode
)
{
log
.
info
(
"开始呼叫空箱,尺寸为:"
+
size
+
",出口位置为:"
+
outLet
);
StoragePos
storagePos
=
BoxHandleUtil
.
callEmptyBox
(
size
,
outLet
,
wareHouseCode
);
StoragePos
storagePos
=
BoxHandleUtil
.
callEmptyBox
(
size
,
outLet
,
wareHouseCode
,
new
ArrayList
<>()
);
if
(
storagePos
==
null
)
{
return
ResultBean
.
newErrorResult
(-
1
,
""
,
"未找到可用料箱"
);
}
...
...
src/main/resources/config/application-21088prod.yml
查看文件 @
7906649
...
...
@@ -158,3 +158,9 @@ api:
#砍单回库
shipCancelUpshelf
:
http://10.68.30.22:8082/api/mlb/ShipCancelUpshelf
#单据退库上架
ticketUp
:
http://10.68.30.22:8082/api/mlb/TicketUp
#自动仓内单据转库
ticketMove
:
http://10.42.220.171:8082/api/mlb/TicketMove
\ No newline at end of file
src/main/resources/config/application-21088test.yml
查看文件 @
7906649
...
...
@@ -158,3 +158,9 @@ api:
#砍单回库
shipCancelUpshelf
:
http://10.42.220.171:8082/api/mlb/ShipCancelUpshelf
#单据退库上架
ticketUp
:
http://10.42.220.171:8082/api/mlb/TicketUp
#自动仓内单据转库
ticketMove
:
http://10.42.220.171:8082/api/mlb/TicketMove
\ No newline at end of file
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论