|
|
@@ -210,7 +210,7 @@ public class GoodsLogic {
|
|
|
*/
|
|
|
public GoodsSpecBean detail(String goodsId, Boolean allStorageSpec) throws RemoteServiceException {
|
|
|
Goods goods = goodsService.getById(goodsId);
|
|
|
- final GoodsDetail goodsDetail = goodsDetailService.getById(goodsId);
|
|
|
+ final GoodsDetail goodsDetail = !allStorageSpec ? goodsDetailService.getById(goodsId) : null;
|
|
|
List<GoodsSpec> goodsSpecs = goodsSpecService.lambdaQuery()
|
|
|
.eq(GoodsSpec::getGoodsId, goodsId)
|
|
|
.eq(GoodsSpec::getDel, false)
|