|
|
@@ -2312,13 +2312,15 @@ public class ProductServiceImpl implements ProductService {
|
|
|
if ((product.getMinPackQty() == null) || (ignoreImport == IntegerConstant.NO_SHORT)) {
|
|
|
product.setMinPackQty(productByBatch.getMinPackage());
|
|
|
}
|
|
|
- if ((product.getKind() == null) || (ignoreImport == IntegerConstant.NO_SHORT)) {
|
|
|
- product.setKind(productByBatch.getKindName());
|
|
|
- product.setKindid(productByBatch.getKindUuid());
|
|
|
+ if ((product.getKind() == null) || (ignoreImport == IntegerConstant.NO_SHORT && product.getStandard().intValue() == IntegerConstant.NO_SHORT)) {
|
|
|
+ product.setKind(productByBatch.getTitle());
|
|
|
}
|
|
|
if (StringUtils.isEmpty(product.getSpec()) || (ignoreImport == IntegerConstant.NO_SHORT)) {
|
|
|
product.setSpec(productByBatch.getSpec());
|
|
|
}
|
|
|
+ if (StringUtils.isEmpty(product.getPrice()) || (ignoreImport == IntegerConstant.NO_SHORT)) {
|
|
|
+ product.setPrice(productByBatch.getCostPrice());
|
|
|
+ }
|
|
|
if ((Objects.equals(ignoreImport, IntegerConstant.NO_SHORT)) || (NumberUtil.compare(product.getErpReserve(), productByBatch.getReserve()) != 0)) {
|
|
|
Double qty = NumberUtil.sub(productByBatch.getReserve(), product.getErpReserve());
|
|
|
if (NumberUtil.compare(qty, DoubleConstant.zero) != 0) {
|