修改了商品参数集合判空方式
Signed-off-by: zhaoyang0415 <944381517@qq.com>
This commit is contained in:
parent
967852f84d
commit
7337cf6fa5
@ -1,5 +1,6 @@
|
||||
package cn.lili.modules.goods.entity.dos;
|
||||
|
||||
import cn.hutool.core.collection.CollectionUtil;
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import cn.hutool.core.text.CharSequenceUtil;
|
||||
import cn.hutool.http.HtmlUtil;
|
||||
@ -219,7 +220,7 @@ public class Goods extends BaseEntity {
|
||||
this.mobileIntro = goodsDTO.getMobileIntro();
|
||||
this.goodsVideo = goodsDTO.getGoodsVideo();
|
||||
this.price = goodsDTO.getPrice();
|
||||
if (goodsDTO.getGoodsParamsDTOList() != null && goodsDTO.getGoodsParamsDTOList().isEmpty()) {
|
||||
if (CollectionUtil.isNotEmpty(goodsDTO.getGoodsParamsDTOList())){
|
||||
this.params = JSONUtil.toJsonStr(goodsDTO.getGoodsParamsDTOList());
|
||||
}
|
||||
//如果立即上架则
|
||||
|
Loading…
x
Reference in New Issue
Block a user