yzc 1 rok pred
rodič
commit
aa8a119455

+ 2 - 2
hx-item/src/main/java/com/fjhx/item/service/product/impl/ProductInfoServiceImpl.java

@@ -248,7 +248,7 @@ public class ProductInfoServiceImpl extends ServiceImpl<ProductInfoMapper, Produ
     public void add(ProductInfoDto productInfoDto) {
         //赋值产品归属公司
         if (ObjectUtil.isEmpty(productInfoDto.getCompanyId())) {
-            productInfoDto.setCountryId(SecurityUtils.getCompanyId());
+            productInfoDto.setCompanyId(SecurityUtils.getCompanyId());
         }
         Long companyId = productInfoDto.getCompanyId();
 
@@ -510,7 +510,7 @@ public class ProductInfoServiceImpl extends ServiceImpl<ProductInfoMapper, Produ
         //赋值产品归属公司
         Long companyId = productInfoDto.getCompanyId();
         if (ObjectUtil.isEmpty(companyId)) {
-            productInfoDto.setCountryId(SecurityUtils.getCompanyId());
+            productInfoDto.setCompanyId(SecurityUtils.getCompanyId());
         }
 
         this.updateById(productInfoDto);

+ 1 - 1
hx-sale/src/main/java/com/fjhx/sale/flow/EhsdPurchaseFlow.java

@@ -112,7 +112,7 @@ public class EhsdPurchaseFlow extends FlowDelegate {
 		//赋值产品归属公司
 		Long companyId = purchase.getCompanyId();
 		if (ObjectUtil.isEmpty(companyId)) {
-			purchase.setCountryId(SecurityUtils.getCompanyId());
+			purchase.setCompanyId(SecurityUtils.getCompanyId());
 		}
 
 		Integer dataResource = purchase.getDataResource();

+ 1 - 1
hx-supply/src/main/java/com/fjhx/supply/service/supplier/impl/SupplierInfoServiceImpl.java

@@ -162,7 +162,7 @@ public class SupplierInfoServiceImpl extends ServiceImpl<SupplierInfoMapper, Sup
         //赋值产品归属公司
         Long companyId = supplierInfoDto.getCompanyId();
         if (ObjectUtil.isEmpty(companyId)) {
-            supplierInfoDto.setCountryId(SecurityUtils.getCompanyId());
+            supplierInfoDto.setCompanyId(SecurityUtils.getCompanyId());
         }
 
         this.updateById(supplierInfoDto);