java110
2022-05-19 636b46b0da8220ff4560ca5328509f4c701462c9
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());
    }
    /**
     * 查询账户提现信息(instance)
     * @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());
    }
}