|
|
|
@ -3129,6 +3129,50 @@ |
|
|
|
and item.EVALUATION_SCORE is not null |
|
|
|
order by item.created_time DESC |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
<select id="getsolutionList" resultType="com.elink.esua.epdc.dto.item.result.ItemStatisListPageResultDTO"> |
|
|
|
SELECT |
|
|
|
item.id, |
|
|
|
item.item_content, |
|
|
|
item.item_state, |
|
|
|
item.nick_name, |
|
|
|
item.mobile, |
|
|
|
item.created_time, |
|
|
|
item.serial_num, |
|
|
|
item.grid AS gridName, |
|
|
|
SUBSTRING_INDEX(REPLACE (item.parent_dept_names, '市北区委-', ''), '-', 1) AS streetName, |
|
|
|
SUBSTRING_INDEX(REPLACE (item.parent_dept_names, '市北区委-', ''), '-' ,- 1) AS communityName, |
|
|
|
item.people_flag |
|
|
|
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) != '其他' and item.PEOPLE_FLAG = '0') or (item.PEOPLE_FLAG in ('1','2'))) |
|
|
|
<choose> |
|
|
|
<when test="startTime != null and startTime != '' and endTime != null and endTime != ''"> |
|
|
|
AND DATE_FORMAT( item.CREATED_TIME, '%Y-%m-%d' ) BETWEEN #{startTime} AND #{endTime} |
|
|
|
</when> |
|
|
|
<otherwise> |
|
|
|
AND DATE_FORMAT( item.CREATED_TIME, '%Y-%m-%d' ) <![CDATA[ <= ]]> DATE_FORMAT(date_sub(now(),interval 1 day),'%Y-%m-%d') |
|
|
|
</otherwise> |
|
|
|
</choose> |
|
|
|
<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> |
|
|
|
<if test="solutionInfo != null and solutionInfo != ''"> |
|
|
|
AND item.SOLUTION_INFO = #{solutionInfo} |
|
|
|
</if> |
|
|
|
and item.SOLUTION_INFO is not null |
|
|
|
order by item.created_time DESC |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="resolveTotal" resultType="com.elink.esua.epdc.dto.item.result.ResolveTotalPieResultDTO"> |
|
|
|
|
|
|
|
select |
|
|
|
|