|
@@ -1,5 +1,6 @@
|
|
package com.usky.fire.service.impl;
|
|
package com.usky.fire.service.impl;
|
|
|
|
|
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSONArray;
|
|
import com.alibaba.fastjson.JSONArray;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
@@ -14,6 +15,7 @@ import com.usky.common.mybatis.core.AbstractCrudService;
|
|
import com.usky.fire.domain.*;
|
|
import com.usky.fire.domain.*;
|
|
import com.usky.fire.mapper.BscLawTrendMapper;
|
|
import com.usky.fire.mapper.BscLawTrendMapper;
|
|
import com.usky.fire.service.*;
|
|
import com.usky.fire.service.*;
|
|
|
|
+import com.usky.fire.service.vo.AlFsdAllVO;
|
|
import com.usky.fire.service.vo.ReportComplaintVO;
|
|
import com.usky.fire.service.vo.ReportComplaintVO;
|
|
import com.usky.fire.service.vo.SiAeAllVO;
|
|
import com.usky.fire.service.vo.SiAeAllVO;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -21,6 +23,7 @@ import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.text.ParseException;
|
|
import java.text.ParseException;
|
|
import java.text.SimpleDateFormat;
|
|
import java.text.SimpleDateFormat;
|
|
|
|
+import java.time.LocalDateTime;
|
|
import java.util.*;
|
|
import java.util.*;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -52,6 +55,12 @@ public class BscLawTrendServiceImpl extends AbstractCrudService<BscLawTrendMappe
|
|
@Autowired
|
|
@Autowired
|
|
private DemFireStatisticsAttachService demFireStatisticsAttachService;
|
|
private DemFireStatisticsAttachService demFireStatisticsAttachService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private DemAtlInspectVoucherService demAtlInspectVoucherService;
|
|
|
|
+
|
|
|
|
+ @Autowired
|
|
|
|
+ private DemAtlInspectCertificateService demAtlInspectCertificateService;
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public Object lawTrendList(String moduleType) {
|
|
public Object lawTrendList(String moduleType) {
|
|
LambdaQueryWrapper<BscLawTrend> queryWrapper = Wrappers.lambdaQuery();
|
|
LambdaQueryWrapper<BscLawTrend> queryWrapper = Wrappers.lambdaQuery();
|
|
@@ -196,6 +205,20 @@ public class BscLawTrendServiceImpl extends AbstractCrudService<BscLawTrendMappe
|
|
return list3;
|
|
return list3;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
+ public void lawEnforcement(){
|
|
|
|
+ List<SiAeAllVO> siAeAllVOS = this.monthLaw();
|
|
|
|
+ AlFsdAllVO alFsdAllVO = this.adstraLicense();
|
|
|
|
+ List<ReportComplaintVO> reportComplaintVOS = this.reportComplaint();
|
|
|
|
+ BscLawTrend bscLawTrend = new BscLawTrend();
|
|
|
|
+ bscLawTrend.setMonthLaw(JSON.toJSONString(siAeAllVOS));
|
|
|
|
+ bscLawTrend.setAdstraLicense(JSON.toJSONString(alFsdAllVO));
|
|
|
|
+ bscLawTrend.setReportComplaint(JSON.toJSONString(reportComplaintVOS));
|
|
|
|
+ bscLawTrend.setComplaintHandle(JSON.toJSONString(reportComplaintVOS));
|
|
|
|
+ bscLawTrend.setCreateTime(LocalDateTime.now());
|
|
|
|
+ this.save(bscLawTrend);
|
|
|
|
+ }
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public List<SiAeAllVO> monthLaw() {
|
|
public List<SiAeAllVO> monthLaw() {
|
|
Date startTime = null;
|
|
Date startTime = null;
|
|
@@ -270,8 +293,18 @@ public class BscLawTrendServiceImpl extends AbstractCrudService<BscLawTrendMappe
|
|
return allVoS;
|
|
return allVoS;
|
|
}
|
|
}
|
|
|
|
|
|
- public void adstraLicense() {
|
|
|
|
-
|
|
|
|
|
|
+ @Override
|
|
|
|
+ public AlFsdAllVO adstraLicense() {
|
|
|
|
+ AlFsdAllVO alFsdAllVo = new AlFsdAllVO();
|
|
|
|
+ alFsdAllVo.setAcceptNumber(demAtlInspectVoucherService.AtlInspectVoucherCount());
|
|
|
|
+ alFsdAllVo.setCheckNumber(0);
|
|
|
|
+ //行政许可安全检查合格证
|
|
|
|
+ Integer seqCount = demAtlInspectCertificateService.atlInspectCertificateCount();
|
|
|
|
+ //行政许可-消防安检申报不同意
|
|
|
|
+ Integer disagreeCount = 0;
|
|
|
|
+ alFsdAllVo.setArticleNumber(seqCount+disagreeCount);
|
|
|
|
+ alFsdAllVo.setQualifiedRadio(Arith.div(seqCount,seqCount+disagreeCount));
|
|
|
|
+ return alFsdAllVo;
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|