| | |
| | | import org.yeshi.utils.tencentcloud.COSManager;
|
| | |
|
| | | import com.yeshi.fanli.dao.mybatis.homemodule.SpecialMapper;
|
| | | import com.yeshi.fanli.entity.accept.AcceptData;
|
| | | import com.yeshi.fanli.entity.bus.homemodule.Special;
|
| | | import com.yeshi.fanli.entity.bus.homemodule.SwiperPicture;
|
| | | import com.yeshi.fanli.entity.common.JumpDetailV2;
|
| | | import com.yeshi.fanli.exception.homemodule.SpecialException;
|
| | | import com.yeshi.fanli.service.inter.common.JumpDetailV2Service;
|
| | | import com.yeshi.fanli.service.inter.config.ConfigService;
|
| | | import com.yeshi.fanli.service.inter.homemodule.SpecialCardService;
|
| | | import com.yeshi.fanli.service.inter.homemodule.SpecialPlaceService;
|
| | | import com.yeshi.fanli.service.inter.homemodule.SpecialService;
|
| | |
| | |
|
| | | @Resource
|
| | | private JumpDetailV2Service jumpDetailV2Service;
|
| | | |
| | | @Resource
|
| | | private ConfigService configService;
|
| | |
|
| | |
|
| | | @Override
|
| | |
| | |
|
| | | @Override
|
| | | @Cacheable(value = "configCache", key = "'listCacheSpecialToIndex'")
|
| | | public JSONObject listCacheSpecialToIndex() throws Exception{
|
| | | public JSONObject listCacheSpecialToIndex(AcceptData acceptData) throws Exception{
|
| | |
|
| | | // 首页-5圆形2排区域
|
| | | JSONObject arcMap = new JSONObject();
|
| | |
| | |
|
| | | // 首页-活动区域(女王节)
|
| | | JSONObject activityMap = new JSONObject();
|
| | | List<Special> listActivity = specialMapper.listByPlaceKey("index_activity");
|
| | | List<Special> listActivity = null;
|
| | | if ("ios".equalsIgnoreCase(acceptData.getPlatform())
|
| | | && configService.iosOnLining(Integer.parseInt(acceptData.getVersion()))) {
|
| | | // 如果IOS当前版本处于审核状态就不返回
|
| | | } else {
|
| | | listActivity = specialMapper.listByPlaceKey("index_activity");
|
| | | }
|
| | | |
| | | if (listActivity == null) {
|
| | | listActivity = new ArrayList<Special>();
|
| | | } else if(listActivity.size() > 0){
|
| | |
| | | activityMap.put("list", JsonUtil.getApiCommonGson().toJson(listActivity));
|
| | |
|
| | |
|
| | | |
| | | // 首页-方形专题(品牌券、母婴...)
|
| | | JSONObject blockJsonMap = new JSONObject();
|
| | | List<Special> listBlock = specialMapper.listByPlaceKey("index_block");
|