| | |
| | | |
| | | @Override |
| | | public void saveObject(MultipartFile file, MultipartFile file2, MultipartFile file3, Special record, |
| | | String jumpType, CommonShareInfo shareInfo) throws SpecialException, Exception { |
| | | String jumpType, CommonShareInfo shareInfo,SystemEnum system) throws SpecialException, Exception { |
| | | |
| | | Long cardId = record.getCardId(); |
| | | if (cardId == null) { |
| | |
| | | } |
| | | |
| | | if (!StringUtil.isNullOrEmpty(jumpType)) { |
| | | List<JumpDetailV2> listByType = jumpDetailV2Service.listByType(jumpType); |
| | | List<JumpDetailV2> listByType = jumpDetailV2Service.listByType(jumpType,system); |
| | | if (listByType != null && listByType.size() > 0) { |
| | | record.setJumpDetail(listByType.get(0)); |
| | | } |
| | |
| | | if (listArc != null && VersionUtil.greaterThan_1_5_50(acceptData.getPlatform(), acceptData.getVersion())) |
| | | for (Special s : listArc) { |
| | | if (s.getName().contains("9.9")) {// 9块9 |
| | | s.setJumpDetail(jumpDetailV2Service.getByTypeCache("common_template")); |
| | | s.setJumpDetail(jumpDetailV2Service.getByTypeCache("common_template",system)); |
| | | JSONObject params = new JSONObject(); |
| | | params.put("key", CommonContentTypeEnum._9k9.name()); |
| | | params.put("title", CommonContentTypeEnum._9k9.getDesc()); |
| | | s.setParams(params.toString()); |
| | | } else if (s.getName().contains("自购立减")) { |
| | | if (hour < 6) {// 0-6点之间不进入自购立减的页面 |
| | | s.setJumpDetail(jumpDetailV2Service.getByTypeCache("web")); |
| | | s.setJumpDetail(jumpDetailV2Service.getByTypeCache("web",system)); |
| | | JSONObject params = new JSONObject(); |
| | | params.put("url", configService.getValue(ConfigKeyEnum.tljOwnBuyNogoods.getKey(), SystemInfoUtil.getSystem(acceptData))); |
| | | s.setParams(params.toString()); |
| | |
| | | if (listBlock != null) |
| | | for (int i = 0; i < listBlock.size(); i++) { |
| | | if ("品牌券".equalsIgnoreCase(listBlock.get(i).getName())) { |
| | | listBlock.get(i).setJumpDetail(jumpDetailV2Service.getByTypeCache("hot_cakes")); |
| | | listBlock.get(i).setJumpDetail(jumpDetailV2Service.getByTypeCache("hot_cakes",system)); |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | specialVO.setComment(comment); |
| | | specialVO.setParams(params.toString()); |
| | | specialVO.setJumpDetail(jumpDetailV2Service.getByTypeCache("web")); |
| | | specialVO.setJumpDetail(jumpDetailV2Service.getByTypeCache("web",system)); |
| | | } |
| | | listVo.add(specialVO); |
| | | } |