fix: 记账管理系统,记账账户统计,新增信用卡可用余额接口。
This commit is contained in:
@@ -5,6 +5,7 @@ import com.ruoyi.invest.domain.dto.AccountsDealRecordDto;
|
|||||||
import com.ruoyi.invest.domain.dto.BankCardLendDto;
|
import com.ruoyi.invest.domain.dto.BankCardLendDto;
|
||||||
import com.ruoyi.invest.domain.vo.AccountCalendarVo;
|
import com.ruoyi.invest.domain.vo.AccountCalendarVo;
|
||||||
import com.ruoyi.invest.domain.vo.AccountsDealRecordVo;
|
import com.ruoyi.invest.domain.vo.AccountsDealRecordVo;
|
||||||
|
import com.ruoyi.invest.domain.vo.AccountsVo;
|
||||||
import com.ruoyi.invest.domain.vo.BankCardLendVo;
|
import com.ruoyi.invest.domain.vo.BankCardLendVo;
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
@@ -66,4 +67,13 @@ public interface StatisticAnalysisMapper {
|
|||||||
*/
|
*/
|
||||||
@DataScope(businessAlias = "a")
|
@DataScope(businessAlias = "a")
|
||||||
public List<AccountsDealRecordVo> selectDailyExpensesDateList(AccountsDealRecordDto accountsDealRecordDto);
|
public List<AccountsDealRecordVo> selectDailyExpensesDateList(AccountsDealRecordDto accountsDealRecordDto);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询银行卡信息列表
|
||||||
|
*
|
||||||
|
* @param bankCardLendDto 银行卡信息
|
||||||
|
* @return 银行卡信息集合
|
||||||
|
*/
|
||||||
|
@DataScope(businessAlias = "a")
|
||||||
|
public List<AccountsVo> selectCreditCardList(BankCardLendDto bankCardLendDto);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1719,6 +1719,18 @@ public class StatisticAnalysisImpl implements IStatisticAnalysisService {
|
|||||||
//列表
|
//列表
|
||||||
map.put("accountsBalancesList",accountsBalancesList);
|
map.put("accountsBalancesList",accountsBalancesList);
|
||||||
|
|
||||||
|
List<AccountsVo> creditList=statisticAnalysisMapper.selectCreditCardList(new BankCardLendDto());
|
||||||
|
ArrayList<Map<String, Object>> creditBalancesList = new ArrayList<>();
|
||||||
|
for (AccountsVo vo:creditList
|
||||||
|
) {
|
||||||
|
Map<String, Object> datamap = new HashMap<>();
|
||||||
|
datamap.put("account", vo.getName());
|
||||||
|
datamap.put("availableLimit", vo.getAvailableLimit());
|
||||||
|
creditBalancesList.add(datamap);
|
||||||
|
}
|
||||||
|
//信用卡列表
|
||||||
|
map.put("creditBalancesList",creditBalancesList);
|
||||||
|
|
||||||
|
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -266,4 +266,19 @@
|
|||||||
to_char(a.create_time,
|
to_char(a.create_time,
|
||||||
'yyyy-MM-dd') desc
|
'yyyy-MM-dd') desc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="selectCreditCardList" parameterType="BankCardLendDto" resultType="com.ruoyi.invest.domain.vo.AccountsVo">
|
||||||
|
select
|
||||||
|
a."name" ,
|
||||||
|
sum(a.available_limit) as availableLimit
|
||||||
|
from
|
||||||
|
accounts a
|
||||||
|
where
|
||||||
|
a."type" = '2'
|
||||||
|
and a.status = '1'
|
||||||
|
<!-- 数据范围过滤 -->
|
||||||
|
${params.dataScope}
|
||||||
|
group by a."name"
|
||||||
|
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
Reference in New Issue
Block a user