Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit b26ce83a
由
zshaohui
编写于
2024-06-24 19:13:32 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
931单据转库 和 单据退料 接口修改
1 个父辈
5c485c6c
隐藏空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
110 行增加
和
16 行删除
src/main/java/com/neotel/smfcore/core/barcode/service/po/Barcode.java
src/main/java/com/neotel/smfcore/custom/luxsan/api/LuxsanApi.java
src/main/java/com/neotel/smfcore/custom/luxsan/api/bean/request/TicketPickLabelList.java
src/main/java/com/neotel/smfcore/custom/luxsan/api/bean/request/TicketPickRequest.java
src/main/java/com/neotel/smfcore/custom/luxsan/api/bean/request/BrandQtyResult.java → src/main/java/com/neotel/smfcore/custom/luxsan/api/bean/result/BrandQtyResult.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/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/controller/GrPutInController.java
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/controller/StorTransferController.java
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/controller/TicketController.java
src/main/resources/config/application-21088prod.yml
src/main/resources/config/application-21088test.yml
src/main/java/com/neotel/smfcore/core/barcode/service/po/Barcode.java
查看文件 @
b26ce83
...
@@ -376,6 +376,8 @@ public class Barcode extends BasePo implements Serializable {
...
@@ -376,6 +376,8 @@ public class Barcode extends BasePo implements Serializable {
//记录序列号
//记录序列号
private
int
seq
=
0
;
private
int
seq
=
0
;
//标签码
private
String
labelId
=
""
;
private
Map
<
String
,
Integer
>
heightMap
=
new
HashMap
<>();
private
Map
<
String
,
Integer
>
heightMap
=
new
HashMap
<>();
...
...
src/main/java/com/neotel/smfcore/custom/luxsan/api/LuxsanApi.java
查看文件 @
b26ce83
...
@@ -11,7 +11,6 @@ import com.neotel.smfcore.common.utils.StringUtils;
...
@@ -11,7 +11,6 @@ import com.neotel.smfcore.common.utils.StringUtils;
import
com.neotel.smfcore.core.api.listener.DefaultSmfApiListener
;
import
com.neotel.smfcore.core.api.listener.DefaultSmfApiListener
;
import
com.neotel.smfcore.core.barcode.service.po.Barcode
;
import
com.neotel.smfcore.core.barcode.service.po.Barcode
;
import
com.neotel.smfcore.core.storage.service.manager.IStoragePosManager
;
import
com.neotel.smfcore.core.storage.service.manager.IStoragePosManager
;
import
com.neotel.smfcore.core.storage.service.po.StoragePos
;
import
com.neotel.smfcore.core.system.service.po.DataLog
;
import
com.neotel.smfcore.core.system.service.po.DataLog
;
import
com.neotel.smfcore.custom.luxsan.api.bean.request.*
;
import
com.neotel.smfcore.custom.luxsan.api.bean.request.*
;
import
com.neotel.smfcore.custom.luxsan.api.bean.result.*
;
import
com.neotel.smfcore.custom.luxsan.api.bean.result.*
;
...
@@ -1041,6 +1040,23 @@ public class LuxsanApi extends DefaultSmfApiListener {
...
@@ -1041,6 +1040,23 @@ public class LuxsanApi extends DefaultSmfApiListener {
}
}
public
static
void
ticketPick
(
TicketPickRequest
request
)
{
log
.
info
(
"ticketPick接口请求参数为:"
+
JSON
.
toJSONString
(
request
)+
",地址为:"
+
ticketPickUrl
);
try
{
String
resultStr
=
HttpHelper
.
postJson
(
ticketPickUrl
,
request
);
log
.
info
(
"ticketPick接口返回为:"
+
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
()});
}
}
catch
(
ApiException
e
)
{
e
.
printStackTrace
();
throw
new
ValidateException
(
"smfcore.api.error"
,
"接口请求失败[{0}]"
,
new
String
[]{
e
.
getMessage
()});
}
}
@Override
@Override
public
void
outTaskStatusChange
(
String
outNotifyUrl
,
DataLog
task
)
{
public
void
outTaskStatusChange
(
String
outNotifyUrl
,
DataLog
task
)
{
//pickingIssue(new PickingIssueRequest());
//pickingIssue(new PickingIssueRequest());
...
@@ -1327,4 +1343,11 @@ public class LuxsanApi extends DefaultSmfApiListener {
...
@@ -1327,4 +1343,11 @@ public class LuxsanApi extends DefaultSmfApiListener {
public
void
setBoxNGsnListUrl
(
String
url
){
public
void
setBoxNGsnListUrl
(
String
url
){
LuxsanApi
.
getBoxNGsnListUrl
=
url
;
LuxsanApi
.
getBoxNGsnListUrl
=
url
;
}
}
public
static
String
ticketPickUrl
;
@Value
(
"${api.ticketPick}"
)
public
void
setTicketPickUrl
(
String
url
){
LuxsanApi
.
ticketPickUrl
=
url
;
}
}
}
src/main/java/com/neotel/smfcore/custom/luxsan/api/bean/request/TicketPickLabelList.java
0 → 100644
查看文件 @
b26ce83
package
com
.
neotel
.
smfcore
.
custom
.
luxsan
.
api
.
bean
.
request
;
import
lombok.Data
;
import
java.util.List
;
@Data
public
class
TicketPickLabelList
{
private
String
LABEL_ID
;
private
List
<
String
>
REEL_LIST
;
}
src/main/java/com/neotel/smfcore/custom/luxsan/api/bean/request/TicketPickRequest.java
0 → 100644
查看文件 @
b26ce83
package
com
.
neotel
.
smfcore
.
custom
.
luxsan
.
api
.
bean
.
request
;
import
lombok.Data
;
import
java.util.List
;
@Data
public
class
TicketPickRequest
{
private
String
PLANT_CODE
;
private
String
TICKET_CODE
;
private
String
TICKET_ITEM
;
private
int
QTY
;
private
String
BIN_CODE
;
private
List
<
TicketPickLabelList
>
LABEL_LIST
;
}
src/main/java/com/neotel/smfcore/custom/luxsan/api/bean/re
ques
t/BrandQtyResult.java
→
src/main/java/com/neotel/smfcore/custom/luxsan/api/bean/re
sul
t/BrandQtyResult.java
查看文件 @
b26ce83
package
com
.
neotel
.
smfcore
.
custom
.
luxsan
.
api
.
bean
.
re
ques
t
;
package
com
.
neotel
.
smfcore
.
custom
.
luxsan
.
api
.
bean
.
re
sul
t
;
import
lombok.Data
;
import
lombok.Data
;
...
...
src/main/java/com/neotel/smfcore/custom/luxsan/api/bean/result/TicketUpResult.java
查看文件 @
b26ce83
...
@@ -4,5 +4,20 @@ import lombok.Data;
...
@@ -4,5 +4,20 @@ import lombok.Data;
@Data
@Data
public
class
TicketUpResult
{
public
class
TicketUpResult
{
private
String
PLANT_CODE
;
private
String
LABEL_ID
;
private
String
MATERIAL_CODE
;
private
String
WAREHOUSE_CODE
;
private
int
LABEL_QTY
;
private
String
VENDOR_CODE
;
private
String
VENDOR_NAME
;
private
String
VERSION
;
// 如果VERSION可以是null,则可能需要使用Integer而不是int
private
String
GR_DATE
;
// 假设这是日期类型
private
String
TRAN_DATE
;
// 假设这也是日期类型
private
int
STATUS
;
private
String
KEEPER_CODE
;
private
String
BRAND
;
private
String
UNIT
;
private
String
BATCH_CODE
;
private
String
MATERIAL_TYPE
;
}
}
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/controller/CDeviceController.java
查看文件 @
b26ce83
...
@@ -27,6 +27,8 @@ import com.neotel.smfcore.custom.lizhen.agvBox.util.BoxUtil;
...
@@ -27,6 +27,8 @@ import com.neotel.smfcore.custom.lizhen.agvBox.util.BoxUtil;
import
com.neotel.smfcore.custom.luxsan.api.LuxsanApi
;
import
com.neotel.smfcore.custom.luxsan.api.LuxsanApi
;
import
com.neotel.smfcore.custom.luxsan.api.bean.request.*
;
import
com.neotel.smfcore.custom.luxsan.api.bean.request.*
;
import
com.neotel.smfcore.custom.luxsan.api.bean.result.BinMoveResult
;
import
com.neotel.smfcore.custom.luxsan.api.bean.result.BinMoveResult
;
import
com.neotel.smfcore.custom.luxsan.api.bean.result.NewLabelToCellResult
;
import
com.neotel.smfcore.custom.luxsan.api.bean.result.TicketUpResult
;
import
com.neotel.smfcore.custom.luxsan.factory_c.rawstor.bean.BindGrInfo
;
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.StorTransfer
;
import
com.neotel.smfcore.custom.luxsan.factory_c.rawstor.bean.TicketReturn
;
import
com.neotel.smfcore.custom.luxsan.factory_c.rawstor.bean.TicketReturn
;
...
@@ -203,17 +205,18 @@ public class CDeviceController {
...
@@ -203,17 +205,18 @@ public class CDeviceController {
if
(
BinCacheUtil
.
canPutInBinCode
(
binCodeStr
,
warhouseCode
))
{
if
(
BinCacheUtil
.
canPutInBinCode
(
binCodeStr
,
warhouseCode
))
{
//绑定gr
//绑定gr
if
(
MaterialUtil
.
bindGr
(
materialStr
)){
if
(
MaterialUtil
.
bindGr
(
materialStr
))
{
BindGrInfo
bindGrInfo
=
MaterialUtil
.
getBindGrInfo
(
materialStr
);
BindGrInfo
bindGrInfo
=
MaterialUtil
.
getBindGrInfo
(
materialStr
);
LuxsanApi
.
newLabelToCell
(
new
NewLabelToCellRequest
(
NewLabelToCellResult
cell
=
LuxsanApi
.
newLabelToCell
(
new
NewLabelToCellRequest
(
CommonUtil
.
plantCode
,
CommonUtil
.
plantCode
,
Arrays
.
asList
(
bindGrInfo
.
getUdCode
()),
Arrays
.
asList
(
bindGrInfo
.
getUdCode
()),
barcode
.
getAmount
(),
barcode
.
getAmount
(),
binCodeStr
,
Arrays
.
asList
(
barcode
.
getFullCode
())
binCodeStr
,
Arrays
.
asList
(
barcode
.
getFullCode
())
));
));
//将GR日期设置为生产日期
//将GR日期设置为生产日期
Date
grDate
=
DateUtil
.
getNoTimeDate
(
bindGrInfo
.
getGrDate
());
Date
grDate
=
DateUtil
.
getNoTimeDate
(
bindGrInfo
.
getGrDate
());
barcode
.
setProduceDate
(
grDate
);
barcode
.
setProduceDate
(
grDate
);
barcode
.
setLabelId
(
cell
.
getLABEL_ID
());
}
}
//储位移转
//储位移转
...
@@ -223,18 +226,34 @@ public class CDeviceController {
...
@@ -223,18 +226,34 @@ public class CDeviceController {
Date
grDate
=
DateUtil
.
getNoTimeDate
(
binMoveResult
.
getGR_DATE
());
Date
grDate
=
DateUtil
.
getNoTimeDate
(
binMoveResult
.
getGR_DATE
());
barcode
.
setProduceDate
(
grDate
);
barcode
.
setProduceDate
(
grDate
);
}
}
barcode
.
setLabelId
(
binMoveResult
.
getLABEL_ID
());
}
}
//单据转库
//311单据转库
else
if
(
MaterialUtil
.
ticketTransfer
(
materialStr
)){
else
if
(
MaterialUtil
.
ticketTransfer
(
materialStr
))
{
TicketTransfer
transfer
=
MaterialUtil
.
getTicketTransferInfo
(
materialStr
);
TicketTransfer
transfer
=
MaterialUtil
.
getTicketTransferInfo
(
materialStr
);
LuxsanApi
.
ticketMove
(
new
TicketMoveRequest
(
CommonUtil
.
plantCode
,
transfer
.
getTicket
(),
transfer
.
getTicketItem
(),
binCodeStr
,
Arrays
.
asList
(
barcode
.
getBarcode
())));
TicketPickRequest
request
=
new
TicketPickRequest
();
request
.
setPLANT_CODE
(
CommonUtil
.
plantCode
);
request
.
setTICKET_CODE
(
transfer
.
getTicket
());
request
.
setTICKET_ITEM
(
transfer
.
getTicketItem
());
request
.
setQTY
(
barcode
.
getAmount
());
request
.
setBIN_CODE
(
binCodeStr
);
List
<
TicketPickLabelList
>
labelList
=
new
ArrayList
<>();
TicketPickLabelList
tickPick
=
new
TicketPickLabelList
();
tickPick
.
setREEL_LIST
(
Arrays
.
asList
(
barcode
.
getBarcode
()));
tickPick
.
setLABEL_ID
(
barcode
.
getLabelId
());
labelList
.
add
(
tickPick
);
request
.
setLABEL_LIST
(
labelList
);
LuxsanApi
.
ticketPick
(
request
);
}
}
//单据退库上架
//单据退库上架
else
if
(
MaterialUtil
.
ticketReturn
(
materialStr
)){
else
if
(
MaterialUtil
.
ticketReturn
(
materialStr
)){
TicketReturn
ticketReturn
=
MaterialUtil
.
getTicketReturnInfo
(
materialStr
);
TicketReturn
ticketReturn
=
MaterialUtil
.
getTicketReturnInfo
(
materialStr
);
LuxsanApi
.
ticketUp
(
new
TicketUpRequest
(
CommonUtil
.
plantCode
,
ticketReturn
.
getTicket
(),
ticketReturn
.
getTicketItem
(),
binCodeStr
,
Arrays
.
asList
(
barcode
.
getBarcode
())));
TicketUpResult
ticketUp
=
LuxsanApi
.
ticketUp
(
new
TicketUpRequest
(
CommonUtil
.
plantCode
,
ticketReturn
.
getTicket
(),
ticketReturn
.
getTicketItem
(),
binCodeStr
,
Arrays
.
asList
(
barcode
.
getBarcode
())));
barcode
.
setLabelId
(
ticketUp
.
getLABEL_ID
());
}
}
...
...
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/controller/GrPutInController.java
查看文件 @
b26ce83
...
@@ -9,7 +9,7 @@ import com.neotel.smfcore.core.barcode.utils.CodeResolve;
...
@@ -9,7 +9,7 @@ import com.neotel.smfcore.core.barcode.utils.CodeResolve;
import
com.neotel.smfcore.core.device.util.DataCache
;
import
com.neotel.smfcore.core.device.util.DataCache
;
import
com.neotel.smfcore.custom.luxsan.api.LuxsanApi
;
import
com.neotel.smfcore.custom.luxsan.api.LuxsanApi
;
import
com.neotel.smfcore.custom.luxsan.api.bean.request.BrandQtyRequest
;
import
com.neotel.smfcore.custom.luxsan.api.bean.request.BrandQtyRequest
;
import
com.neotel.smfcore.custom.luxsan.api.bean.re
ques
t.BrandQtyResult
;
import
com.neotel.smfcore.custom.luxsan.api.bean.re
sul
t.BrandQtyResult
;
import
com.neotel.smfcore.custom.luxsan.api.bean.request.QueryGrRequest
;
import
com.neotel.smfcore.custom.luxsan.api.bean.request.QueryGrRequest
;
import
com.neotel.smfcore.custom.luxsan.api.bean.request.QueryGrStatusRequest
;
import
com.neotel.smfcore.custom.luxsan.api.bean.request.QueryGrStatusRequest
;
import
com.neotel.smfcore.custom.luxsan.api.bean.result.QueryGrResult
;
import
com.neotel.smfcore.custom.luxsan.api.bean.result.QueryGrResult
;
...
...
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/controller/StorTransferController.java
查看文件 @
b26ce83
...
@@ -8,7 +8,7 @@ import com.neotel.smfcore.core.barcode.utils.CodeResolve;
...
@@ -8,7 +8,7 @@ import com.neotel.smfcore.core.barcode.utils.CodeResolve;
import
com.neotel.smfcore.core.device.util.DataCache
;
import
com.neotel.smfcore.core.device.util.DataCache
;
import
com.neotel.smfcore.custom.luxsan.api.LuxsanApi
;
import
com.neotel.smfcore.custom.luxsan.api.LuxsanApi
;
import
com.neotel.smfcore.custom.luxsan.api.bean.request.BrandQtyRequest
;
import
com.neotel.smfcore.custom.luxsan.api.bean.request.BrandQtyRequest
;
import
com.neotel.smfcore.custom.luxsan.api.bean.re
ques
t.BrandQtyResult
;
import
com.neotel.smfcore.custom.luxsan.api.bean.re
sul
t.BrandQtyResult
;
import
com.neotel.smfcore.custom.luxsan.factory_c.rawstor.bean.StorTransfer
;
import
com.neotel.smfcore.custom.luxsan.factory_c.rawstor.bean.StorTransfer
;
import
com.neotel.smfcore.custom.luxsan.factory_c.rawstor.util.MaterialUtil
;
import
com.neotel.smfcore.custom.luxsan.factory_c.rawstor.util.MaterialUtil
;
import
com.neotel.smfcore.custom.luxsan.factory_c.common.util.CacheNameUtil
;
import
com.neotel.smfcore.custom.luxsan.factory_c.common.util.CacheNameUtil
;
...
...
src/main/java/com/neotel/smfcore/custom/luxsan/factory_c/rawstor/controller/TicketController.java
查看文件 @
b26ce83
...
@@ -14,7 +14,7 @@ import com.neotel.smfcore.core.order.service.po.LiteOrder;
...
@@ -14,7 +14,7 @@ import com.neotel.smfcore.core.order.service.po.LiteOrder;
import
com.neotel.smfcore.core.order.service.po.LiteOrderItem
;
import
com.neotel.smfcore.core.order.service.po.LiteOrderItem
;
import
com.neotel.smfcore.custom.luxsan.api.LuxsanApi
;
import
com.neotel.smfcore.custom.luxsan.api.LuxsanApi
;
import
com.neotel.smfcore.custom.luxsan.api.bean.request.BrandQtyRequest
;
import
com.neotel.smfcore.custom.luxsan.api.bean.request.BrandQtyRequest
;
import
com.neotel.smfcore.custom.luxsan.api.bean.re
ques
t.BrandQtyResult
;
import
com.neotel.smfcore.custom.luxsan.api.bean.re
sul
t.BrandQtyResult
;
import
com.neotel.smfcore.custom.luxsan.api.bean.request.FetchMoveTicketRequest
;
import
com.neotel.smfcore.custom.luxsan.api.bean.request.FetchMoveTicketRequest
;
import
com.neotel.smfcore.custom.luxsan.api.bean.result.FetchMoveTicketResult
;
import
com.neotel.smfcore.custom.luxsan.api.bean.result.FetchMoveTicketResult
;
import
com.neotel.smfcore.custom.luxsan.factory_c.rawstor.bean.TicketReturn
;
import
com.neotel.smfcore.custom.luxsan.factory_c.rawstor.bean.TicketReturn
;
...
...
src/main/resources/config/application-21088prod.yml
查看文件 @
b26ce83
...
@@ -160,10 +160,13 @@ api:
...
@@ -160,10 +160,13 @@ api:
shipCancelUpshelf
:
http://10.68.30.22:8082/api/mlb/ShipCancelUpshelf
shipCancelUpshelf
:
http://10.68.30.22:8082/api/mlb/ShipCancelUpshelf
#单据退库上架
#单据退库上架
ticketUp
:
http://10.68.30.22:8082/api/mlb/
TicketUp
ticketUp
:
http://10.68.30.22:8082/api/mlb/
ticketLabelToCell
#自动仓内单据转库
#自动仓内单据转库
ticketMove
:
http://10.
42.220.171
:8082/api/mlb/TicketMove
ticketMove
:
http://10.
68.30.22
:8082/api/mlb/TicketMove
#获取箱内NGSN列表
#获取箱内NGSN列表
getBoxNGsnListUrl
:
http://10.68.25.30:8000/mesoffline/GetBoxNgSnList
getBoxNGsnListUrl
:
http://10.68.25.30:8000/mesoffline/GetBoxNgSnList
#原料单据备料
ticketPick
:
http://10.68.30.22:8082/api/mlb/TicketPick
src/main/resources/config/application-21088test.yml
查看文件 @
b26ce83
...
@@ -160,10 +160,13 @@ api:
...
@@ -160,10 +160,13 @@ api:
shipCancelUpshelf
:
http://10.42.220.171:8082/api/mlb/ShipCancelUpshelf
shipCancelUpshelf
:
http://10.42.220.171:8082/api/mlb/ShipCancelUpshelf
#单据退库上架
#单据退库上架
ticketUp
:
http://10.42.220.171:8082/api/mlb/
TicketUp
ticketUp
:
http://10.42.220.171:8082/api/mlb/
ticketLabelToCell
#自动仓内单据转库
#自动仓内单据转库
ticketMove
:
http://10.42.220.171:8082/api/mlb/TicketMove
ticketMove
:
http://10.42.220.171:8082/api/mlb/TicketMove
#获取箱内NGSN列表
#获取箱内NGSN列表
getBoxNGsnListUrl
:
http://10.68.25.30:8000/mesoffline/GetBoxNgSnList
getBoxNGsnListUrl
:
http://10.68.25.30:8000/mesoffline/GetBoxNgSnList
#原料单据备料
ticketPick
:
http://10.42.220.171:8082/api/mlb/TicketPick
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论