Commit 0959d159 zshaohui

1.还原补箱,替换箱子不调用解绑接口

2.单据转库,可以出hold箱子
1 个父辈 0e787629
......@@ -1499,7 +1499,9 @@ public class LiteOrderCache {
int taskReelCount = 0;
int taskNum = 0;
List<String> holdPosIdList = getHoldPosIdList(cacheOrder);
//转库可以出hold,置为空
//List<String> holdPosIdList = getHoldPosIdList(cacheOrder);
List<String> holdPosIdList = new ArrayList<>();
for (LiteOrderItem orderItem : cacheOrder.getOrderItems()) {
int remainNum = orderItem.getNeedNum() - orderItem.getTotalOutNum();
......
......@@ -1073,7 +1073,7 @@ public class LuxsanApi extends DefaultSmfApiListener {
LuxsanApiResult apiResult = JSONObject.parseObject(resultStr, LuxsanApiResult.class);
if (LuxsanApiEnum.ERROR.equals(apiResult.getMSGTY())) {
result = apiResult.getMSGTY();
result = apiResult.getMSGTX();
}
} catch (ApiException e) {
e.printStackTrace();
......
......@@ -152,9 +152,11 @@ public class RestoreReplaceController {
//3.先调用解绑信息
if (replaceBox) {
String unBindPalletResult = LuxsanApi.unBindPallet(new UnBindPalletRequest(CommonUtil.plantCode, ticketCode, "", palletId));
if (StringUtils.isNotEmpty(unBindPalletResult)){
return ResultBean.newErrorResult(-1, "", boxStr + "解绑失败,原因为:"+unBindPalletResult);
if (StringUtils.isNotEmpty(unBindPalletResult)) {
return ResultBean.newErrorResult(-1, "", boxStr + "解绑失败,原因为:" + unBindPalletResult);
}
}
if (pos != null){
......@@ -164,6 +166,7 @@ public class RestoreReplaceController {
newDataLog.setType(OP.CHECKOUT);
newDataLog.setLoc(TaskLocUtil.MW);
newDataLog.setSourceName(dataLog.getSourceName());
newDataLog.setCartonId(pos.getBarcode().getCartonId());
taskService.addTaskToExecute(newDataLog);
}
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!