| | |
| | | package com.yeshi.fanli.job;
|
| | |
|
| | | import java.util.Date;
|
| | |
|
| | | import javax.annotation.Resource;
|
| | |
|
| | | import org.springframework.scheduling.annotation.Scheduled;
|
| | | import org.springframework.stereotype.Component;
|
| | | import org.yeshi.utils.DateUtil;
|
| | |
|
| | | import com.yeshi.fanli.log.LogHelper;
|
| | | import com.yeshi.fanli.service.inter.brand.BrandInfoService;
|
| | | import com.yeshi.fanli.util.Constant;
|
| | |
|
| | |
| | | if (count == 0)
|
| | | return;
|
| | |
|
| | | for (int page = 1; page < (count / 100) + 1; page++) {
|
| | | brandInfoService.addShopAndGoods((page - 1) * 100, 100);
|
| | | for (int page = 0; page < (count / 80) + 1; page++) {
|
| | | brandInfoService.addShopAndGoods(page * 80, 80);
|
| | | }
|
| | | }
|
| | |
|
| | | |
| | | }
|