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

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

View File

@ -446,6 +446,7 @@ public class KpiServiceImpl implements IKpiService {
params.put("isSelf", reportCasePO.getIsSelf()); params.put("isSelf", reportCasePO.getIsSelf());
params.put("gmtReport", reportCasePO.getGmtCreate()); params.put("gmtReport", reportCasePO.getGmtCreate());
params.put("reportUserId", reportCasePO.getCreator()); params.put("reportUserId", reportCasePO.getCreator());
params.put("reportUserName", reportCasePO.getCaseReporter());
params.put("inspectScore", reportCasePO.getGrade()); params.put("inspectScore", reportCasePO.getGrade());
params.put("isDelete", reportCasePO.getIsDelete()); params.put("isDelete", reportCasePO.getIsDelete());
params.put("caseStatus", reportCasePO.getCaseStatus()); 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) { private void updateEGIKRTNew(List<String> userIds, List<List<KpiUtil.DayWeek>> shouldReportDayWeeks, List<List<KpiUtil.DayWeek>> unShouldReportDayWeeks, List<HolidayPO> holidayPOS) {
userIds.forEach(userId -> { userIds.forEach(userId -> {
try { try {
if(userId.equals("b539fe53-e335-4832-b27c-d1b69c1bd25c") || userId.equals("ca546a0a-52a4-48f4-a1c3-26f4505894f1")) {
System.out.println();
}
int shouldCount = shouldReportDayWeeks.size(); int shouldCount = shouldReportDayWeeks.size();
// 网格数量 // 网格数量
Integer gridCount = userGridService.countUserGrid(userId); Integer gridCount = userGridService.countUserGrid(userId);
@ -339,4 +342,12 @@ public class KpiKhxzWgyEGIKRTRunnable implements Runnable {
return kpiHolidayDao.list(params); 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() { public void run() {
kpiKhxzWgzDTOS.forEach(kpiKhxzWgzDTO -> { kpiKhxzWgzDTOS.forEach(kpiKhxzWgzDTO -> {
Map<String, Object> communityBossMap = new HashMap<>(); Map<String, Object> communityBossMap = new HashMap<>();
if(kpiKhxzWgzDTO.getUserId().equals("ca546a0a-52a4-48f4-a1c3-26f4505894f1")) {
System.out.println();
}
communityBossMap.put("communityBossParentUserId", kpiKhxzWgzDTO.getUserId()); communityBossMap.put("communityBossParentUserId", kpiKhxzWgzDTO.getUserId());
// 4及网格员 // 4及网格员
List<CommunityBossPO> communityBossPOS = communityBossService.listPO(communityBossMap); List<CommunityBossPO> communityBossPOS = communityBossService.listPO(communityBossMap);

View File

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

View File

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

View File

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