From 8a2a463d46b3dce73015462c9f6a2a258dd25f5b Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期五, 25 二月 2022 11:40:11 +0800
Subject: [PATCH] 优化diamante
---
service-acct/src/main/java/com/java110/acct/dao/impl/AccountWithdrawalApplyServiceDaoImpl.java | 32 +++++++++++++++++++++++++++++++-
1 files changed, 31 insertions(+), 1 deletions(-)
diff --git a/service-acct/src/main/java/com/java110/acct/dao/impl/AccountWithdrawalApplyServiceDaoImpl.java b/service-acct/src/main/java/com/java110/acct/dao/impl/AccountWithdrawalApplyServiceDaoImpl.java
index 9df2246..e97f533 100644
--- a/service-acct/src/main/java/com/java110/acct/dao/impl/AccountWithdrawalApplyServiceDaoImpl.java
+++ b/service-acct/src/main/java/com/java110/acct/dao/impl/AccountWithdrawalApplyServiceDaoImpl.java
@@ -7,7 +7,7 @@
import com.java110.core.base.dao.BaseServiceDao;
import com.java110.acct.dao.IAccountWithdrawalApplyServiceDao;
import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
+import com.java110.core.log.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@@ -94,5 +94,35 @@
return Integer.parseInt(businessAccountWithdrawalApplyInfos.get(0).get("count").toString());
}
+ /**
+ * 鏌ヨ璐︽埛鎻愮幇淇℃伅锛坕nstance锛�
+ * @param info bId 淇℃伅
+ * @return List<Map>
+ * @throws DAOException DAO寮傚父
+ */
+ @Override
+ public List<Map> listStateWithdrawalApplys(Map info) throws DAOException {
+ logger.debug("鏌ヨ璐︽埛鎻愮幇淇℃伅 鍏ュ弬 info : {}",info);
+ List<Map> businessAccountWithdrawalApplyInfos = sqlSessionTemplate.selectList("accountWithdrawalApplyServiceDaoImpl.listStateWithdrawalApplys",info);
+
+ return businessAccountWithdrawalApplyInfos;
+ }
+
+ /**
+ * 鏌ヨ璐︽埛鎻愮幇鏁伴噺
+ * @param info 璐︽埛鎻愮幇淇℃伅
+ * @return 璐︽埛鎻愮幇鏁伴噺
+ */
+ @Override
+ public int listStateWithdrawalApplysCount(Map info) {
+ logger.debug("鏌ヨ璐︽埛鎻愮幇鏁版嵁 鍏ュ弬 info : {}",info);
+
+ List<Map> businessAccountWithdrawalApplyInfos = sqlSessionTemplate.selectList("accountWithdrawalApplyServiceDaoImpl.listStateWithdrawalApplysCount", info);
+ if (businessAccountWithdrawalApplyInfos.size() < 1) {
+ return 0;
+ }
+
+ return Integer.parseInt(businessAccountWithdrawalApplyInfos.get(0).get("count").toString());
+ }
}
--
Gitblit v1.8.0