Browse Source

解决情况列表

feature/dangjian
lichao 2 years ago
parent
commit
49ae21507f
  1. 2
      esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/java/com/elink/esua/epdc/modules/item/dao/ItemDao.java
  2. 5
      esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/java/com/elink/esua/epdc/modules/item/service/impl/ItemServiceImpl.java
  3. 44
      esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/resources/mapper/item/ItemDao.xml

2
esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/java/com/elink/esua/epdc/modules/item/dao/ItemDao.java

@ -548,4 +548,6 @@ public interface ItemDao extends BaseDao<ItemEntity> {
List<ItemListByAddressResultDTO> getItemListByAddress(Map<String, Object> params);
List<ItemStatisListPageResultDTO> getevaluationList(Map<String, Object> params);
List<ItemStatisListPageResultDTO> getsolutionList(Map<String, Object> params);
}

5
esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/java/com/elink/esua/epdc/modules/item/service/impl/ItemServiceImpl.java

@ -4556,7 +4556,10 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem
List<ItemStatisListPageResultDTO> list = new ArrayList<>();
if (!params.isEmpty() && params.containsKey("evaluationScore") && null != params.get("evaluationScore")) {
list = baseDao.getevaluationList(params);
} else {
} else if (!params.isEmpty() && params.containsKey("solutionInfo") && null != params.get("solutionInfo")) {
list = baseDao.getsolutionList(params);
}
else {
list = baseDao.getItemStatisListPage(params);
}

44
esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/resources/mapper/item/ItemDao.xml

@ -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

Loading…
Cancel
Save