From 3d3a9b46b56ded968b1803456470b5ec31e43ce7 Mon Sep 17 00:00:00 2001 From: 喻健 <喻健@Admin> Date: 星期五, 30 十一月 2018 14:10:42 +0800 Subject: [PATCH] 调整推送内容以及队员返回字段 --- fanli/src/main/java/com/yeshi/fanli/service/impl/push/PushGoodsServiceImpl.java | 22 ++++++---------------- 1 files changed, 6 insertions(+), 16 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/push/PushGoodsServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/push/PushGoodsServiceImpl.java index c7a4781..8e9e130 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/push/PushGoodsServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/push/PushGoodsServiceImpl.java @@ -181,13 +181,13 @@ @Transactional public int deleteBatchByPrimaryKey(List<Long> list) throws Exception { - List<PushGoods> lisState = pushGoodsMapper.listByPushState(list); + /*List<PushGoods> lisState = pushGoodsMapper.listByPushState(list); if (lisState != null && lisState.size() > 0) { for (PushGoods pushGoods : lisState) { // 宸叉帹閫佺殑娑堟伅涓嶈兘鍒犻櫎 list.remove(pushGoods.getId()); } - } + }*/ // 鍒犻櫎瀵瑰簲鍟嗗搧 pushGoodsGroupService.deleteBatchByPushId(list); @@ -206,13 +206,13 @@ } @Override - public List<PushGoods> listHistoryByPushTime(long start, int count, Date pushTime) { - return pushGoodsMapper.listHistoryByPushTime(start, count, pushTime); + public List<PushGoods> listHistoryByPushTime(long start, int count, Long uid, Date pushTime) { + return pushGoodsMapper.listHistoryByPushTime(start, count, uid, pushTime); } @Override - public long countHistoryByPushTime(Date pushTime) { - return pushGoodsMapper.countHistoryByPushTime(pushTime); + public long countHistoryByPushTime(Long uid, Date pushTime) { + return pushGoodsMapper.countHistoryByPushTime(uid, pushTime); } @Override @@ -243,11 +243,6 @@ } Long goodsId = commonGoods.getGoodsId(); - JSONObject json = IOSPushFactory.createGoodsPush(goodsId, alertTitle, alertContent); - if (json.toString().getBytes().length > 256) { - throw new PushException(1, "鏍囬鎴栧唴瀹硅繃闀�,璇峰垹鍑忓悗鍐嶈瘯"); - } - String url = "https://item.taobao.com/item.htm?id=" + goodsId; pushService.pushGoods(pushGoods.getUid(), url, alertTitle, alertContent); @@ -260,11 +255,6 @@ } // 鐢熸垚閾炬帴 url = url + "?id=" + id; - - JSONObject json = IOSPushFactory.createURLPush(HttpUtil.getShortLink(url), alertTitle, alertContent); - if (json.toString().getBytes().length > 256) { - throw new PushException(1, "鏍囬鎴栧唴瀹硅繃闀�,璇峰垹鍑忓悗鍐嶈瘯"); - } pushService.pushUrl(pushGoods.getUid(), url, alertTitle, alertContent); } -- Gitblit v1.8.0