| | |
| | | import org.springframework.scheduling.annotation.Scheduled;
|
| | | import org.springframework.stereotype.Component;
|
| | |
|
| | | import com.yeshi.fanli.log.LogHelper;
|
| | | import com.yeshi.fanli.service.inter.brand.BrandInfoService;
|
| | | import com.yeshi.fanli.util.Constant;
|
| | |
|
| | |
| | | long count = brandInfoService.countValidByCid(null);
|
| | | if (count == 0)
|
| | | return;
|
| | |
|
| | | for (int page = 0; page < (count / 80) + 1; page++) {
|
| | | brandInfoService.addShopAndGoods(page * 80, 80);
|
| | | |
| | | long totalPage = (count / 100) + 1;
|
| | | for (long page = 0; page < totalPage; page++) {
|
| | | try {
|
| | | brandInfoService.addShopAndGoods(page * 100, 100);
|
| | | } catch (Exception e) {
|
| | | LogHelper.errorDetailInfo(e);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|