diff --git a/yanzhu-bigscreen/src/main/java/com/yanzhu/jh/bigscreen/web/controller/ProblemmodifyController.java b/yanzhu-bigscreen/src/main/java/com/yanzhu/jh/bigscreen/web/controller/ProblemmodifyController.java
index b391a57c..1caa854e 100644
--- a/yanzhu-bigscreen/src/main/java/com/yanzhu/jh/bigscreen/web/controller/ProblemmodifyController.java
+++ b/yanzhu-bigscreen/src/main/java/com/yanzhu/jh/bigscreen/web/controller/ProblemmodifyController.java
@@ -220,11 +220,7 @@ public class ProblemmodifyController extends BaseController {
where.setPrjIds(getProjectIds());
}
}
- String key="problemmodify_getMonitAndWarning-"+deptId+"_"+projectId+"_"+where.getProType()+Md5Utils.hash(where.getPrjIds());
- Object obj=redisCache.getCacheObject(key);
- if(obj!=null){
- return AjaxResult.success(obj);
- }
+
where.setDeptId(deptId);
where.setProjectId(projectId);
@@ -239,8 +235,9 @@ public class ProblemmodifyController extends BaseController {
//map.put("week",smzSspProblemmodifyService.countByDateRange(where));
map.put("week",smzSspProblemmodifyService.countByDateRangeNew(where));
//各类型整改、未整改数量统计
+ where.setEndDate(new Date());
+ where.setStartDate(DateUtils.addDays(new Date(),-30));
map.put("group",smzSspProblemmodifyService.groupByInfotypeCheckStateNew(where));
- redisCache.setCacheObject(key, map, Constants.BIGSCREEN_QUERY_CACHE, TimeUnit.MINUTES);
return AjaxResult.success(map);
}
diff --git a/yanzhu-jh/src/main/resources/mapper/flow/FlowLabourInfoMapper.xml b/yanzhu-jh/src/main/resources/mapper/flow/FlowLabourInfoMapper.xml
index daf86bde..87d6f697 100644
--- a/yanzhu-jh/src/main/resources/mapper/flow/FlowLabourInfoMapper.xml
+++ b/yanzhu-jh/src/main/resources/mapper/flow/FlowLabourInfoMapper.xml
@@ -37,9 +37,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
fl.is_del=0
- and fl.project_id = #{projectId}
+ and fl.project_id = #{projectId}
and fl.project_name like concat('%', #{projectName}, '%')
- and fl.dept_id = #{deptId}
+ and fl.dept_id = #{deptId}
and fl.dept_name like concat('%', #{deptName}, '%')
and fl.sub_dept_id = #{subDeptId}
and fl.sub_dept_name like concat('%', #{subDeptName}, '%')
diff --git a/yanzhu-jh/src/main/resources/mapper/trouble/SmzSspProblemmodifyMapper.xml b/yanzhu-jh/src/main/resources/mapper/trouble/SmzSspProblemmodifyMapper.xml
index 03d5e467..ba233a7a 100644
--- a/yanzhu-jh/src/main/resources/mapper/trouble/SmzSspProblemmodifyMapper.xml
+++ b/yanzhu-jh/src/main/resources/mapper/trouble/SmzSspProblemmodifyMapper.xml
@@ -696,6 +696,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
FROM smz_ssp_problemmodify p
left join sur_project sp on p.projectId=sp.id
WHERE p.isDel=0 and sp.isDel=0
+ =Date(#{startDate}) and Date(p.createTime)<=Date(#{endDate})
+ ]]>
and p.projectId=#{projectId}
AND sp.deptid = #{deptId}
and sp.projectType = #{proType}
@@ -710,6 +713,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select '96' as infotype,'4' as checkState,count(1) as total from dev_ai_project_data ad
left join sur_project sp on ad.project_id=sp.id
where sp.isDel=0
+ =Date(#{startDate}) and Date(ad.create_time)<=Date(#{endDate})
+ ]]>
and ad.project_id=#{projectId}
AND sp.deptid = #{deptId}
and sp.projectType = #{proType}
@@ -724,6 +730,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select '97' as infotype,fli1.approve_status as checkState,count(1) as total from flow_labour_info fli1
left join sur_project sp on fli1.project_id=sp.id
where fli1.is_del=0
+ =Date(#{startDate}) and Date(fli1.create_time)<=Date(#{endDate})
+ ]]>
and fli1.project_id=#{projectId}
AND sp.deptid = #{deptId}
and sp.projectType = #{proType}