update code
parent
bc4c05de4f
commit
12ee91f333
|
@ -106,7 +106,7 @@ public class ProblemmodifyController extends BaseController {
|
|||
if(obj!=null){
|
||||
return (List<SmzSspProblemmodify>) obj;
|
||||
}
|
||||
List<SmzSspProblemmodify> list = smzSspProblemmodifyService.selectSummaryByProject(deptId,roleType,0);
|
||||
List<SmzSspProblemmodify> list = smzSspProblemmodifyService.selectSummaryByProject(deptId,roleType,1);
|
||||
redisCache.setCacheObject(key, list, Constants.BIGSCREEN_QUERY_CACHE, TimeUnit.MINUTES);
|
||||
return list;
|
||||
}
|
||||
|
@ -122,7 +122,7 @@ public class ProblemmodifyController extends BaseController {
|
|||
List<SmzSspProblemmodify> list=smzSspProblemmodifyService.countByDateRange(where);
|
||||
return AjaxResult.success(list);
|
||||
}
|
||||
@GetMapping("/groupByInfotypeCheckState")
|
||||
@PostMapping("/groupByInfotypeCheckState")
|
||||
public AjaxResult groupByInfotypeCheckState(@RequestBody SmzSspProblemmodifyWhere where){
|
||||
List<SmzSspProblemmodify> list=smzSspProblemmodifyService.groupByInfotypeCheckState(where);
|
||||
return AjaxResult.success(list);
|
||||
|
@ -155,4 +155,8 @@ public class ProblemmodifyController extends BaseController {
|
|||
return AjaxResult.success(map);
|
||||
}
|
||||
|
||||
@PostMapping("/listSspProblemmodify")
|
||||
public AjaxResult listSspProblemmodify(@RequestBody SmzSspProblemmodify where){
|
||||
return AjaxResult.success(smzSspProblemmodifyService.selectSmzSspProblemmodifyList(where));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ public class SmzProjectQuarterlyAssessController extends BaseController
|
|||
@GetMapping("/list")
|
||||
public TableDataInfo list(SmzProjectQuarterlyAssess smzProjectQuarterlyAssess)
|
||||
{
|
||||
startPage();
|
||||
//startPage();
|
||||
List<SmzProjectQuarterlyAssess> list = smzProjectQuarterlyAssessService.selectSmzProjectQuarterlyAssessList(smzProjectQuarterlyAssess);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
|
|
@ -214,21 +214,33 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
ON a.dict_value=b.danger_type ORDER BY cnt DESC,a.dict_value+0
|
||||
</select>
|
||||
<select id="selectSummaryByProject" parameterType="SmzSspProblemmodify" resultMap="SmzSspProblemmodifyResult">
|
||||
|
||||
SELECT a.*,b.cnt roleType FROM (
|
||||
SELECT id,projectName problemArea FROM sur_project
|
||||
where isDel=0
|
||||
<if test="id >0 ">AND deptid = #{id}</if>
|
||||
|
||||
) a LEFT JOIN (
|
||||
|
||||
SELECT projectId,COUNT(1) cnt FROM smz_ssp_problemmodify WHERE projectId IN(
|
||||
SELECT id FROM sur_project where isDel=0
|
||||
<if test="id >0 ">AND deptid = #{id}</if>
|
||||
)
|
||||
AND infotype=#{infoType} and isDel=0
|
||||
select a.projectId,a.prjName projectName,a.proble id,if(b.timoutNoComp is null,0,b.timoutNoComp) infoType,if(c.timoutComp is null,0,c.timoutComp) checkState from
|
||||
(
|
||||
select projectId,prjName,count(1) proble from vw_smz_ssp_problemmodify_audit
|
||||
where infoType=#{infoType}
|
||||
<if test="id >0 ">AND deptid = #{id}</if>
|
||||
<if test="roleType > 0">AND roletype=#{roleType}</if>
|
||||
GROUP BY projectId ) b ON a.id=b.projectId ORDER BY cnt DESC,id LIMIT 0,10
|
||||
group by projectId,prjName
|
||||
)
|
||||
a
|
||||
left join(
|
||||
select projectid,count(1) timoutNoComp from vw_smz_ssp_problemmodify_audit where
|
||||
(audittime is null and date(nickedTime) < date(now()) ) or date(audittime)>date(nickedTime)
|
||||
and infoType=#{infoType}
|
||||
<if test="id >0 ">AND deptid = #{id}</if>
|
||||
<if test="roleType > 0">AND roletype=#{roleType}</if>
|
||||
group by projectId
|
||||
|
||||
) b on a.projectId=b.projectId
|
||||
left join (
|
||||
SELECT projectid,COUNT(1) timoutComp FROM vw_smz_ssp_problemmodify_audit WHERE DATE(audittime) < DATE(nickedTime)
|
||||
and infoType=#{infoType}
|
||||
<if test="id >0 ">AND deptid = #{id}</if>
|
||||
<if test="roleType > 0">AND roletype=#{roleType}</if>
|
||||
GROUP BY projectid
|
||||
|
||||
) c on a.projectId=c.projectId
|
||||
order by a.proble desc
|
||||
</select>
|
||||
|
||||
<select id="countByDate" parameterType="SmzSspProblemmodifyWhere" resultMap="SmzSspProblemmodifyResult">
|
||||
|
@ -242,10 +254,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</if>
|
||||
and DATE(createTime)=Date(#{startDate})
|
||||
GROUP BY infotype
|
||||
|
||||
</select>
|
||||
|
||||
<select id="countByDateRange" parameterType="SmzSspProblemmodifyWhere" resultMap="SmzSspProblemmodifyResult">
|
||||
SELECT infotype,COUNT(1) id FROM smz_ssp_problemmodify WHERE isDel=0
|
||||
SELECT infotype,COUNT(1) id FROM smz_ssp_problemmodify WHERE isDel=0 and infoType=#{infoType}
|
||||
<if test="projectId > 0"> and projectId=#{projectId}</if>
|
||||
<if test="projectId <= 0">
|
||||
AND projectId IN (
|
||||
|
|
Loading…
Reference in New Issue