From 788deca1b4a24f8a24e49c24f7d89975a1d74bbe Mon Sep 17 00:00:00 2001 From: admin <2780501319@qq.com> Date: 星期日, 03 十一月 2019 23:31:25 +0800 Subject: [PATCH] 商城订单退款处理 --- fanli/src/main/java/com/yeshi/fanli/dao/mybatis/ThreeSaleMapper.java | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 56 insertions(+), 2 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/ThreeSaleMapper.java b/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/ThreeSaleMapper.java index 79fa954..87d2881 100644 --- a/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/ThreeSaleMapper.java +++ b/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/ThreeSaleMapper.java @@ -26,6 +26,23 @@ int updateByPrimaryKey(ThreeSale record); int effectThreeSale(Long workerUid); + + /** + * 鍒犻櫎澶辨晥 + * @param bossId + * @param workerId + * @return + */ + int deleteExpireRecord(@Param("bossId")Long bossId, @Param("workerId")Long workerId); + + /** + * 澶辨晥 + * @param bossId + * @param workerId + * @return + */ + List<ThreeSale> getExpireRecord(@Param("bossId")Long bossId, @Param("workerId")Long workerId); + /** * 鏌ヨ涓�搴﹂槦鍛橀泦鍚� @@ -132,7 +149,8 @@ * @param paramLong1 * @return */ - List<ThreeSale> listFirstTeam(@Param("start") long start, @Param("count") int count, @Param("uid") Long uid); + List<ThreeSale> listFirstTeam(@Param("start") long start, @Param("count") int count, + @Param("uid") Long uid, @Param("state") Integer state); /** * 缁熻涓�绾ч槦鍛� @@ -151,7 +169,8 @@ * @param uid * @return */ - List<ThreeSale> listSecondTeam(@Param("start") long start, @Param("count") int count, @Param("uid") Long uid); + List<ThreeSale> listSecondTeam(@Param("start") long start, @Param("count") int count, + @Param("uid") Long uid,@Param("state") Integer state); /** * 缁熻浜岀骇闃熷憳 @@ -204,5 +223,40 @@ */ ThreeSale getRelationshipByBossIdAndWorkerId(@Param("bossId") Long bossId, @Param("workerId") Long workerId); + /** + * 鏍规嵁涓嬬骇鏌ヨ鎴愬姛鐨勯個璇峰叧绯� + * @param workerId + * @return + */ + ThreeSale selectSuccessByWorkerId(Long workerId); + + /** + * 鏍规嵁閭�璇疯�匢D鏌ヨ鏈け鏁堝叧绯� + * + * @param workerId + * @return + */ + ThreeSale getByWorkerId(Long workerId); + + + /** + * 鏌ヨ鏃堕棿娈甸個璇锋垚鍔熶汉淇℃伅 + * @param bossId + * @param minTime + * @param maxTime + * @return + */ + List<ThreeSale> getSuccessByDate(@Param("bossId")Long bossId,@Param("minTime")Long minTime, @Param("maxTime")Long maxTime); + + /** + * 鏌ヨ鏈�杩戠殑淇℃伅锛堟牴鎹笅绾D涓庣姸鎬侊級 + * @param workerId + * @param state + * @return + */ + ThreeSale selectLatestByWorkerIdAndState(@Param("workerId") Long workerId,@Param("state") int state); + + + } \ No newline at end of file -- Gitblit v1.8.0