fix: 商品列表返回单位
This commit is contained in:
@@ -87,7 +87,7 @@ public class TbProduct implements Serializable {
|
||||
private String specInfo;
|
||||
private String selectSpec;
|
||||
@TableField(exist = false)
|
||||
private TbShopUnit unitName;
|
||||
private String unitName;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -158,10 +158,8 @@ public class ProductService {
|
||||
it.setSkuList(skuWithBLOBs);
|
||||
|
||||
it.setGroundingSpecInfo(querySpec(Integer.valueOf(shopId), it.getId()));
|
||||
if (it.getUnitId() != null) {
|
||||
|
||||
}
|
||||
it.setUnitName(finalShopUnitsMap.get(it.getUnitId()));
|
||||
TbShopUnit tbShopUnit = finalShopUnitsMap.get(it.getUnitId());
|
||||
it.setUnitName(tbShopUnit == null ? null : tbShopUnit.getName());
|
||||
});
|
||||
}
|
||||
PageInfo pageInfo=new PageInfo(tbProductWithBLOBs);
|
||||
|
||||
Reference in New Issue
Block a user