|  |  |  | 
|---|
|  |  |  | Utils.MP.blankToNull(pageWrap.getModel()); | 
|---|
|  |  |  | queryWrapper.leftJoin(Brand.class,Brand::getId,BaseGoods::getBrandId) | 
|---|
|  |  |  | .leftJoin(BaseCategory.class,BaseCategory::getId,BaseGoods::getCategoryId) | 
|---|
|  |  |  | //                    .leftJoin(BaseData.class,BaseData::getId,BaseGoods::getBaseDataId) | 
|---|
|  |  |  | .selectAll(BaseGoods.class) | 
|---|
|  |  |  | .selectAs(BaseCategory::getPriceRate,BaseGoods::getCateRatePrice) | 
|---|
|  |  |  | .selectAs(Brand::getName,BaseGoods::getBrandName) | 
|---|
|  |  |  | //                    .selectAs(BaseData::getPrice,BaseGoods::getJdPrice) | 
|---|
|  |  |  | .selectAs(BaseCategory::getName,BaseGoods::getCategoryName) | 
|---|
|  |  |  | .eq(BaseGoods::getIsdeleted, Constants.ZERO) | 
|---|
|  |  |  | .like(StringUtils.isNotBlank(pageWrap.getModel().getName()), BaseGoods::getName,pageWrap.getModel().getName()) | 
|---|
|  |  |  | 
|---|
|  |  |  | String prefixUrl = systemDictDataBiz.queryByCode(Constants.OSS, Constants.RESOURCE_PATH).getCode() | 
|---|
|  |  |  | + systemDictDataBiz.queryByCode(Constants.OSS, Constants.GOODS_IMG).getCode(); | 
|---|
|  |  |  | pageData.getRecords().forEach(i->{ | 
|---|
|  |  |  | i.setFullImgUrl(prefixUrl + i.getImgurl()); | 
|---|
|  |  |  | if(StringUtils.isNotBlank(i.getImgurl())){ | 
|---|
|  |  |  | i.setFullImgUrl(prefixUrl + i.getImgurl()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | i.setJdPrice(i.getPrice()); | 
|---|
|  |  |  | i.setPrice(Constants.formatBigdecimal(i.getPrice()).multiply(Constants.formatBigdecimal(i.getCateRatePrice()))); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | return pageData; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | .leftJoin(BaseCategory.class,BaseCategory::getId,BaseGoods::getCategoryId) | 
|---|
|  |  |  | .selectAll(BaseGoods.class) | 
|---|
|  |  |  | .selectAs(Brand::getName,BaseGoods::getBrandName) | 
|---|
|  |  |  | .selectAs(BaseCategory::getPriceRate,BaseGoods::getCateRatePrice) | 
|---|
|  |  |  | .selectAs(BaseCategory::getName,BaseGoods::getCategoryName) | 
|---|
|  |  |  | .eq(BaseGoods::getStatus, Constants.ZERO) | 
|---|
|  |  |  | .eq(BaseGoods::getIsdeleted, Constants.ZERO) | 
|---|
|  |  |  | 
|---|
|  |  |  | + systemDictDataBiz.queryByCode(Constants.OSS, Constants.GOODS_IMG).getCode(); | 
|---|
|  |  |  | pageData.getRecords().forEach(i->{ | 
|---|
|  |  |  | i.setFullImgUrl(prefixUrl + i.getImgurl()); | 
|---|
|  |  |  | //加价系数 | 
|---|
|  |  |  | i.setPrice(Constants.formatBigdecimal(i.getPrice()).multiply(Constants.formatBigdecimal(i.getCateRatePrice()))); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | return pageData; | 
|---|
|  |  |  | } | 
|---|