|
|
@@ -457,7 +457,7 @@ public class ReportCreditController extends BaseController {
|
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping("/getCoreCreditLine")
|
|
|
- public AjaxResult getCoreCreditLine()
|
|
|
+ public AjaxResult getCoreCreditLine(String zfpType)
|
|
|
{
|
|
|
//获取当前企业的编号
|
|
|
LoginUser userInfo = tokenService.getLoginUser();
|
|
|
@@ -465,10 +465,15 @@ public class ReportCreditController extends BaseController {
|
|
|
Map<String,String> map = new HashMap<>();
|
|
|
//获取企业
|
|
|
String companyId = use.getCompanyId();
|
|
|
+ //默认反向
|
|
|
+ if(CommonUtil.isEmpty(zfpType)){
|
|
|
+ zfpType = "1";
|
|
|
+ }
|
|
|
//获取企业类型
|
|
|
String type = use.getCompanyType();
|
|
|
if(COMPANYTYPE_CORE.equals(type)){
|
|
|
//核心企业
|
|
|
+ map.put("zfpType",zfpType);
|
|
|
map.put("coreCompanyId", companyId);
|
|
|
}
|
|
|
//融信额度
|
|
|
@@ -644,8 +649,7 @@ public class ReportCreditController extends BaseController {
|
|
|
//周
|
|
|
map.put("returnDate",date);
|
|
|
}
|
|
|
- map.put("applyStatus","01");
|
|
|
- //报销所含项目
|
|
|
+ //还款金额
|
|
|
String amt = reportCreditService.financeRecordMonth(map);
|
|
|
returnData.add(amt);
|
|
|
}
|
|
|
@@ -661,67 +665,6 @@ public class ReportCreditController extends BaseController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 融资开立最近30天统计 -- 柱状图
|
|
|
- * @return
|
|
|
- */
|
|
|
- @GetMapping("/financeRecord")
|
|
|
- public AjaxResult financeRecord(){
|
|
|
- //获取当前企业的编号
|
|
|
- LoginUser userInfo = tokenService.getLoginUser();
|
|
|
- SysUser use = userInfo.getSysUser();
|
|
|
- //企业id
|
|
|
- String companyId = use.getCompanyId();
|
|
|
- //获取企业类型
|
|
|
- String type = use.getCompanyType();
|
|
|
- //默认当年
|
|
|
- //月份集合
|
|
|
- List<String> dateList = findDaysStr(DateUtils.getPastDate(30),DateUtils.dateTimeNow("yyyy-MM-dd"));
|
|
|
- //数据集合
|
|
|
- List<Map> dataList = new ArrayList<>();
|
|
|
- //开立额度
|
|
|
- List<String> data = new ArrayList<>();
|
|
|
- for (String date : dateList) {
|
|
|
- Map map = new HashMap();
|
|
|
- if(COMPANYTYPE_CORE.equals(type)){
|
|
|
- //核心企业
|
|
|
- map.put("coreCompanyId", companyId);
|
|
|
- }
|
|
|
- map.put("date",date);
|
|
|
- //报销所含项目
|
|
|
- String amt = reportCreditService.financeRecordMonth(map);
|
|
|
- data.add(amt);
|
|
|
- }
|
|
|
- //开立额度数据对象
|
|
|
- Map dataMap = new HashMap();
|
|
|
- dataMap.put("name","开立额度");
|
|
|
- dataMap.put("data",data);
|
|
|
- dataList.add(dataMap);
|
|
|
- //还款额度
|
|
|
- List<String> returnData = new ArrayList<>();
|
|
|
- for (String date : dateList) {
|
|
|
- Map map = new HashMap();
|
|
|
- if(COMPANYTYPE_CORE.equals(type)){
|
|
|
- //核心企业
|
|
|
- map.put("coreCompanyId", companyId);
|
|
|
- }
|
|
|
- map.put("returnDate",date);
|
|
|
- map.put("applyStatus","01");
|
|
|
- //报销所含项目
|
|
|
- String amt = reportCreditService.financeRecordMonth(map);
|
|
|
- returnData.add(amt);
|
|
|
- }
|
|
|
- //还款额度数据对象
|
|
|
- Map returnDataMap = new HashMap();
|
|
|
- returnDataMap.put("name","还款额度");
|
|
|
- returnDataMap.put("data",returnData);
|
|
|
- dataList.add(returnDataMap);
|
|
|
- Map result = new HashMap();
|
|
|
- result.put("dataList",dataList);
|
|
|
- result.put("dateList",dateList);
|
|
|
- return AjaxResult.success(result);
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
* 获取月份集合
|
|
|
* @return
|
|
|
*/
|