|
|
|
@ -40,11 +40,10 @@ import com.glxp.api.service.system.SystemParamConfigService;
|
|
|
|
|
import com.glxp.api.service.thrsys.ThrProductsService;
|
|
|
|
|
import com.glxp.api.service.thrsys.ThrSystemService;
|
|
|
|
|
import com.glxp.api.service.thrsys.impl.ThrProductsAddDiService;
|
|
|
|
|
import com.glxp.api.util.CustomUtil;
|
|
|
|
|
import com.glxp.api.util.GennerOrderUtils;
|
|
|
|
|
import com.glxp.api.util.IntUtil;
|
|
|
|
|
import com.glxp.api.util.SupplementVailUtil;
|
|
|
|
|
import com.glxp.api.util.*;
|
|
|
|
|
import com.sun.jdi.PathSearchingVirtualMachine;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.junit.Test;
|
|
|
|
|
import org.springframework.validation.BindingResult;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
import org.springframework.web.context.request.RequestContextHolder;
|
|
|
|
@ -53,6 +52,7 @@ import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
|
import javax.validation.Valid;
|
|
|
|
|
import java.io.File;
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
|
import java.util.Date;
|
|
|
|
@ -227,6 +227,11 @@ public class ThrProductsAddDiController {
|
|
|
|
|
udiProductEntity.setBasicPrductRemak6(thrProductsAddDiEntity.getBasicPrductRemak6());
|
|
|
|
|
udiProductEntity.setBasicPrductRemak7(thrProductsAddDiEntity.getBasicPrductRemak7());
|
|
|
|
|
udiProductEntity.setBasicPrductRemak8(thrProductsAddDiEntity.getBasicPrductRemak8());
|
|
|
|
|
udiProductEntity.setBasicPrductRemak9(thrProductsAddDiEntity.getBasicPrductRemak9());
|
|
|
|
|
udiProductEntity.setBasicPrductRemak10(thrProductsAddDiEntity.getBasicPrductRemak10());
|
|
|
|
|
udiProductEntity.setBasicPrductRemak11(thrProductsAddDiEntity.getBasicPrductRemak11());
|
|
|
|
|
udiProductEntity.setBasicPrductRemak12(thrProductsAddDiEntity.getBasicPrductRemak12());
|
|
|
|
|
udiProductEntity.setBasicPrductRemak13(thrProductsAddDiEntity.getBasicPrductRemak13());
|
|
|
|
|
udiProductEntity.setGroupBuy(thrProductsAddDiEntity.getGroupBuy());
|
|
|
|
|
udiProductEntity.setCatalogname1(thrProductsAddDiEntity.getCatalogname1());
|
|
|
|
|
udiProductEntity.setCatalogname2(thrProductsAddDiEntity.getCatalogname2());
|
|
|
|
@ -249,6 +254,13 @@ public class ThrProductsAddDiController {
|
|
|
|
|
udiRelevanceEntity.setSupName(thrProductsAddDiEntity.getSupName());
|
|
|
|
|
udiRelevanceEntity.setIsDisable(false);
|
|
|
|
|
udiRelevanceEntity.setNewNeedUpload(true);
|
|
|
|
|
Integer isStack = thrProductsAddDiEntity.getIsStack();
|
|
|
|
|
if (isStack == 1){
|
|
|
|
|
udiRelevanceEntity.setIsStack(true);
|
|
|
|
|
}else {
|
|
|
|
|
udiRelevanceEntity.setIsStack(false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// udiProductEntity.setNameCode(null);
|
|
|
|
|
udiProductService.insertUdiInfo(udiProductEntity);
|
|
|
|
|
udiRelevanceService.insertUdiRelevance(udiRelevanceEntity);
|
|
|
|
@ -322,6 +334,11 @@ public class ThrProductsAddDiController {
|
|
|
|
|
udiProductEntity.setBasicPrductRemak6(thrProductsAddDiResponse.getBasicPrductRemak6());
|
|
|
|
|
udiProductEntity.setBasicPrductRemak7(thrProductsAddDiResponse.getBasicPrductRemak7());
|
|
|
|
|
udiProductEntity.setBasicPrductRemak8(thrProductsAddDiResponse.getBasicPrductRemak8());
|
|
|
|
|
udiProductEntity.setBasicPrductRemak9(thrProductsAddDiEntity.getBasicPrductRemak9());
|
|
|
|
|
udiProductEntity.setBasicPrductRemak10(thrProductsAddDiEntity.getBasicPrductRemak10());
|
|
|
|
|
udiProductEntity.setBasicPrductRemak11(thrProductsAddDiEntity.getBasicPrductRemak11());
|
|
|
|
|
udiProductEntity.setBasicPrductRemak12(thrProductsAddDiEntity.getBasicPrductRemak12());
|
|
|
|
|
udiProductEntity.setBasicPrductRemak13(thrProductsAddDiEntity.getBasicPrductRemak13());
|
|
|
|
|
udiProductEntity.setGroupBuy(thrProductsAddDiResponse.getGroupBuy());
|
|
|
|
|
udiProductEntity.setCatalogname1(thrProductsAddDiResponse.getCatalogname1());
|
|
|
|
|
udiProductEntity.setCatalogname2(thrProductsAddDiResponse.getCatalogname2());
|
|
|
|
@ -331,6 +348,12 @@ public class ThrProductsAddDiController {
|
|
|
|
|
udiRelevanceEntity.setPurType(thrProductsAddDiResponse.getPurType());
|
|
|
|
|
udiRelevanceEntity.setAttributeType(thrProductsAddDiResponse.getAttributeType());
|
|
|
|
|
udiRelevanceEntity.setHcType(thrProductsAddDiResponse.getHcType());
|
|
|
|
|
Integer isStack = thrProductsAddDiEntity.getIsStack();
|
|
|
|
|
if (isStack == 1){
|
|
|
|
|
udiRelevanceEntity.setIsStack(true);
|
|
|
|
|
}else {
|
|
|
|
|
udiRelevanceEntity.setIsStack(false);
|
|
|
|
|
}
|
|
|
|
|
udiProductEntity.setRequireCost(requireCost);
|
|
|
|
|
|
|
|
|
|
String flbm = thrProductsAddDiResponse.getFlbm();
|
|
|
|
@ -493,6 +516,13 @@ public class ThrProductsAddDiController {
|
|
|
|
|
return ResultVOUtils.success();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
public void dddd(){
|
|
|
|
|
String value = "1";
|
|
|
|
|
BigDecimal bigDecimal1 = new BigDecimal(value);
|
|
|
|
|
BigDecimal scaledValue1 = bigDecimal1.setScale(3, BigDecimal.ROUND_HALF_UP);
|
|
|
|
|
System.out.println("shucu :::::::" + scaledValue1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 更新DI产品信息
|
|
|
|
|