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