|
|
@ -472,13 +472,17 @@ public class CimDashboardOverviewDataSumSserviceImpl implements ICimDashboardOve |
|
|
// 获取当前系统时间
|
|
|
// 获取当前系统时间
|
|
|
CimDashboardOverviewQueryBo bo=getDateTime() ; |
|
|
CimDashboardOverviewQueryBo bo=getDateTime() ; |
|
|
|
|
|
|
|
|
|
|
|
// 锁定基准月份:TbHbUtils.calculate 内部会通过 lambda 反复执行 bo.setMonthTime(...),
|
|
|
|
|
|
// 会导致 bo.monthTime 被污染,后续 calculate 的基准月会取到错误月份。
|
|
|
|
|
|
Date baseMonthTime = bo.getMonthTime(); |
|
|
|
|
|
|
|
|
// 行政执法数 + 同比 + 环比
|
|
|
// 行政执法数 + 同比 + 环比
|
|
|
TbHbUtils.TbHbResult tbHb = TbHbUtils.calculate( |
|
|
TbHbUtils.TbHbResult tbHb = TbHbUtils.calculate( |
|
|
monthTime -> { |
|
|
monthTime -> { |
|
|
bo.setMonthTime(monthTime); |
|
|
bo.setMonthTime(monthTime); |
|
|
return cimDashboardOverviewMapper.getEnfRegistrationCountByMonth(bo); |
|
|
return cimDashboardOverviewMapper.getEnfRegistrationCountByMonth(bo); |
|
|
}, |
|
|
}, |
|
|
bo.getMonthTime() |
|
|
baseMonthTime |
|
|
); |
|
|
); |
|
|
vo.setXzzfs(tbHb.currentCount); |
|
|
vo.setXzzfs(tbHb.currentCount); |
|
|
vo.setXzzfsTb(tbHb.tb); |
|
|
vo.setXzzfsTb(tbHb.tb); |
|
|
@ -490,7 +494,7 @@ public class CimDashboardOverviewDataSumSserviceImpl implements ICimDashboardOve |
|
|
bo.setMonthTime(monthTime); |
|
|
bo.setMonthTime(monthTime); |
|
|
return cimDashboardOverviewMapper.getCheckCaseCount(bo); |
|
|
return cimDashboardOverviewMapper.getCheckCaseCount(bo); |
|
|
}, |
|
|
}, |
|
|
bo.getMonthTime() |
|
|
baseMonthTime |
|
|
); |
|
|
); |
|
|
vo.setXzjcajs(checkCasetbHb.currentCount); |
|
|
vo.setXzjcajs(checkCasetbHb.currentCount); |
|
|
vo.setXzjcajsTb(checkCasetbHb.tb); |
|
|
vo.setXzjcajsTb(checkCasetbHb.tb); |
|
|
@ -503,7 +507,7 @@ public class CimDashboardOverviewDataSumSserviceImpl implements ICimDashboardOve |
|
|
bo.setMonthTime(monthTime); |
|
|
bo.setMonthTime(monthTime); |
|
|
return cimDashboardOverviewMapper.getPenaltyCaseCount(bo); |
|
|
return cimDashboardOverviewMapper.getPenaltyCaseCount(bo); |
|
|
}, |
|
|
}, |
|
|
bo.getMonthTime() |
|
|
baseMonthTime |
|
|
); |
|
|
); |
|
|
vo.setXzcfajs(xzcfajsTbHb.currentCount); |
|
|
vo.setXzcfajs(xzcfajsTbHb.currentCount); |
|
|
vo.setXzcfajsTb(xzcfajsTbHb.tb); |
|
|
vo.setXzcfajsTb(xzcfajsTbHb.tb); |
|
|
@ -515,7 +519,7 @@ public class CimDashboardOverviewDataSumSserviceImpl implements ICimDashboardOve |
|
|
bo.setMonthTime(monthTime); |
|
|
bo.setMonthTime(monthTime); |
|
|
return cimDashboardOverviewMapper.getCompulsoryCaseCount( bo); |
|
|
return cimDashboardOverviewMapper.getCompulsoryCaseCount( bo); |
|
|
}, |
|
|
}, |
|
|
bo.getMonthTime() |
|
|
baseMonthTime |
|
|
); |
|
|
); |
|
|
vo.setXzqzajs(xzqzajsTbHb.currentCount); |
|
|
vo.setXzqzajs(xzqzajsTbHb.currentCount); |
|
|
vo.setXzqzajsTb(xzqzajsTbHb.tb); |
|
|
vo.setXzqzajsTb(xzqzajsTbHb.tb); |
|
|
@ -672,13 +676,17 @@ public class CimDashboardOverviewDataSumSserviceImpl implements ICimDashboardOve |
|
|
// 获取当前系统时间
|
|
|
// 获取当前系统时间
|
|
|
CimDashboardOverviewQueryBo bo=getDateTime() ; |
|
|
CimDashboardOverviewQueryBo bo=getDateTime() ; |
|
|
|
|
|
|
|
|
|
|
|
// 锁定基准月份:TbHbUtils.calculate 内部会通过 lambda 反复执行 bo.setMonthTime(...),
|
|
|
|
|
|
// 会导致 bo.monthTime 被污染,后续 calculate 的基准月会取到错误月份。
|
|
|
|
|
|
Date baseMonthTime = bo.getMonthTime(); |
|
|
|
|
|
|
|
|
// 行政执法数 + 同比 + 环比
|
|
|
// 行政执法数 + 同比 + 环比
|
|
|
TbHbUtils.TbHbResult tbHb = TbHbUtils.calculate( |
|
|
TbHbUtils.TbHbResult tbHb = TbHbUtils.calculate( |
|
|
monthTime -> { |
|
|
monthTime -> { |
|
|
bo.setMonthTime(monthTime); |
|
|
bo.setMonthTime(monthTime); |
|
|
return cimDashboardOverviewMapper.getFileEnfRegistrationCountByMonth(bo); |
|
|
return cimDashboardOverviewMapper.getFileEnfRegistrationCountByMonth(bo); |
|
|
}, |
|
|
}, |
|
|
bo.getMonthTime() |
|
|
baseMonthTime |
|
|
); |
|
|
); |
|
|
vo.setXzzfs(tbHb.currentCount); |
|
|
vo.setXzzfs(tbHb.currentCount); |
|
|
vo.setXzzfsTb(tbHb.tb); |
|
|
vo.setXzzfsTb(tbHb.tb); |
|
|
@ -690,7 +698,7 @@ public class CimDashboardOverviewDataSumSserviceImpl implements ICimDashboardOve |
|
|
bo.setMonthTime(monthTime); |
|
|
bo.setMonthTime(monthTime); |
|
|
return cimDashboardOverviewMapper.getFieldCheckCaseCount(bo); |
|
|
return cimDashboardOverviewMapper.getFieldCheckCaseCount(bo); |
|
|
}, |
|
|
}, |
|
|
bo.getMonthTime() |
|
|
baseMonthTime |
|
|
); |
|
|
); |
|
|
vo.setXzjcajs(checkCasetbHb.currentCount); |
|
|
vo.setXzjcajs(checkCasetbHb.currentCount); |
|
|
vo.setXzjcajsTb(checkCasetbHb.tb); |
|
|
vo.setXzjcajsTb(checkCasetbHb.tb); |
|
|
@ -703,7 +711,7 @@ public class CimDashboardOverviewDataSumSserviceImpl implements ICimDashboardOve |
|
|
bo.setMonthTime(monthTime); |
|
|
bo.setMonthTime(monthTime); |
|
|
return cimDashboardOverviewMapper.getFieldPenaltyCaseCount(bo); |
|
|
return cimDashboardOverviewMapper.getFieldPenaltyCaseCount(bo); |
|
|
}, |
|
|
}, |
|
|
bo.getMonthTime() |
|
|
baseMonthTime |
|
|
); |
|
|
); |
|
|
vo.setXzcfajs(xzcfajsTbHb.currentCount); |
|
|
vo.setXzcfajs(xzcfajsTbHb.currentCount); |
|
|
vo.setXzcfajsTb(xzcfajsTbHb.tb); |
|
|
vo.setXzcfajsTb(xzcfajsTbHb.tb); |
|
|
@ -715,7 +723,7 @@ public class CimDashboardOverviewDataSumSserviceImpl implements ICimDashboardOve |
|
|
bo.setMonthTime(monthTime); |
|
|
bo.setMonthTime(monthTime); |
|
|
return cimDashboardOverviewMapper.getFieldCompulsoryCaseCount( bo); |
|
|
return cimDashboardOverviewMapper.getFieldCompulsoryCaseCount( bo); |
|
|
}, |
|
|
}, |
|
|
bo.getMonthTime() |
|
|
baseMonthTime |
|
|
); |
|
|
); |
|
|
vo.setXzqzajs(xzqzajsTbHb.currentCount); |
|
|
vo.setXzqzajs(xzqzajsTbHb.currentCount); |
|
|
vo.setXzqzajsTb(xzqzajsTbHb.tb); |
|
|
vo.setXzqzajsTb(xzqzajsTbHb.tb); |
|
|
@ -904,10 +912,28 @@ public class CimDashboardOverviewDataSumSserviceImpl implements ICimDashboardOve |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public Map<String, Object> getKeyEnterprisesMonthDataSumMaps(CimDashboardOverviewQueryBo bo) { |
|
|
public Map<String, Object> getKeyEnterprisesMonthDataSumMaps(CimDashboardOverviewQueryBo bo) { |
|
|
|
|
|
|
|
|
CimDashboardOverviewVo vo = new CimDashboardOverviewVo(); |
|
|
CimDashboardOverviewVo vo = new CimDashboardOverviewVo(); |
|
|
// 获取当前系统时间
|
|
|
// 获取当前系统时间
|
|
|
bo.setMonthTime(getDateTime().getMonthTime()); |
|
|
bo.setMonthTime(getDateTime().getMonthTime()); |
|
|
|
|
|
//查询重点企业
|
|
|
|
|
|
if(bo.getEnterpriseNumber()== null || bo.getEnterpriseNumber().equals("")){ |
|
|
|
|
|
LambdaQueryWrapper<DashboardEnterpriseCheck> queryWrapper = new LambdaQueryWrapper<>(); |
|
|
|
|
|
queryWrapper.eq(DashboardEnterpriseCheck::getIsDelete, "0"); |
|
|
|
|
|
queryWrapper.eq(DashboardEnterpriseCheck::getStatYear, getDateTime().getYear()); |
|
|
|
|
|
queryWrapper.eq(DashboardEnterpriseCheck::getStatMonth, getDateTime().getMonth()); |
|
|
|
|
|
queryWrapper.orderByDesc(DashboardEnterpriseCheck::getXzzfzs); |
|
|
|
|
|
queryWrapper.last("LIMIT 1"); |
|
|
|
|
|
|
|
|
|
|
|
DashboardEnterpriseCheck entity = dashboardEnterpriseCheckMapper.selectOne(queryWrapper); |
|
|
|
|
|
bo.setEnterpriseNumber(entity.getEnterpriseNumber()); |
|
|
|
|
|
vo.setEnterpriseNumber(entity.getEnterpriseNumber()); |
|
|
|
|
|
vo.setEnterpriseName(entity.getEnterpriseName()); |
|
|
|
|
|
vo.setEnterpriseAddress(entity.getEnterpriseAddress()); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 锁定基准月份:TbHbUtils.calculate 内部会通过 lambda 反复执行 bo.setMonthTime(...),
|
|
|
|
|
|
// 会导致 bo.monthTime 被污染,后续 calculate 的基准月以及趋势/明细查询都会取到错误月份。
|
|
|
|
|
|
Date baseMonthTime = bo.getMonthTime(); |
|
|
|
|
|
|
|
|
// 行政执法数 + 同比 + 环比
|
|
|
// 行政执法数 + 同比 + 环比
|
|
|
TbHbUtils.TbHbResult tbHb = TbHbUtils.calculate( |
|
|
TbHbUtils.TbHbResult tbHb = TbHbUtils.calculate( |
|
|
@ -915,7 +941,7 @@ public class CimDashboardOverviewDataSumSserviceImpl implements ICimDashboardOve |
|
|
bo.setMonthTime(monthTime); |
|
|
bo.setMonthTime(monthTime); |
|
|
return cimDashboardOverviewMapper.getFileEnfRegistrationCountByMonth(bo); |
|
|
return cimDashboardOverviewMapper.getFileEnfRegistrationCountByMonth(bo); |
|
|
}, |
|
|
}, |
|
|
bo.getMonthTime() |
|
|
baseMonthTime |
|
|
); |
|
|
); |
|
|
vo.setXzzfs(tbHb.currentCount); |
|
|
vo.setXzzfs(tbHb.currentCount); |
|
|
vo.setXzzfsTb(tbHb.tb); |
|
|
vo.setXzzfsTb(tbHb.tb); |
|
|
@ -927,7 +953,7 @@ public class CimDashboardOverviewDataSumSserviceImpl implements ICimDashboardOve |
|
|
bo.setMonthTime(monthTime); |
|
|
bo.setMonthTime(monthTime); |
|
|
return cimDashboardOverviewMapper.getNonEnfRegistrationCount(bo); |
|
|
return cimDashboardOverviewMapper.getNonEnfRegistrationCount(bo); |
|
|
}, |
|
|
}, |
|
|
bo.getMonthTime() |
|
|
baseMonthTime |
|
|
); |
|
|
); |
|
|
vo.setFxzzfs(fxzzftbHb.currentCount); |
|
|
vo.setFxzzfs(fxzzftbHb.currentCount); |
|
|
vo.setFxzzfsTb(fxzzftbHb.tb); |
|
|
vo.setFxzzfsTb(fxzzftbHb.tb); |
|
|
@ -939,12 +965,14 @@ public class CimDashboardOverviewDataSumSserviceImpl implements ICimDashboardOve |
|
|
bo.setMonthTime(monthTime); |
|
|
bo.setMonthTime(monthTime); |
|
|
return cimDashboardOverviewMapper.getUnionLawCount(bo); |
|
|
return cimDashboardOverviewMapper.getUnionLawCount(bo); |
|
|
}, |
|
|
}, |
|
|
bo.getMonthTime() |
|
|
baseMonthTime |
|
|
); |
|
|
); |
|
|
vo.setLhzfs(lhzfstbHb.currentCount); |
|
|
vo.setLhzfs(lhzfstbHb.currentCount); |
|
|
vo.setLhzfsTb(lhzfstbHb.tb); |
|
|
vo.setLhzfsTb(lhzfstbHb.tb); |
|
|
vo.setLhzfsHb(lhzfstbHb.hb); |
|
|
vo.setLhzfsHb(lhzfstbHb.hb); |
|
|
|
|
|
|
|
|
|
|
|
// 恢复基准月份,保证趋势/明细查询使用正确的月份(上一个月)
|
|
|
|
|
|
bo.setMonthTime(baseMonthTime); |
|
|
List<CimDashboardOverviewVo> List= cimDashboardOverviewMapper.getEnfRegistrationTrend(bo); |
|
|
List<CimDashboardOverviewVo> List= cimDashboardOverviewMapper.getEnfRegistrationTrend(bo); |
|
|
List<CimDashboardOverviewVo> list1=cimDashboardOverviewMapper.getKeyEnterpriseEnfRegDetails(bo); |
|
|
List<CimDashboardOverviewVo> list1=cimDashboardOverviewMapper.getKeyEnterpriseEnfRegDetails(bo); |
|
|
|
|
|
|
|
|
@ -976,10 +1004,13 @@ public class CimDashboardOverviewDataSumSserviceImpl implements ICimDashboardOve |
|
|
entity.setDistrictCode(vo.getCode()); |
|
|
entity.setDistrictCode(vo.getCode()); |
|
|
entity.setDistrictName(vo.getName()); |
|
|
entity.setDistrictName(vo.getName()); |
|
|
entity.setFirstquarter(vo.getFirstQuarter()); |
|
|
entity.setFirstquarter(vo.getFirstQuarter()); |
|
|
|
|
|
entity.setFirstTime(vo.getFirstTime()); |
|
|
entity.setSecondquarter(vo.getSecondQuarter()); |
|
|
entity.setSecondquarter(vo.getSecondQuarter()); |
|
|
|
|
|
entity.setSecondTime(vo.getSecondTime()); |
|
|
entity.setThirdquarter(vo.getThirdQuarter()); |
|
|
entity.setThirdquarter(vo.getThirdQuarter()); |
|
|
|
|
|
entity.setThirdTime(vo.getThirdTime()); |
|
|
entity.setFourthquarter(vo.getFourthQuarter()); |
|
|
entity.setFourthquarter(vo.getFourthQuarter()); |
|
|
|
|
|
entity.setFourthTime(vo.getFourthTime()); |
|
|
entity.setIsDelete("0"); |
|
|
entity.setIsDelete("0"); |
|
|
areaList.add(entity); |
|
|
areaList.add(entity); |
|
|
} |
|
|
} |
|
|
@ -1106,9 +1137,13 @@ public class CimDashboardOverviewDataSumSserviceImpl implements ICimDashboardOve |
|
|
entity.setDomainId(vo.getCode()); |
|
|
entity.setDomainId(vo.getCode()); |
|
|
entity.setDomainName(vo.getName()); |
|
|
entity.setDomainName(vo.getName()); |
|
|
entity.setFirstquarter(vo.getFirstQuarter()); |
|
|
entity.setFirstquarter(vo.getFirstQuarter()); |
|
|
|
|
|
entity.setFirstTime(vo.getFirstTime()); |
|
|
entity.setSecondquarter(vo.getSecondQuarter()); |
|
|
entity.setSecondquarter(vo.getSecondQuarter()); |
|
|
|
|
|
entity.setSecondTime(vo.getSecondTime()); |
|
|
entity.setThirdquarter(vo.getThirdQuarter()); |
|
|
entity.setThirdquarter(vo.getThirdQuarter()); |
|
|
|
|
|
entity.setThirdTime(vo.getThirdTime()); |
|
|
entity.setFourthquarter(vo.getFourthQuarter()); |
|
|
entity.setFourthquarter(vo.getFourthQuarter()); |
|
|
|
|
|
entity.setFourthTime(vo.getFourthTime()); |
|
|
|
|
|
|
|
|
entity.setIsDelete("0"); |
|
|
entity.setIsDelete("0"); |
|
|
domainList.add(entity); |
|
|
domainList.add(entity); |
|
|
|