@ -678,12 +678,10 @@ public interface NegativeMapper extends BaseMapper<Negative> {
"COUNT(DISTINCT IF(ng.checkStatus IN ('1','2'), ng.id, NULL)) AS discoverProblem, "+
"COUNT(DISTINCT IF(ng.processing_status='completed', ng.id, NULL)) AS completionProblem, "+
"COUNT(IF(nb.type ='department' and ng.checkStatus IN ('1','2') and nb.handleResultName != '不予追责' and nb.handleResultCode is not null and nb.handleResultCode != '', nb.blameId, NULL)) AS relativeOrg, "+
"COUNT(IF(nb.type ='personal' and ng.checkStatus IN ('1','2') and nb.handleResultName != '不予追责' and nb.handleResultCode is not null and nb.handleResultCode != '', nb.blameId, NULL)) AS relativePer, "+
"INNER JOIN negative ng ON sd.id = ng.involveDepartId and sd.pid = #{departId} "+
"COUNT(IF(nb.type ='personal' and ng.checkStatus IN ('1','2') and nb.handleResultName != '不予追责' and nb.handleResultCode is not null and nb.handleResultCode != '', nb.blameId, NULL)) AS relativePer "+
"FROM negative ng "+
"LEFT JOIN negative_blame nb ON ng.id = nb.negativeId "+
"WHERE problemSourcesCode = 16 "+
"WHERE problemSourcesCode = 16 and ng.second_involve_depart_id = #{departId} "+
"AND ng.crtTime BETWEEN #{beginTime} AND #{endTime} ")