街镇案件情况更新功能调整

This commit is contained in:
Renpc-kilig 2024-05-20 10:28:30 +08:00
parent cdb084763c
commit 12e2dbec76
7 changed files with 32 additions and 3 deletions

View File

@ -9,6 +9,7 @@ public class ReportCasePO {
private String communityName;
private String caseTypeId;
private String caseTypeName;
private String caseReporter;
private String isSelf;
private Double grade;
private String gmtCreate;
@ -75,6 +76,14 @@ public class ReportCasePO {
this.caseTypeName = caseTypeName;
}
public String getCaseReporter() {
return caseReporter;
}
public void setCaseReporter(String caseReporter) {
this.caseReporter = caseReporter;
}
public String getIsSelf() {
return isSelf;
}

View File

@ -446,6 +446,7 @@ public class KpiServiceImpl implements IKpiService {
params.put("isSelf", reportCasePO.getIsSelf());
params.put("gmtReport", reportCasePO.getGmtCreate());
params.put("reportUserId", reportCasePO.getCreator());
params.put("reportUserName", reportCasePO.getCaseReporter());
params.put("inspectScore", reportCasePO.getGrade());
params.put("isDelete", reportCasePO.getIsDelete());
params.put("caseStatus", reportCasePO.getCaseStatus());

View File

@ -208,6 +208,9 @@ public class KpiKhxzWgyEGIKRTRunnable implements Runnable {
private void updateEGIKRTNew(List<String> userIds, List<List<KpiUtil.DayWeek>> shouldReportDayWeeks, List<List<KpiUtil.DayWeek>> unShouldReportDayWeeks, List<HolidayPO> holidayPOS) {
userIds.forEach(userId -> {
try {
if(userId.equals("b539fe53-e335-4832-b27c-d1b69c1bd25c") || userId.equals("ca546a0a-52a4-48f4-a1c3-26f4505894f1")) {
System.out.println();
}
int shouldCount = shouldReportDayWeeks.size();
// 网格数量
Integer gridCount = userGridService.countUserGrid(userId);
@ -339,4 +342,12 @@ public class KpiKhxzWgyEGIKRTRunnable implements Runnable {
return kpiHolidayDao.list(params);
}
public static void main(String[] args) {
int lackCount = 0;
int gridCount = 0;
int realityCount = 100;
lackCount += Math.max(gridCount - realityCount, 0);
System.out.println(lackCount);
}
}

View File

@ -37,6 +37,9 @@ public class KpiKhxzWgzCDEFGHRunnable implements Runnable {
public void run() {
kpiKhxzWgzDTOS.forEach(kpiKhxzWgzDTO -> {
Map<String, Object> communityBossMap = new HashMap<>();
if(kpiKhxzWgzDTO.getUserId().equals("ca546a0a-52a4-48f4-a1c3-26f4505894f1")) {
System.out.println();
}
communityBossMap.put("communityBossParentUserId", kpiKhxzWgzDTO.getUserId());
// 4及网格员
List<CommunityBossPO> communityBossPOS = communityBossService.listPO(communityBossMap);

View File

@ -138,9 +138,9 @@ access-control:
logging:
file: E:\Users\TS-QD1\Desktop\UploadFiles\logs\bigdata\logs.log
level:
root: error
org.mybatis: error
com.cm: error
root: debug
org.mybatis: debug
com.cm: debug
# 访问其他项目
server-other:

View File

@ -10,6 +10,7 @@
<result column="community_name" property="communityName"/>
<result column="case_type_id" property="caseTypeId"/>
<result column="case_type_name" property="caseTypeName"/>
<result column="case_reporter" property="caseReporter"/>
<result column="is_self" property="isSelf"/>
<result column="grade" property="grade"/>
<result column="gmt_create" property="gmtCreate"/>
@ -112,6 +113,7 @@
case_type_name,
is_self,
grade,
case_reporter,
gmt_create,
creator,
gmt_modified,

View File

@ -402,6 +402,7 @@
is_inspect,
is_self,
report_user_id,
report_user_name,
assign_user_id,
handle_user_id,
inspect_user_id,
@ -436,6 +437,7 @@
#{isInspect},
#{isSelf},
#{reportUserId},
#{reportUserName},
#{assignUserId},
#{handleUserId},
#{inspectUserId},
@ -468,6 +470,7 @@
gmt_inspect = #{gmtInspect},
is_self = #{isSelf},
report_user_id = #{reportUserId},
report_user_name = #{reportUserName},
assign_user_id = #{assignUserId},
handle_user_id = #{handleUserId},
inspect_user_id = #{inspectUserId},