From 0e9b6603d4ae9d11c1fbc90257ce816c5807b8ff Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期五, 28 十月 2022 16:55:02 +0800 Subject: [PATCH] 批量添加结算消息 --- app/src/main/java/com/yeshi/makemoney/app/service/inter/money/ExtractService.java | 88 +++++++++++++++++++++++++++++++++++++------- 1 files changed, 74 insertions(+), 14 deletions(-) diff --git a/app/src/main/java/com/yeshi/makemoney/app/service/inter/money/ExtractService.java b/app/src/main/java/com/yeshi/makemoney/app/service/inter/money/ExtractService.java index 50d9516..7cd8ee8 100644 --- a/app/src/main/java/com/yeshi/makemoney/app/service/inter/money/ExtractService.java +++ b/app/src/main/java/com/yeshi/makemoney/app/service/inter/money/ExtractService.java @@ -1,20 +1,17 @@ package com.yeshi.makemoney.app.service.inter.money; -import java.lang.Exception; -import javax.annotation.Resource; -import java.util.Date; - import com.ks.lib.common.exception.ParamsException; +import com.yeshi.makemoney.app.dto.money.ExtractConfig; import com.yeshi.makemoney.app.dto.mq.ExtractTransferResultMQMsg; +import com.yeshi.makemoney.app.entity.SystemEnum; +import com.yeshi.makemoney.app.entity.money.Extract; import com.yeshi.makemoney.app.exception.money.ExtractException; import com.yeshi.makemoney.app.exception.money.UserMoneyBalanceException; -import org.yeshi.utils.bean.BeanUtil; - -import java.util.List; - -import com.yeshi.makemoney.app.entity.money.Extract; -import com.yeshi.makemoney.app.service.inter.money.ExtractService; import com.yeshi.makemoney.app.service.query.money.ExtractQuery; + +import java.math.BigDecimal; +import java.util.Date; +import java.util.List; public interface ExtractService { @@ -61,7 +58,7 @@ * @param: id * @param: adminId **/ - public void passExtract(Long id, Long adminId) throws ExtractException; + public void passExtract(Long id, String adminId) throws ExtractException; /** @@ -73,17 +70,80 @@ * @param: adminId * @param: reason **/ - public void rejectExtract(Long id, Long adminId, String reason) throws ExtractException, UserMoneyBalanceException, ParamsException; + public void rejectExtract(Long id, String adminId, String reason) throws ExtractException, UserMoneyBalanceException, ParamsException; /** - * @author hxh + * @return void + * @author hxh * @description 澶勭悊鎻愮幇缁撴灉 * @date 18:27 2022/4/1 * @param: msg - * @return void **/ public void processExtractResult(ExtractTransferResultMQMsg msg) throws ParamsException; + /** + * @return int + * @author hxh + * @description 灏忎簬鏌愪釜閲戦鐨勬彁鐜版鏁� + * @date 14:23 2022/4/8 + * @param: uid + * @param: money + * @param: stateList + **/ + public long countByMaxMoney(Long uid, BigDecimal money, List<Integer> stateList, Date minCreateTime); + + /** + * @return boolean + * @author hxh + * @description 鐢ㄦ埛鏄惁鍙互鎻愮幇灏忛噾棰� + * @date 15:02 2022/4/8 + * @param: uid + * @param: maxNewerCount + * @param: date + **/ + public boolean canExtractLittleMoney(Long uid, int maxNewerCount, Date date); + + + /** + * @return java.math.BigDecimal + * @author hxh + * @description 姝e湪鎻愮幇涓殑閲戦 + * @date 17:51 2022/4/20 + * @param: uid + **/ + public BigDecimal getExtractingMoney(Long uid); + + /** + * @return com.yeshi.makemoney.app.dto.money.ExtractConfig + * @author hxh + * @description 鑾峰彇鎻愮幇閰嶇疆 + * @date 17:57 2022/4/20 + * @param: system + **/ + public ExtractConfig getExtractConfig(SystemEnum system); + + + + /** + * @author hxh + * @description 鍒椾妇闇�瑕侀�氳繃鐨勮褰� + * @date 14:24 2022/6/20 + * @param: maxMoney + * @return java.util.List<com.yeshi.makemoney.app.entity.money.Extract> + **/ + public List<Extract> listNeedPassRecord(BigDecimal maxMoney,Date minCreateTime,int page,int pageSize); + + /** + * @author hxh + * @description 闇�瑕侀�氳繃鐨勮褰曞垪琛� + * @date 14:25 2022/6/20 + * @param: maxMoney + * @return long + **/ + public long countNeedPassRecord(BigDecimal maxMoney,Date minCreateTime); + + + } -- Gitblit v1.8.0