|
|
@ -2364,7 +2364,7 @@ |
|
|
order by i.created_time DESC |
|
|
order by i.created_time DESC |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<select id="categoryAnalysis" resultType="com.elink.esua.epdc.dto.item.result.CategoryAnalysisPieResultDTO" |
|
|
<select id="categoryAnalysisFirst" resultType="com.elink.esua.epdc.dto.item.result.CategoryAnalysisPieResultDTO" |
|
|
parameterType="com.elink.esua.epdc.dto.item.form.ScreenTotalFormDTO"> |
|
|
parameterType="com.elink.esua.epdc.dto.item.form.ScreenTotalFormDTO"> |
|
|
select |
|
|
select |
|
|
SUBSTRING_INDEX(item.CATEGORY_FULL_NAME,'-',1) as name, |
|
|
SUBSTRING_INDEX(item.CATEGORY_FULL_NAME,'-',1) as name, |
|
|
@ -2388,6 +2388,30 @@ |
|
|
group by SUBSTRING_INDEX(item.CATEGORY_FULL_NAME,'-',1) |
|
|
group by SUBSTRING_INDEX(item.CATEGORY_FULL_NAME,'-',1) |
|
|
ORDER BY count(item.ID) desc |
|
|
ORDER BY count(item.ID) desc |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
<select id="categoryAnalysisSecond" resultType="com.elink.esua.epdc.dto.item.result.CategoryAnalysisPieResultDTO" |
|
|
|
|
|
parameterType="com.elink.esua.epdc.dto.item.form.ScreenTotalFormDTO"> |
|
|
|
|
|
select |
|
|
|
|
|
SUBSTRING_INDEX(item.CATEGORY_FULL_NAME,'-',2) as name, |
|
|
|
|
|
SUBSTRING_INDEX(item.CATEGORY_FULL_CODE,'-',2) as code, |
|
|
|
|
|
count(item.ID) as value |
|
|
|
|
|
from epdc_item item |
|
|
|
|
|
where item.DEL_FLAG = '0' |
|
|
|
|
|
and item.IS_PEOPLE = '1' |
|
|
|
|
|
and item.EVENT_ID is null |
|
|
|
|
|
and item.ISSUE_ID is null |
|
|
|
|
|
and SUBSTRING_INDEX(item.CATEGORY_FULL_NAME,'-',1) != '其他' |
|
|
|
|
|
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''"> |
|
|
|
|
|
AND DATE_FORMAT( item.CREATED_TIME, '%Y-%m-%d' ) BETWEEN #{startTime} AND #{endTime} |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
|
|
|
AND find_in_set(#{deptId},item.ALL_DEPT_IDS) |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="peopleFlag != null and peopleFlag != ''"> |
|
|
|
|
|
AND item.PEOPLE_FLAG = #{peopleFlag} |
|
|
|
|
|
</if> |
|
|
|
|
|
group by SUBSTRING_INDEX(item.CATEGORY_FULL_NAME,'-',2) |
|
|
|
|
|
ORDER BY count(item.ID) desc |
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
<select id="evaluationTotal" resultType="com.elink.esua.epdc.dto.item.result.EvaluationTotalPieResultDTO" |
|
|
<select id="evaluationTotal" resultType="com.elink.esua.epdc.dto.item.result.EvaluationTotalPieResultDTO" |
|
|
parameterType="com.elink.esua.epdc.dto.item.form.ScreenTotalFormDTO"> |
|
|
parameterType="com.elink.esua.epdc.dto.item.form.ScreenTotalFormDTO"> |
|
|
@ -2423,12 +2447,13 @@ |
|
|
parameterType="com.elink.esua.epdc.dto.item.form.ScreenTotalFormDTO"> |
|
|
parameterType="com.elink.esua.epdc.dto.item.form.ScreenTotalFormDTO"> |
|
|
select |
|
|
select |
|
|
DATE_FORMAT(item.CREATED_TIME,'%Y-%m-%d') as time, |
|
|
DATE_FORMAT(item.CREATED_TIME,'%Y-%m-%d') as time, |
|
|
count(item.EVALUATION_SCORE = 0 or null) as bmy, |
|
|
ROUND(count(item.EVALUATION_SCORE = 0 or null) / count(item.ID) * 100,1) as bmy, |
|
|
count(item.EVALUATION_SCORE = 1 or null) as jbmy, |
|
|
ROUND(count(item.EVALUATION_SCORE = 1 or null) / count(item.ID) * 100,1) as jbmy, |
|
|
count(item.EVALUATION_SCORE = 2 or null) as fcmy |
|
|
ROUND(count(item.EVALUATION_SCORE = 2 or null) / count(item.ID) * 100,1) as fcmy |
|
|
from epdc_item item |
|
|
from epdc_item item |
|
|
where item.DEL_FLAG = '0' |
|
|
where item.DEL_FLAG = '0' |
|
|
and item.IS_PEOPLE = '1' |
|
|
and item.IS_PEOPLE = '1' |
|
|
|
|
|
and item.ITEM_STATE = '10' |
|
|
and item.EVENT_ID is null |
|
|
and item.EVENT_ID is null |
|
|
and item.ISSUE_ID is null |
|
|
and item.ISSUE_ID is null |
|
|
and SUBSTRING_INDEX(item.CATEGORY_FULL_NAME,'-',1) != '其他' |
|
|
and SUBSTRING_INDEX(item.CATEGORY_FULL_NAME,'-',1) != '其他' |
|
|
|