| | |
| | | BaseGoods model = new BaseGoods(); |
| | | model.setId(id); |
| | | model.setEditDate(new Date()); |
| | | model.setIsdeleted(Constants.ZERO); |
| | | model.setIsdeleted(Constants.ONE); |
| | | updateById(model); |
| | | // baseGoodsMapper.deleteById(id); |
| | | } |
| | |
| | | .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; |
| | | } |
| | |
| | | // baseGoods.setImgurl(); |
| | | baseGoods.setCategoryId(baseCategory.getId()); |
| | | baseGoods.setBrandId(brand.getId()); |
| | | baseGoods.setPinyin(PinYinUtil.getFullSpell(s.getName())); |
| | | baseGoods.setShortPinyin(PinYinUtil.getFirstSpell(s.getName())); |
| | | baseGoodsMapper.insert(baseGoods); |
| | | |
| | | if(mulFiles !=null && mulFiles.size()>0){ |