var save = (product, body, productGroup, uom, productType, productBrand, client, createFlag) => {
product.setCode(body.external_sku_id);
product.setSku(body.sku_no[0]);
product.setName(body.name);
product.setProductGroupId(productGroup.id);
product.setBrandId(productBrand.id);
product.setUomId(uom.id);
product.setProductTypeId(productType.id);
product.setDescription(body.description);
//单位米
product.setDepth(is_null(body.length) || new BigDecimal(body.length).compareTo(BigDecimal.ZERO) == 0 ? new BigDecimal("0.001") : new BigDecimal(body.length).divide(new BigDecimal(1000)).setScale(3, BigDecimal.ROUND_HALF_UP));
product.setWidth(is_null(body.width) || new BigDecimal(body.width).compareTo(BigDecimal.ZERO) == 0 ? new BigDecimal("0.001") : new BigDecimal(body.width).divide(new BigDecimal(1000)).setScale(3, BigDecimal.ROUND_HALF_UP));
product.setHeight(is_null(body.height) || new BigDecimal(body.height).compareTo(BigDecimal.ZERO) == 0 ? new BigDecimal("0.001") : new BigDecimal(body.height).divide(new BigDecimal(1000)).setScale(3, BigDecimal.ROUND_HALF_UP));
product.setWeight(is_null(body.weight) || new BigDecimal(body.weight).compareTo(BigDecimal.ZERO) == 0 ? new BigDecimal("0.001") : new BigDecimal(body.weight).divide(new BigDecimal(1000)).setScale(3, BigDecimal.ROUND_HALF_UP));
if (ProductConstant.Y.equalsIgnoreCase(body.exp_date_mandatory_flag)) {
product.setBestBeforeMandatory(1);
if (ProductConstant.EXP.equalsIgnoreCase(body.exp_date_type)) {