|
|
|
@ -1,8 +1,5 @@ |
|
|
|
package com.zdxt.enforcementcode.controller.cim; |
|
|
|
|
|
|
|
|
|
|
|
import cn.dev33.satoken.annotation.SaIgnore; |
|
|
|
import com.zdxt.enforcementcode.common.util.TbHbUtils; |
|
|
|
import com.zdxt.enforcementcode.domain.bo.CimDashboardOverviewQueryBo; |
|
|
|
import com.zdxt.enforcementcode.domain.vo.CimDashboardOverviewVo; |
|
|
|
import com.zdxt.enforcementcode.service.ICimDashboardOverviewService; |
|
|
|
@ -12,9 +9,6 @@ import org.springframework.validation.annotation.Validated; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
import java.time.LocalDateTime; |
|
|
|
import java.util.Calendar; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
@ -59,47 +53,6 @@ public class CimDashboardOverviewController { |
|
|
|
return R.ok(vo); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Cim大屏-大屏总览:查询 计划总数-预告总数-涉企执法总数-价差评价总数-检查投诉总数-平均检查频次 |
|
|
|
* (月) |
|
|
|
* 暂时注释后面不再使用删除掉 |
|
|
|
* @param bo |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
/*@GetMapping("/getLawRegulationCount") |
|
|
|
public R<CimDashboardOverviewVo> getLawRegulationCount(CimDashboardOverviewQueryBo bo){ |
|
|
|
|
|
|
|
CimDashboardOverviewVo vo = new CimDashboardOverviewVo(); |
|
|
|
// 获取当前系统时间
|
|
|
|
Date time = new Date(System.currentTimeMillis()); |
|
|
|
bo.setMonthTime(time); |
|
|
|
//计划总数
|
|
|
|
Long jszsCount= cimDashboardOverviewService.getPlanCount(bo); |
|
|
|
vo.setJhzs(jszsCount); |
|
|
|
//预告总数
|
|
|
|
Long ygzsCount= cimDashboardOverviewService.getNoticeCount(bo); |
|
|
|
vo.setYgzs(ygzsCount); |
|
|
|
//涉企执法总数
|
|
|
|
Long sqzfzsCount= cimDashboardOverviewService.getEnfLawCount(bo); |
|
|
|
vo.setSqzfzs(sqzfzsCount); |
|
|
|
//检查评价总数
|
|
|
|
Long jcpjzsCount= cimDashboardOverviewService.getLawEvaluateCount(bo); |
|
|
|
vo.setJcpjzs(jcpjzsCount); |
|
|
|
//检查投诉总数
|
|
|
|
Long jctszsCount= cimDashboardOverviewService.getComplaintCount(bo); |
|
|
|
vo.setJctszs(jctszsCount); |
|
|
|
//平均检查频次
|
|
|
|
Long bzfqyCount= cimDashboardOverviewService.getSubLawEntCount(bo); |
|
|
|
Long xzzfCount= cimDashboardOverviewService.getEnfRegistrationCount(bo); |
|
|
|
if(bzfqyCount!=0){ |
|
|
|
vo.setPjjcpc(xzzfCount/bzfqyCount); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return R.ok(vo); |
|
|
|
}*/ |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* Cim大屏-大屏总览 查询 单独部门执法-联合执法-被执法企业-入企压减率-执法人员数-执法单位数 |
|
|
|
* (实) |
|
|
|
@ -129,34 +82,6 @@ public class CimDashboardOverviewController { |
|
|
|
return R.ok(vo); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* Cim大屏-大屏总览 查询区域检查趋势分析 |
|
|
|
* (季度) |
|
|
|
* @param bo |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
/* @GetMapping("/getQuarterlyRegionList") |
|
|
|
public R<List<CimDashboardOverviewVo>> getQuarterlyRegionList(CimDashboardOverviewQueryBo bo){ |
|
|
|
Date time = new Date(System.currentTimeMillis()); |
|
|
|
bo.setYearTime(time); |
|
|
|
List<CimDashboardOverviewVo> vo= cimDashboardOverviewService.getQuarterlyRegionList(bo); |
|
|
|
return R.ok(vo); |
|
|
|
} |
|
|
|
*/ |
|
|
|
/** |
|
|
|
* Cim大屏-大屏总览 查询领域检查趋势分析 |
|
|
|
* (季度) |
|
|
|
* @param bo |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
/* @GetMapping("/getDomainQuarterList") |
|
|
|
public R<List<CimDashboardOverviewVo>> getDomainQuarterList(CimDashboardOverviewQueryBo bo){ |
|
|
|
Date time = new Date(System.currentTimeMillis()); |
|
|
|
bo.setYearTime(time); |
|
|
|
List<CimDashboardOverviewVo> vo= cimDashboardOverviewService.getDomainQuarterList(bo); |
|
|
|
return R.ok(vo); |
|
|
|
}*/ |
|
|
|
/** |
|
|
|
* Cim大屏-大屏总览 查询 涉企执法登记类别 |
|
|
|
* (实) |
|
|
|
@ -188,263 +113,4 @@ public class CimDashboardOverviewController { |
|
|
|
List<CimDashboardOverviewVo> vo= cimDashboardOverviewService.getNonEnfRegistraion(bo); |
|
|
|
return R.ok(vo); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Cim大屏- 查询高频检查区域 |
|
|
|
* (月) |
|
|
|
*/ |
|
|
|
|
|
|
|
/*@GetMapping("/getHighCheckArea") |
|
|
|
public R<List<CimDashboardOverviewVo>> getHighCheckArea(CimDashboardOverviewQueryBo bo){ |
|
|
|
// 获取当前系统时间
|
|
|
|
Date time = new Date(System.currentTimeMillis()); |
|
|
|
bo.setMonthTime(time); |
|
|
|
List<CimDashboardOverviewVo> vo= cimDashboardOverviewService.getHighCheckArea(bo); |
|
|
|
return R.ok(vo); |
|
|
|
}*/ |
|
|
|
|
|
|
|
/** |
|
|
|
* Cim大屏- 查询高频检查区域执法单位联合执法数排行 |
|
|
|
* (月) |
|
|
|
*/ |
|
|
|
|
|
|
|
/*@GetMapping("/getHighCheckAreaUnionNoRanking") |
|
|
|
public R<List<CimDashboardOverviewVo>> getHighCheckAreaUnionNoRanking(CimDashboardOverviewQueryBo bo){ |
|
|
|
// 获取当前系统时间
|
|
|
|
Date time = new Date(System.currentTimeMillis()); |
|
|
|
bo.setMonthTime(time); |
|
|
|
List<CimDashboardOverviewVo> vo= cimDashboardOverviewService.getHighCheckAreaUnionNoRanking(bo); |
|
|
|
return R.ok(vo); |
|
|
|
}*/ |
|
|
|
|
|
|
|
/** |
|
|
|
* Cim大屏- 查询高频检查区域执法单位检查次数排行 |
|
|
|
* (月) |
|
|
|
*/ |
|
|
|
|
|
|
|
/*@GetMapping("/getHighCheckAreaenfRegistraionRanking") |
|
|
|
public R<List<CimDashboardOverviewVo>> getHighCheckAreaenfRegistraionRanking(CimDashboardOverviewQueryBo bo){ |
|
|
|
// 获取当前系统时间
|
|
|
|
Date time = new Date(System.currentTimeMillis()); |
|
|
|
bo.setMonthTime(time); |
|
|
|
List<CimDashboardOverviewVo> vo= cimDashboardOverviewService.getHighCheckAreaenfRegistraionRanking(bo); |
|
|
|
return R.ok(vo); |
|
|
|
}*/ |
|
|
|
|
|
|
|
/** |
|
|
|
* Cim大屏- 查询各领域高频检查次数排行 |
|
|
|
* (月) |
|
|
|
*/ |
|
|
|
|
|
|
|
/*@GetMapping("/getHighCheckFieldRanking") |
|
|
|
public R<List<CimDashboardOverviewVo>> getHighCheckFieldRanking(CimDashboardOverviewQueryBo bo){ |
|
|
|
// 获取当前系统时间
|
|
|
|
Date time = new Date(System.currentTimeMillis()); |
|
|
|
bo.setMonthTime(time); |
|
|
|
List<CimDashboardOverviewVo> vo= cimDashboardOverviewService.getHighCheckFieldRanking(bo); |
|
|
|
return R.ok(vo); |
|
|
|
}*/ |
|
|
|
|
|
|
|
/** |
|
|
|
* Cim大屏- 查询高频执法领域联合执法数 |
|
|
|
* (月) |
|
|
|
*/ |
|
|
|
|
|
|
|
/*@GetMapping("/getHighCheckFieldUnionNoCount") |
|
|
|
public R<List<CimDashboardOverviewVo>> getHighCheckFieldUnionNoCount(CimDashboardOverviewQueryBo bo){ |
|
|
|
// 获取当前系统时间
|
|
|
|
Date time = new Date(System.currentTimeMillis()); |
|
|
|
bo.setMonthTime(time); |
|
|
|
List<CimDashboardOverviewVo> vo= cimDashboardOverviewService.getHighCheckFieldUnionNoCount(bo); |
|
|
|
return R.ok(vo); |
|
|
|
} |
|
|
|
*/ |
|
|
|
/** |
|
|
|
* Cim大屏- 查询企业高频检查明细 |
|
|
|
* (月) |
|
|
|
*/ |
|
|
|
|
|
|
|
/* @GetMapping("/getHighCheckEntDetail") |
|
|
|
public R<List<CimDashboardOverviewVo>> getHighCheckEntDetail(CimDashboardOverviewQueryBo bo){ |
|
|
|
// 获取当前系统时间
|
|
|
|
Date time = new Date(System.currentTimeMillis()); |
|
|
|
bo.setMonthTime(time); |
|
|
|
List<CimDashboardOverviewVo> vo= cimDashboardOverviewService.getHighCheckEntDetail(bo); |
|
|
|
return R.ok(vo); |
|
|
|
}*/ |
|
|
|
|
|
|
|
/** |
|
|
|
* Cim大屏- 获取高频检查企业 |
|
|
|
* (月) |
|
|
|
*/ |
|
|
|
|
|
|
|
/*@GetMapping("/getHighCheckEnt") |
|
|
|
public R<List<CimDashboardOverviewVo>> getHighCheckEnt(CimDashboardOverviewQueryBo bo){ |
|
|
|
// 获取当前系统时间
|
|
|
|
Date time = new Date(System.currentTimeMillis()); |
|
|
|
bo.setMonthTime(time); |
|
|
|
List<CimDashboardOverviewVo> vo= cimDashboardOverviewService.getHighCheckEnt(bo); |
|
|
|
return R.ok(vo); |
|
|
|
}*/ |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* Cim大屏- 获取 总体概览 (行政执法数,行政检查案件数,行政处罚案件数,行政强制案件数) + 同比 + 环比 |
|
|
|
* (月) |
|
|
|
* @param bo |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
/*@GetMapping("/getGeneralOverview") |
|
|
|
public R<CimDashboardOverviewVo> getGeneralOverview(CimDashboardOverviewQueryBo bo){ |
|
|
|
|
|
|
|
CimDashboardOverviewVo vo = new CimDashboardOverviewVo(); |
|
|
|
// 获取当前系统时间
|
|
|
|
Date time = new Date(System.currentTimeMillis()); |
|
|
|
bo.setMonthTime(time); |
|
|
|
|
|
|
|
// 行政执法数 + 同比 + 环比
|
|
|
|
TbHbUtils.TbHbResult tbHb = TbHbUtils.calculate( |
|
|
|
monthTime -> { |
|
|
|
bo.setMonthTime(monthTime); |
|
|
|
return cimDashboardOverviewService.getEnfRegistrationCountByMonth(bo); |
|
|
|
}, |
|
|
|
time |
|
|
|
); |
|
|
|
vo.setXzzfs(tbHb.currentCount); |
|
|
|
vo.setXzzfsTb(tbHb.tb); |
|
|
|
vo.setXzzfsHb(tbHb.hb); |
|
|
|
|
|
|
|
// 行政检查案件数 + 同比 + 环比
|
|
|
|
TbHbUtils.TbHbResult checkCasetbHb = TbHbUtils.calculate( |
|
|
|
monthTime -> { |
|
|
|
bo.setMonthTime(monthTime); |
|
|
|
return cimDashboardOverviewService.getCheckCaseCount(bo); |
|
|
|
}, |
|
|
|
time |
|
|
|
); |
|
|
|
vo.setXzjcajs(checkCasetbHb.currentCount); |
|
|
|
vo.setXzjcajsTb(checkCasetbHb.tb); |
|
|
|
vo.setXzjcajsHb(checkCasetbHb.hb); |
|
|
|
|
|
|
|
|
|
|
|
// 行政处罚数 + 同比 + 环比
|
|
|
|
TbHbUtils.TbHbResult xzcfajsTbHb = TbHbUtils.calculate( |
|
|
|
monthTime -> { |
|
|
|
bo.setMonthTime(monthTime); |
|
|
|
return cimDashboardOverviewService.getPenaltyCaseCount(bo); |
|
|
|
}, |
|
|
|
time |
|
|
|
); |
|
|
|
vo.setXzcfajs(xzcfajsTbHb.currentCount); |
|
|
|
vo.setXzcfajsTb(xzcfajsTbHb.tb); |
|
|
|
vo.setXzcfajsHb(xzcfajsTbHb.hb); |
|
|
|
|
|
|
|
// 行政强制案件数 + 同比 + 环比
|
|
|
|
TbHbUtils.TbHbResult xzqzajsTbHb = TbHbUtils.calculate( |
|
|
|
monthTime -> { |
|
|
|
bo.setMonthTime(monthTime); |
|
|
|
return cimDashboardOverviewService.getCompulsoryCaseCount( bo); |
|
|
|
}, |
|
|
|
time |
|
|
|
); |
|
|
|
vo.setXzqzajs(xzqzajsTbHb.currentCount); |
|
|
|
vo.setXzqzajsTb(xzqzajsTbHb.tb); |
|
|
|
vo.setXzqzajsHb(xzqzajsTbHb.hb); |
|
|
|
|
|
|
|
return R.ok(vo); |
|
|
|
}*/ |
|
|
|
|
|
|
|
/** |
|
|
|
* Cim大屏- 获取各区行政执法数,行政执法案件数 |
|
|
|
* (月) |
|
|
|
*/ |
|
|
|
/*@GetMapping("/getAreaEnfRegistrationAndCaseCount") |
|
|
|
public R<List<CimDashboardOverviewVo>> getAreaEnfRegistrationAndCaseCount(CimDashboardOverviewQueryBo bo){ |
|
|
|
// 获取当前系统时间
|
|
|
|
Date time = new Date(System.currentTimeMillis()); |
|
|
|
bo.setMonthTime(time); |
|
|
|
List<CimDashboardOverviewVo> vo= cimDashboardOverviewService.getAreaEnfRegistrationAndCaseCount(bo); |
|
|
|
return R.ok(vo); |
|
|
|
}*/ |
|
|
|
|
|
|
|
/** |
|
|
|
* Cim大屏- 获取各区行政执法数,行政执法案件数明细 |
|
|
|
* (月) |
|
|
|
*/ |
|
|
|
/* @GetMapping("/getAreaEnfRegistrationAndCaseCountDetails") |
|
|
|
public R<List<CimDashboardOverviewVo>> getAreaEnfRegistrationAndCaseCountDetails(CimDashboardOverviewQueryBo bo){ |
|
|
|
// 获取当前系统时间
|
|
|
|
Date time = new Date(System.currentTimeMillis()); |
|
|
|
bo.setMonthTime(time); |
|
|
|
List<CimDashboardOverviewVo> vo= cimDashboardOverviewService.getAreaEnfRegistrationAndCaseCountDetails(bo); |
|
|
|
return R.ok(vo); |
|
|
|
}*/ |
|
|
|
|
|
|
|
/** |
|
|
|
* Cim大屏- 获取领域行政执法数,行政执法案件数 |
|
|
|
* (月) |
|
|
|
* @param bo |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
/*@GetMapping("/getFieldEnfRegistrationAndCaseCount") |
|
|
|
public R<List<CimDashboardOverviewVo>> getFieldEnfRegistrationAndCaseCount(CimDashboardOverviewQueryBo bo){ |
|
|
|
// 获取当前系统时间
|
|
|
|
Date time = new Date(System.currentTimeMillis()); |
|
|
|
bo.setMonthTime(time); |
|
|
|
List<CimDashboardOverviewVo> vo= cimDashboardOverviewService.getFieldEnfRegistrationAndCaseCount(bo); |
|
|
|
return R.ok(vo); |
|
|
|
}*/ |
|
|
|
|
|
|
|
/** |
|
|
|
* Cim大屏- 获取领域行政执法数,行政执法案件数明细 |
|
|
|
*(月) |
|
|
|
* @param bo |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
/*@GetMapping("/getFieldEnfRegistrationAndCaseCountDetails") |
|
|
|
public R<List<CimDashboardOverviewVo>> getFieldEnfRegistrationAndCaseCountDetails(CimDashboardOverviewQueryBo bo){ |
|
|
|
// 获取当前系统时间
|
|
|
|
Date time = new Date(System.currentTimeMillis()); |
|
|
|
bo.setMonthTime(time); |
|
|
|
List<CimDashboardOverviewVo> vo= cimDashboardOverviewService.getFieldEnfRegistrationAndCaseCountDetails(bo); |
|
|
|
return R.ok(vo); |
|
|
|
}*/ |
|
|
|
|
|
|
|
/** |
|
|
|
* Cim大屏- 获取重点企业数(月) |
|
|
|
* |
|
|
|
*/ |
|
|
|
/*@GetMapping("/getKeyEnterprises") |
|
|
|
public R<List<CimDashboardOverviewVo>> getKeyEnterprises(CimDashboardOverviewQueryBo bo){ |
|
|
|
// 获取当前系统时间
|
|
|
|
Date time = new Date(System.currentTimeMillis()); |
|
|
|
bo.setMonthTime(time); |
|
|
|
List<CimDashboardOverviewVo> vo= cimDashboardOverviewService.getKeyEnterprises(bo); |
|
|
|
return R.ok(vo); |
|
|
|
}*/ |
|
|
|
|
|
|
|
/** |
|
|
|
* Cim大屏- 获取重点企业行政执法明细(日) |
|
|
|
*/ |
|
|
|
/*@GetMapping("/getKeyEnterpriseEnfRegDetails") |
|
|
|
public R<List<CimDashboardOverviewVo>> getKeyEnterpriseEnfRegDetails(CimDashboardOverviewQueryBo bo){ |
|
|
|
// 获取当前系统时间
|
|
|
|
Date time = new Date(System.currentTimeMillis()); |
|
|
|
bo.setDayTime(time); |
|
|
|
List<CimDashboardOverviewVo> vo= cimDashboardOverviewService.getKeyEnterpriseEnfRegDetails(bo); |
|
|
|
return R.ok(vo); |
|
|
|
}*/ |
|
|
|
|
|
|
|
/** |
|
|
|
* Cim大屏-获取涉企登记趋势(月) |
|
|
|
*/ |
|
|
|
/* @GetMapping("/getEnfRegistrationTrend") |
|
|
|
public R<List<CimDashboardOverviewVo>> getEnfRegistrationTrend(CimDashboardOverviewQueryBo bo){ |
|
|
|
// 获取当前系统时间
|
|
|
|
Date time = new Date(System.currentTimeMillis()); |
|
|
|
bo.setMonthTime(time); |
|
|
|
List<CimDashboardOverviewVo> vo= cimDashboardOverviewService.getEnfRegistrationTrend(bo); |
|
|
|
return R.ok(vo); |
|
|
|
}*/ |
|
|
|
|
|
|
|
} |
|
|
|
|