|
@@ -117,7 +117,7 @@ public class ProductStoreRelaServiceImpl implements ProductStoreRelaService {
|
|
builder.put("attributeCategory", "一级分类");
|
|
builder.put("attributeCategory", "一级分类");
|
|
builder.put("categoryId", "二级分类");
|
|
builder.put("categoryId", "二级分类");
|
|
builder.put("brandId", "品牌");
|
|
builder.put("brandId", "品牌");
|
|
- builder.put("freightId", "运费模版");
|
|
|
|
|
|
+// builder.put("freightId", "运费模版");
|
|
|
|
|
|
R r = ValidatorUtil.isEmpty(builder.build(), valideDate);
|
|
R r = ValidatorUtil.isEmpty(builder.build(), valideDate);
|
|
if (Integer.valueOf(r.get("code").toString()) != 0) {
|
|
if (Integer.valueOf(r.get("code").toString()) != 0) {
|
|
@@ -281,7 +281,7 @@ public class ProductStoreRelaServiceImpl implements ProductStoreRelaService {
|
|
builder.put("attributeCategory", "一级分类");
|
|
builder.put("attributeCategory", "一级分类");
|
|
builder.put("categoryId", "二级分类");
|
|
builder.put("categoryId", "二级分类");
|
|
builder.put("brandId", "品牌");
|
|
builder.put("brandId", "品牌");
|
|
- builder.put("freightId", "运费模版");
|
|
|
|
|
|
+// builder.put("freightId", "运费模版");
|
|
|
|
|
|
R r = ValidatorUtil.isEmpty(builder.build(), valideDate);
|
|
R r = ValidatorUtil.isEmpty(builder.build(), valideDate);
|
|
if (Integer.valueOf(r.get("code").toString()) != 0) {
|
|
if (Integer.valueOf(r.get("code").toString()) != 0) {
|
|
@@ -868,12 +868,12 @@ public class ProductStoreRelaServiceImpl implements ProductStoreRelaService {
|
|
}else{
|
|
}else{
|
|
throw new RRException("商品[" + storeGoodsDto.getGoodsSn() + "]的品牌输入有误");
|
|
throw new RRException("商品[" + storeGoodsDto.getGoodsSn() + "]的品牌输入有误");
|
|
}
|
|
}
|
|
- FreightEntity freightEntity = freightDao.queryFreightByFreightNameAndStoreId(storeGoodsDto.getFreightName(), store.getId());
|
|
|
|
|
|
+ /*FreightEntity freightEntity = freightDao.queryFreightByFreightNameAndStoreId(storeGoodsDto.getFreightName(), store.getId());
|
|
if (freightEntity != null) {
|
|
if (freightEntity != null) {
|
|
storeRelaEntity.setFreightId(freightEntity.getId());
|
|
storeRelaEntity.setFreightId(freightEntity.getId());
|
|
}else{
|
|
}else{
|
|
throw new RRException("商品[" + storeGoodsDto.getGoodsSn() + "]的运费模板输入有误");
|
|
throw new RRException("商品[" + storeGoodsDto.getGoodsSn() + "]的运费模板输入有误");
|
|
- }
|
|
|
|
|
|
+ }*/
|
|
// 如果底线价大于零售价
|
|
// 如果底线价大于零售价
|
|
if (new BigDecimal(storeGoodsDto.getBottomLinePrice()).compareTo(new BigDecimal(storeGoodsDto.getRetailPrice())) == 1) {
|
|
if (new BigDecimal(storeGoodsDto.getBottomLinePrice()).compareTo(new BigDecimal(storeGoodsDto.getRetailPrice())) == 1) {
|
|
throw new RRException("商品[" + storeGoodsDto.getGoodsSn() + "]的底线价不可以大于零售价");
|
|
throw new RRException("商品[" + storeGoodsDto.getGoodsSn() + "]的底线价不可以大于零售价");
|