diff --git a/api-admin/src/main/java/com/glxp/api/admin/controller/inout/WareHouseController.java b/api-admin/src/main/java/com/glxp/api/admin/controller/inout/WareHouseController.java
index 5de44b4b..76e7d7f1 100644
--- a/api-admin/src/main/java/com/glxp/api/admin/controller/inout/WareHouseController.java
+++ b/api-admin/src/main/java/com/glxp/api/admin/controller/inout/WareHouseController.java
@@ -245,6 +245,12 @@ public class WareHouseController {
if (bindingResult.hasErrors()) {
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage());
}
+
+ OrderEntity orderEntity = orderService.findById(commitRequest.getOrderId());
+ if (orderEntity.getStatus() != ConstantStatus.ORDER_STATUS_PROCESS && orderEntity.getStatus() != ConstantStatus.ORDER_STATUS_FAIL) {
+ return ResultVOUtils.error(500, "单据已提交!");
+ }
+
ioTransInoutService.repeatCommit(commitRequest);
return ResultVOUtils.success("提交成功");
}
diff --git a/api-admin/src/main/java/com/glxp/api/admin/entity/basic/BussinessTypeEntity.java b/api-admin/src/main/java/com/glxp/api/admin/entity/basic/BussinessTypeEntity.java
index 572a9d02..d561e75c 100644
--- a/api-admin/src/main/java/com/glxp/api/admin/entity/basic/BussinessTypeEntity.java
+++ b/api-admin/src/main/java/com/glxp/api/admin/entity/basic/BussinessTypeEntity.java
@@ -65,4 +65,5 @@ public class BussinessTypeEntity {
private boolean codeFillCheck;
private String defaultSubInv;
+ private String defaultInv;
}
diff --git a/api-admin/src/main/java/com/glxp/api/admin/res/basic/BussinessTypResponse.java b/api-admin/src/main/java/com/glxp/api/admin/res/basic/BussinessTypResponse.java
index c69fc8f3..a67df2b7 100644
--- a/api-admin/src/main/java/com/glxp/api/admin/res/basic/BussinessTypResponse.java
+++ b/api-admin/src/main/java/com/glxp/api/admin/res/basic/BussinessTypResponse.java
@@ -68,4 +68,5 @@ public class BussinessTypResponse {
private boolean codeFillCheck;
private String defaultSubInv;
+ private String defaultInv;
}
diff --git a/api-admin/src/main/java/com/glxp/api/admin/thread/InvProductsTrService.java b/api-admin/src/main/java/com/glxp/api/admin/thread/InvProductsTrService.java
index b2339135..b38853f0 100644
--- a/api-admin/src/main/java/com/glxp/api/admin/thread/InvProductsTrService.java
+++ b/api-admin/src/main/java/com/glxp/api/admin/thread/InvProductsTrService.java
@@ -700,9 +700,6 @@ public class InvProductsTrService {
if (StrUtil.isNotEmpty(originBT.getDefaultSubInv())) {
outOrder.setFromSubInvCode(originBT.getDefaultSubInv());
}
- if (StrUtil.isNotEmpty(bussinessTypeEntity.getDefaultSubInv())) {
- outOrder.setFromSubInvCode(bussinessTypeEntity.getDefaultSubInv());
- }
outOrder.setCorpOrderId(CustomUtil.getId() + "x");
outOrder.setLocStorageCode(orderEntity.getLocStorageCode());
diff --git a/api-admin/src/main/resources/mybatis/mapper/basic/BussinessTypeDao.xml b/api-admin/src/main/resources/mybatis/mapper/basic/BussinessTypeDao.xml
index e2bb480b..4b2d0c53 100644
--- a/api-admin/src/main/resources/mybatis/mapper/basic/BussinessTypeDao.xml
+++ b/api-admin/src/main/resources/mybatis/mapper/basic/BussinessTypeDao.xml
@@ -20,7 +20,7 @@
basic_bustype_local.spUse,corpType,basic_bussiness_type.storageCode,basic_bussiness_type.checkBalacne,
basic_bussiness_type.secCheckBalacne, defaultUnit,basic_bustype_origin.action
thirdAction,basic_bustype_origin.thirdSys,basic_bussiness_type.useDyCount,basic_bussiness_type.expireTip,basic_bussiness_type.prefix,basic_bustype_local.prefix
- localPrefix,basic_bustype_local.preIn,basic_bussiness_type.defaultSubInv
+ localPrefix,basic_bustype_local.preIn,basic_bussiness_type.defaultSubInv,basic_bussiness_type.defaultInv
FROM basic_bussiness_type LEFT JOIN basic_bustype_local
on basic_bussiness_type.localAction = basic_bustype_local.action
left join basic_bustype_origin on basic_bustype_local.originAction = basic_bustype_origin.action
@@ -137,7 +137,7 @@
basic_bussiness_type.secCheckBalacne,basic_bustype_origin.action
thirdAction,basic_bustype_origin.thirdSys,useDyCount,basic_bussiness_type.expireTip,
basic_bussiness_type.prefix,basic_bustype_local.prefix
- localPrefix,basic_bustype_local.preIn,basic_bussiness_type.defaultSubInv
+ localPrefix,basic_bustype_local.preIn,basic_bussiness_type.defaultSubInv,basic_bussiness_type.defaultInv
FROM basic_bussiness_type LEFT JOIN basic_bustype_local
on basic_bussiness_type.localAction = basic_bustype_local.action
left join basic_bustype_origin on basic_bustype_local.originAction = basic_bustype_origin.action
@@ -191,7 +191,7 @@
,secCheckUdims,secCheckPdaEd,secCheckPdaUn,secCheckPc,secCheckWebNew,
secCheckChange,corpType,basic_bussiness_type.storageCode,checkBalacne,
secCheckBalacne,supplementOrderType,defaultUnit,useDyCount,expireTip,updateTime,prefix
- ,ullageFill,scanPreIn,vailInv,codeFillCheck,defaultSubInv,outTospms,entrutSpms)
+ ,ullageFill,scanPreIn,vailInv,codeFillCheck,defaultSubInv,outTospms,entrutSpms,defaultInv)
values
(
#{action},
@@ -229,7 +229,7 @@
#{prefix},
#{ullageFill},
#{scanPreIn},
- #{vailInv},#{codeFillCheck},#{defaultSubInv},#{outTospms},#{entrutSpms}
+ #{vailInv},#{codeFillCheck},#{defaultSubInv},#{outTospms},#{entrutSpms},#{defaultInv}
)
@@ -244,7 +244,7 @@
checkUdims,checkPdaEd,checkPdaUn,checkPc,checkWebNew,checkChange
,secCheckUdims,secCheckPdaEd,secCheckPdaUn,secCheckPc,secCheckWebNew,
secCheckChange,corpType,storageCode,checkBalacne,secCheckBalacne,supplementOrderType,defaultUnit,useDyCount,expireTip,updateTime,prefix
- ,ullageFill,scanPreIn,vailInv,codeFillCheck,defaultSubInv,outTospms,entrutSpms)
+ ,ullageFill,scanPreIn,vailInv,codeFillCheck,defaultSubInv,outTospms,entrutSpms,defaultInv)
values
(
#{index},
@@ -283,7 +283,7 @@
#{prefix},
#{ullageFill},
#{scanPreIn},
- #{vailInv},#{codeFillCheck},#{defaultSubInv},#{outTospms},#{entrutSpms}
+ #{vailInv},#{codeFillCheck},#{defaultSubInv},#{outTospms},#{entrutSpms},#{defaultInv}
)
@@ -329,6 +329,8 @@
prefix=#{prefix},
codeFillCheck=#{codeFillCheck},
defaultSubInv=#{defaultSubInv},
+ defaultInv=#{defaultInv},
+
outTospms=#{outTospms},
entrutSpms=#{entrutSpms},
thirdSysFk=#{thirdSysFk},
diff --git a/api-admin/src/main/resources/mybatis/mapper/inventory/InvProductDao.xml b/api-admin/src/main/resources/mybatis/mapper/inventory/InvProductDao.xml
index 5ed2e5eb..8177ecc4 100644
--- a/api-admin/src/main/resources/mybatis/mapper/inventory/InvProductDao.xml
+++ b/api-admin/src/main/resources/mybatis/mapper/inventory/InvProductDao.xml
@@ -117,14 +117,14 @@
basic_products.ylqxzcrbarmc,basic_products.zczbhhzbapzbh,
inv_product.inCount,inv_product.outCount
,inv_product.reCount,inv_product.customerId,basic_corp.name companyName,inv_product.unitFk,inv_product.supId
- ,inv_warehouse.name invStorageName,inv_product.invStorageCode,inv_product.price,inv_warehouse_sub.name invSubStorageName
- ,inv_product.invWarehouseCode
+ ,inv_warehouse.name invStorageName,inv_product.invStorageCode,inv_product.price,
+ inv_warehouse_sub.name invSubStorageName,inv_product.invWarehouseCode
FROM inv_product
inner join basic_udirel on inv_product.relIdFk = basic_udirel.id
inner join basic_products on basic_udirel.uuid = basic_products.uuid
left join basic_corp on inv_product.supId=basic_corp.erpId
left join inv_warehouse on inv_warehouse.code=inv_product.invStorageCode
- left join inv_warehouse_sub on inv_warehouse_sub.parentId = inv_warehouse.code
+ left join inv_warehouse_sub on inv_warehouse_sub.code = inv_product.invWarehouseCode
basic_products.diType=1
@@ -184,6 +184,7 @@
GROUP BY #{groupType}
+ group by inv_product.id