|
@@ -36,7 +36,10 @@ import org.dromara.product.domain.vo.ProductPoolLinkAuditVo;
|
|
|
import org.dromara.product.esmapper.ProductEsMapper;
|
|
import org.dromara.product.esmapper.ProductEsMapper;
|
|
|
import org.dromara.product.mapper.*;
|
|
import org.dromara.product.mapper.*;
|
|
|
import org.dromara.product.service.IProductBaseService;
|
|
import org.dromara.product.service.IProductBaseService;
|
|
|
|
|
+import org.dromara.product.service.IProductPriceInventoryService;
|
|
|
|
|
+import org.dromara.system.api.RemoteTaxCodeService;
|
|
|
import org.dromara.system.api.RemoteUserService;
|
|
import org.dromara.system.api.RemoteUserService;
|
|
|
|
|
+import org.dromara.system.api.domain.vo.RemoteTaxCodeVo;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.dromara.product.domain.bo.ProductPoolAuditBo;
|
|
import org.dromara.product.domain.bo.ProductPoolAuditBo;
|
|
|
import org.dromara.product.domain.vo.ProductPoolAuditVo;
|
|
import org.dromara.product.domain.vo.ProductPoolAuditVo;
|
|
@@ -94,6 +97,9 @@ public class ProductPoolAuditServiceImpl extends ServiceImpl<ProductPoolAuditMa
|
|
|
@DubboReference
|
|
@DubboReference
|
|
|
private RemoteExternalProductService remoteExternalProductService;
|
|
private RemoteExternalProductService remoteExternalProductService;
|
|
|
|
|
|
|
|
|
|
+ @DubboReference
|
|
|
|
|
+ private RemoteTaxCodeService remoteTaxCodeService;
|
|
|
|
|
+
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 查询产品池审核
|
|
* 查询产品池审核
|
|
@@ -363,6 +369,8 @@ public class ProductPoolAuditServiceImpl extends ServiceImpl<ProductPoolAuditMa
|
|
|
linkAudit.setCategoryId(product.getCategoryId());
|
|
linkAudit.setCategoryId(product.getCategoryId());
|
|
|
linkAudit.setProductReviewStatus("0"); // 0=待提交
|
|
linkAudit.setProductReviewStatus("0"); // 0=待提交
|
|
|
linkAudit.setType(bo.getApplyType());
|
|
linkAudit.setType(bo.getApplyType());
|
|
|
|
|
+ linkAudit.setPricingRule(product.getPricingRule());
|
|
|
|
|
+ linkAudit.setMinOrderQuantity(product.getMinOrderQuantity());
|
|
|
productPoolLinkAuditMapper.insert(linkAudit);
|
|
productPoolLinkAuditMapper.insert(linkAudit);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -655,6 +663,11 @@ public class ProductPoolAuditServiceImpl extends ServiceImpl<ProductPoolAuditMa
|
|
|
product.setPricingRule(link.getPricingRule());
|
|
product.setPricingRule(link.getPricingRule());
|
|
|
product.setExternalCategoryId(link.getCategoryId());
|
|
product.setExternalCategoryId(link.getCategoryId());
|
|
|
product.setMinOrderQuantity(link.getMinOrderQuantity());
|
|
product.setMinOrderQuantity(link.getMinOrderQuantity());
|
|
|
|
|
+ product.setProductStatus(1);
|
|
|
|
|
+ if (ObjectUtil.isNotEmpty(productBaseVo.getTaxationId())) {
|
|
|
|
|
+ RemoteTaxCodeVo taxCode = remoteTaxCodeService.selectByTaxCodeId(productBaseVo.getTaxationId());
|
|
|
|
|
+ product.setTaxCode(taxCode.getTaxationNo());
|
|
|
|
|
+ }
|
|
|
return product;
|
|
return product;
|
|
|
}).collect(Collectors.toList());
|
|
}).collect(Collectors.toList());
|
|
|
|
|
|