|
|
@@ -340,28 +340,24 @@ public class GoodsDescServiceImpl extends ServiceImpl<GoodsDescMapper, GoodsDesc
|
|
|
GoodsDesc goodsDesc=new GoodsDesc();
|
|
|
goodsDesc.setCode(e.getCode());
|
|
|
goodsDesc.setCname(e.getCname());
|
|
|
- goodsDesc.setTypeno(e.getTypeNo());
|
|
|
- goodsDesc.setBrand(e.getBrand());
|
|
|
goodsDesc.setBrandItem(e.getBrandItem());
|
|
|
- goodsDesc.setSpecs(e.getSpecs());
|
|
|
- goodsDesc.setType(0L);
|
|
|
- goodsDesc.setCategory(e.getCategory());
|
|
|
- goodsDesc.setCategoryitem(e.getCategoryitem());
|
|
|
- goodsDesc.setUnit(e.getUnit());
|
|
|
- goodsDesc.setPackgeunit(e.getPackgeunit());
|
|
|
+ goodsDesc.setBrand(e.getBrand());
|
|
|
+ goodsDesc.setTypeno(e.getTypeNo());
|
|
|
+ goodsDesc.setSpecsOne(e.getSpecsOne());
|
|
|
+ goodsDesc.setLevel(e.getLevel());
|
|
|
+ goodsDesc.setLevelOne(e.getLevelOne());
|
|
|
+ goodsDesc.setMasterUnit(e.getMasterUnit());
|
|
|
+ goodsDesc.setSlaveUnit(e.getSlaveUnit());
|
|
|
+ goodsDesc.setSwapRate(e.getSwapRate());
|
|
|
+ goodsDesc.setTinyNumber(e.getTinyNumber());
|
|
|
+ goodsDesc.setTax(e.getTax());
|
|
|
+ goodsDesc.setPrice(e.getPrice());
|
|
|
+ goodsDesc.setEffectiveDay(e.getEffectiveDay());
|
|
|
+ goodsDesc.setPlaceProduction(e.getPlaceProduction());
|
|
|
+ goodsDesc.setCompany(e.getCompany());
|
|
|
goodsDesc.setRemarks(e.getRemarks());
|
|
|
- goodsDesc.setGoodsTypeId(e.getTypeId());
|
|
|
- goodsDesc.setEname(e.getEname());
|
|
|
- goodsDesc.setNameDescription(e.getNameDescription());
|
|
|
- goodsDesc.setCnameDescription(e.getCnameDescription());
|
|
|
- goodsDesc.setCustomCode(e.getCustomCode());
|
|
|
- goodsDesc.setCustomName(e.getCustomName());
|
|
|
- goodsDesc.setCustomEname(e.getCustomEname());
|
|
|
+ goodsDesc.setType(0L);
|
|
|
goodsDesc.setGoodsTypeId(String.valueOf(goodsType.getId()));
|
|
|
- if(e.getCustomRate()!=null)
|
|
|
- {
|
|
|
- goodsDesc.setCustomRate(new BigDecimal(e.getCustomRate()));
|
|
|
- }
|
|
|
//如果名称相等 就认为重复
|
|
|
LambdaQueryWrapper<GoodsDesc> queryWrapper = new LambdaQueryWrapper<>();
|
|
|
queryWrapper.eq(GoodsDesc::getTenantId,AuthUtil.getTenantId());
|