|
@@ -152,7 +152,21 @@ public class BscEnterpriseScreenServiceImpl extends AbstractCrudService<BscEnter
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public void dataSynchro() {
|
|
public void dataSynchro() {
|
|
- List<BaseCompany> baseCompanies = baseCompanyService.companyIdList();
|
|
|
|
|
|
+ List<String> streetTownList = new ArrayList<>();
|
|
|
|
+ streetTownList.add("华漕镇");
|
|
|
|
+ streetTownList.add("新虹街道");
|
|
|
|
+ streetTownList.add("七宝镇");
|
|
|
|
+ streetTownList.add("虹桥镇");
|
|
|
|
+ streetTownList.add("古美路街道");
|
|
|
|
+ streetTownList.add("莘庄镇");
|
|
|
|
+ streetTownList.add("梅陇镇");
|
|
|
|
+ streetTownList.add("颛桥镇");
|
|
|
|
+ streetTownList.add("马桥镇");
|
|
|
|
+ streetTownList.add("江川路街道");
|
|
|
|
+ streetTownList.add("吴泾镇");
|
|
|
|
+ streetTownList.add("浦锦街道");
|
|
|
|
+ streetTownList.add("浦江镇");
|
|
|
|
+ List<BaseCompany> baseCompanies = baseCompanyService.companyIdList(streetTownList);
|
|
if (CollectionUtils.isNotEmpty(baseCompanies)) {
|
|
if (CollectionUtils.isNotEmpty(baseCompanies)) {
|
|
for (int i = 0; i < baseCompanies.size(); i++) {
|
|
for (int i = 0; i < baseCompanies.size(); i++) {
|
|
Object postInspectStatistics = this.postInspectStatistics(baseCompanies.get(i).getCompanyId());
|
|
Object postInspectStatistics = this.postInspectStatistics(baseCompanies.get(i).getCompanyId());
|
|
@@ -178,8 +192,8 @@ public class BscEnterpriseScreenServiceImpl extends AbstractCrudService<BscEnter
|
|
String scoreDate = format.format(timeStamp);
|
|
String scoreDate = format.format(timeStamp);
|
|
List<DemBuildScoreRecord> list1 = demBuildScoreRecordService.demBuildScoreRecordListOne(scoreDate, null);
|
|
List<DemBuildScoreRecord> list1 = demBuildScoreRecordService.demBuildScoreRecordListOne(scoreDate, null);
|
|
for (int i = 0; i < list1.size(); i++) {
|
|
for (int i = 0; i < list1.size(); i++) {
|
|
- int count = demBuildScoreRecordService.demBuildScoreRecordCount(scoreDate, null,null, null);
|
|
|
|
- int overstepCount = demBuildScoreRecordService.demBuildScoreRecordCount(scoreDate, list1.get(i).getBuildScore(), null,null);
|
|
|
|
|
|
+ int count = demBuildScoreRecordService.demBuildScoreRecordCount(scoreDate, null, null, null);
|
|
|
|
+ int overstepCount = demBuildScoreRecordService.demBuildScoreRecordCount(scoreDate, list1.get(i).getBuildScore(), null, null);
|
|
double faultRatio1 = Arith.div(overstepCount, count, 2) * 100;
|
|
double faultRatio1 = Arith.div(overstepCount, count, 2) * 100;
|
|
int faultRatio = new Double(faultRatio1).intValue();
|
|
int faultRatio = new Double(faultRatio1).intValue();
|
|
int rank = count - overstepCount;
|
|
int rank = count - overstepCount;
|
|
@@ -480,7 +494,7 @@ public class BscEnterpriseScreenServiceImpl extends AbstractCrudService<BscEnter
|
|
int hiddenDangerCount = 70;
|
|
int hiddenDangerCount = 70;
|
|
|
|
|
|
List<DemBuildScore> list1 = demBuildScoreService.buildScoreListOne();
|
|
List<DemBuildScore> list1 = demBuildScoreService.buildScoreListOne();
|
|
- int demBuildScoreRecordsCount = demBuildScoreRecordService.demBuildScoreRecordCount(LastMonthDate, null,null, companyId);
|
|
|
|
|
|
+ int demBuildScoreRecordsCount = demBuildScoreRecordService.demBuildScoreRecordCount(LastMonthDate, null, null, companyId);
|
|
Double deviceDamageRieo = 0.00;
|
|
Double deviceDamageRieo = 0.00;
|
|
Double fireRieo = 0.00;
|
|
Double fireRieo = 0.00;
|
|
Double rectificationRieo = 0.00;
|
|
Double rectificationRieo = 0.00;
|