From dc5be7d38446f70e6ff86df311119c32b41fe7f8 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 28 十一月 2020 16:37:05 +0800 Subject: [PATCH] 大淘客搜索接口升级 --- fanli/src/main/java/com/yeshi/fanli/service/inter/push/PushGoodsService.java | 46 ++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 38 insertions(+), 8 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/inter/push/PushGoodsService.java b/fanli/src/main/java/com/yeshi/fanli/service/inter/push/PushGoodsService.java index 69ffc09..a581136 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/inter/push/PushGoodsService.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/inter/push/PushGoodsService.java @@ -3,8 +3,9 @@ import java.util.Date; import java.util.List; +import com.yeshi.fanli.entity.SystemEnum; import com.yeshi.fanli.entity.push.PushGoods; -import com.yeshi.fanli.exception.PushException; +import com.yeshi.fanli.exception.push.PushException; import com.yeshi.fanli.exception.push.PushGoodsException; public interface PushGoodsService { @@ -15,13 +16,13 @@ public int insertSelective(PushGoods record) throws PushGoodsException; - public PushGoods selectByPrimaryKey(Long id) throws PushGoodsException; + public PushGoods selectByPrimaryKey(Long id); public int updateByPrimaryKeySelective(PushGoods record) throws PushGoodsException; public int updateByPrimaryKey(PushGoods record) throws PushGoodsException; - public void save(PushGoods record, List<Long> goodsId) throws Exception; + public void save(PushGoods record, List<Long> goodsId) throws PushGoodsException,Exception; /** * 鎵归噺鍒犻櫎 @@ -38,9 +39,9 @@ * @param key * @return */ - public List<PushGoods> listQuery(long start, int count, String key, Integer state); + public List<PushGoods> listQuery(long start, int count, String key, Integer state, SystemEnum system); - public long countQuery(String key, Integer state); + public long countQuery(String key, Integer state, SystemEnum system); /** * 鑾峰彇鍘嗗彶鎺ㄩ�佸晢鍝佷俊鎭� @@ -49,9 +50,9 @@ * @param pushTime * @return */ - public List<PushGoods> listHistoryByPushTime(long start, int count, Long uid, Date pushTime); + public List<PushGoods> listHistoryByPushTime(long start, int count, Long uid, Date pushTime, SystemEnum system); - public long countHistoryByPushTime(Long uid, Date pushTime); + public long countHistoryByPushTime(Long uid, Date pushTime, SystemEnum system); /** @@ -61,6 +62,35 @@ * @throws PushGoodsException * @throws PushException */ - public void executePush(Long id) throws Exception, PushGoodsException, PushException; + public void executePush(PushGoods record) throws Exception, PushGoodsException, PushException; + + /** + * 瀹氭椂鎺ㄩ�佷换鍔� + * @return + */ + public List<PushGoods> listTask(SystemEnum system); + + /** + * 瀹氭椂鎺ㄩ�佸鐞� + * @param record + */ + public void taskPush(PushGoods record); + + /** + * 鍚庣鎺ㄩ�� + * @param id + * @throws Exception + * @throws PushGoodsException + * @throws PushException + */ + public void handPush(Long id) throws Exception, PushGoodsException, PushException; + + /** + * 淇濆瓨淇℃伅 + * @param record + * @throws PushGoodsException + * @throws Exception + */ + public void saveInfo(PushGoods record) throws PushGoodsException, Exception; } -- Gitblit v1.8.0