@ -298,15 +298,14 @@ public interface NegativeMapper extends BaseMapper<Negative> {
@Select("SELECT "+
"COUNT( DISTINCT IF(ng.checkStatus IN (1, 2), ng.id, NULL) ) AS confirmed, "+
"COUNT( ng.id ) AS confirmed, "+
"COUNT( DISTINCT IF(ng.checkStatus IN (1, 2), ng.id, NULL) ) AS dealCasePro, "+
"COUNT( DISTINCT IF(ng.checkStatus IN (1, 2) && 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 punishPre, "+
"COUNT( DISTINCT IF(ng.checkStatus IN (1, 2) && 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 punishOrg "+
"FROM negative ng "+
"LEFT JOIN negative_blame nb ON ng.id=nb.negativeId "+
"WHERE ng.crtTime BETWEEN #{beginTime} AND #{endTime} "+
"AND problemSourcesCode in (17, 18, 19, 20) ")
"AND ng. problemSourcesCode in (17, 18, 19, 20) ")