| | |
| | | }
|
| | |
|
| | | @Override
|
| | | public PushGoods selectByPrimaryKey(Long id) throws PushGoodsException {
|
| | | public PushGoods selectByPrimaryKey(Long id) {
|
| | | return pushGoodsMapper.selectByPrimaryKey(id);
|
| | | }
|
| | |
|
| | |
| | | List<ImgInfo> imgList = goodsEvaluate.getImgList();
|
| | | if (imgList != null && imgList.size() > 0) {
|
| | | for (ImgInfo imgInfo: imgList) {
|
| | | if (imgInfo.getType() == ImgEnum.img && !StringUtil.isNullOrEmpty(imgInfo.getUrl())) {
|
| | | if (!StringUtil.isNullOrEmpty(imgInfo.getUrl()) && StringUtil.isNullOrEmpty(picUrl)
|
| | | && (imgInfo.getType() == ImgEnum.img || imgInfo.getType() == ImgEnum.activity)) {
|
| | | picUrl = imgInfo.getUrl();
|
| | | break;
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | |
|
| | |
|
| | | // 定时时间
|
| | | if (StringUtil.isNullOrEmpty(record.getControlTime_str())) {
|
| | | if (!StringUtil.isNullOrEmpty(record.getControlTime_str())) {
|
| | | SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm");
|
| | | record.setControlTime(format.parse(record.getControlTime_str().replaceAll("T", " ")));
|
| | | }
|
| | |
| | | if (StringUtil.isNullOrEmpty(url)) {
|
| | | throw new PushGoodsException(1, "推送页面链接不存在");
|
| | | }
|
| | | url = url + "?id=" + pushGoods.getId() + "&otherId=" + pushGoods.getOtherId();
|
| | | |
| | | url = url + "?id=" + pushGoods.getId();
|
| | | // h活动全推
|
| | | pushService.pushUrl(pushGoods.getUid(), pushGoods.getTitle(), pushGoods.getContent(), url, listIOS, listAndroid);
|
| | | }
|