CaseCount.java 4.12 KB
package com.lhcredit.project.business.model;

import com.alibaba.fastjson.JSONObject;
import com.lhcredit.framework.aspectj.lang.annotation.Excel;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Data
public class CaseCount {

    @Excel(name = "统计项目")
    private String caseType;

    @Excel(name = "案件总数")
    private String countTotal;

    @Excel(name = "已结案总数")
    private String countJieTotal;

    @Excel(name = "未结案总数")
    private String countWeiTotal;

    @Excel(name = "原告总数")
    private String countYuangao;

    @Excel(name = "原告已结案总数")
    private String countJieYuangao;

    @Excel(name = "原告未结案总数")
    private String countWeiYuangao;

    @Excel(name = "被告总数")
    private String countBeigao;

    @Excel(name = "被告已结案总数")
    private String countJieBeigao;

    @Excel(name = "被告未结案总数")
    private String countWeiBeigao;

    @Excel(name = "第三人总数")
    private String countOther;

    @Excel(name = "第三人已结案总数")
    private String countJieOther;

    @Excel(name = "第三人未结案总数")
    private String countWeiOther;

    @Excel(name = "涉案总金额")
    private String moneyTotal;

    @Excel(name = "已结案金额")
    private String moneyJieTotal;

    @Excel(name = "未结案金额")
    private String moneyWeiTotal;

    @Excel(name = "未结案金额百分比")
    private String moneyWeiPercent;

    @Excel(name = "原告金额")
    private String moneyYuangao;

    @Excel(name = "原告已结金额")
    private String moneyJieYuangao;

    @Excel(name = "原告未结案金额")
    private String moneyWeiYuangao;

    @Excel(name = "被告金额")
    private String moneyBeigao;

    @Excel(name = "被告已结案金额")
    private String moneyJieBeigao;

    @Excel(name = "被告未结案金额")
    private String moneyWeiBeigao;

    @Excel(name = "第三人金额")
    private String moneyOther;

    @Excel(name = "第三人已结案金额")
    private String moneyJieOther;

    @Excel(name = "第三人未结案金额")
    private String moneyWeiother;

    @Excel(name = "涉案案由分布")
    private String ayStat;

    @Excel(name = "涉案地点分布")
    private String areaStat;

    @Excel(name = "涉案时间分布")
    private String larqStat;

    @Excel(name = "结案方式分布")
    private String jafsStat;

    /* 1年以内 */
    private int oneyear;

    /* 1-3年 */
    private int onetothreeyear;

    /* 3-5年 */
    private int threetofiveyear;

    /* 5年以上 */
    private int fiveyear;

    /* 涉诉总数 */
    private int sstotal;
    /* 涉诉已结案数量 */
    private int ssyja;
    /* 涉诉未结案数量 */
    private int sswja;
    /* 原告已结案胜诉 */
    private int ygyjass;
    /* 原告已结案败诉 */
    private int ygyjabs;
    /* 原告已结案未知 */
    private int ygyjawz;
    /* 原告未结案 */
    private int ygwja;
    /* 被告已结案胜诉 */
    private int bgyjass;
    /* 被告已结案败诉 */
    private int bgyjabs;
    /* 被告已结案未知 */
    private int bgyjawz;
    /* 被告未结案 */
    private int bgwja;
    /* 第三人已结案胜诉 */
    private int dsryjass;
    /* 第三人已结案败诉 */
    private int dsryjabs;
    /* 第三人已结案未知 */
    private int dsryjawz;
    /* 第三人未结案 */
    private int dsrwja;

    private Map<String,String> larqmap;

    public List<JSONObject> getLarqmap(){
        String larqStat = getLarqStat();
        List<JSONObject> list = new ArrayList<>();
        String larq[] = larqStat.split(",");
        for(String larqStr :larq){
            if(!larqStr.contains("(")){
                continue;
            }
            String year = larqStr.substring(0, larqStr.indexOf("("));
            String num = larqStr.substring(larqStr.indexOf("(")+1, larqStr.indexOf(")"));
            JSONObject jsonObject = new JSONObject();
            jsonObject.put("year",year);
            jsonObject.put("num",num);
            list.add(jsonObject);
        }
        return list;
    }
}