| | |
| | | import com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief;
|
| | | import com.yeshi.fanli.entity.taobao.TaoBaoShop;
|
| | | import com.yeshi.fanli.exception.brand.BrandInfoException;
|
| | | import com.yeshi.fanli.log.LogHelper;
|
| | | import com.yeshi.fanli.service.inter.brand.BrandClassShopService;
|
| | | import com.yeshi.fanli.service.inter.brand.BrandGoodsCaheService;
|
| | | import com.yeshi.fanli.service.inter.brand.BrandInfoService;
|
| | |
| | | } else {
|
| | | updateInfo.setShopTotal(listshop.size());
|
| | | }
|
| | | |
| | | updateInfo.setWeight(Math.random() * 1000);
|
| | | brandInfoMapper.updateByPrimaryKeySelective(updateInfo);
|
| | | }
|
| | | }
|
| | |
| | | return;
|
| | |
|
| | | for (BrandInfo brandInfo : list) {
|
| | | String name = brandInfo.getName();
|
| | | String searchKey = brandInfo.getSearchKey();
|
| | | if (StringUtil.isNullOrEmpty(name) && StringUtil.isNullOrEmpty(searchKey))
|
| | | continue;
|
| | |
|
| | | // 添加商品
|
| | | BrandInfo numInfo = brandGoodsCaheService.addBrandGoods(brandInfo);
|
| | |
|
| | | brandInfo.setGoodsTotal(numInfo.getGoodsTotal());
|
| | | brandInfo.setShopTotal(numInfo.getShopTotal());
|
| | | brandInfo.setUpdateTime(new Date());
|
| | | brandInfo.setWeight(Math.random() * 1000);
|
| | | brandInfoMapper.updateByPrimaryKeySelective(brandInfo);
|
| | | try {
|
| | | String name = brandInfo.getName();
|
| | | String searchKey = brandInfo.getSearchKey();
|
| | | if (StringUtil.isNullOrEmpty(name) && StringUtil.isNullOrEmpty(searchKey))
|
| | | continue;
|
| | | // 添加商品
|
| | | BrandInfo numInfo = brandGoodsCaheService.addBrandGoods(brandInfo);
|
| | | |
| | | BrandInfo updateInfo = new BrandInfo(); |
| | | updateInfo.setId(brandInfo.getId());
|
| | | updateInfo.setWeight(Math.random() * 1000);
|
| | | updateInfo.setGoodsTotal(numInfo.getGoodsTotal());
|
| | | updateInfo.setShopTotal(numInfo.getShopTotal());
|
| | | updateInfo.setUpdateTime(new Date());
|
| | | brandInfoMapper.updateByPrimaryKeySelective(updateInfo);
|
| | | } catch (Exception e) {
|
| | | LogHelper.errorDetailInfo(e);
|
| | | }
|
| | | |
| | | }
|
| | | }
|
| | |
|
| | |
| | |
|
| | | BigDecimal fanLiRate = hongBaoManageService.getFanLiRate();
|
| | | BigDecimal shareRate = hongBaoManageService.getShareRate();
|
| | | ConfigParamsDTO configParamsDTO = new ConfigParamsDTO(fanLiRate, shareRate, Constant.MAX_REWARD_RATE);
|
| | | ConfigParamsDTO configParamsDTO = new ConfigParamsDTO(fanLiRate, shareRate, Constant.MAX_REWARD_RATE,hongBaoManageService.getVIPFanLiRate());
|
| | | List<BrandInfoVO> listInfo = new ArrayList<BrandInfoVO>();
|
| | | for (int i = 0; i < list.size(); i++) {
|
| | | BrandInfoVO brand = list.get(i);
|