|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
|
|
|
<mapper namespace="com.epmet.dao.IssueApplicationDao">
|
|
|
|
|
|
|
|
<select id="applicationDetail" resultType="com.epmet.resi.group.dto.group.result.ApplicationDetailResultDTO">
|
|
|
|
SELECT
|
|
|
|
ID AS issueApplicationId,
|
|
|
|
ISSUE_TITLE,
|
|
|
|
GRID_ID,
|
|
|
|
topic_id,
|
|
|
|
CREATED_BY AS userId,
|
|
|
|
suggestion AS issueSuggestion
|
|
|
|
FROM issue_application
|
|
|
|
WHERE DEL_FLAG = '0'
|
|
|
|
AND ID = #{issueApplicationId}
|
|
|
|
</select>
|
|
|
|
<!-- 分页按条件查询issue_application -->
|
|
|
|
<select id="selectList" resultType="com.epmet.dto.result.IssueApplicationResDTO" parameterType="com.epmet.dto.form.IssueAppQueryFormDTO">
|
|
|
|
SELECT
|
|
|
|
ia.id AS issueApplicationId,
|
|
|
|
ia.ISSUE_TITLE,
|
|
|
|
unix_timestamp( ia.UPDATED_TIME ) AS latestTime
|
|
|
|
ia.SUGGESTION,
|
|
|
|
ia.APPLY_STATUS
|
|
|
|
FROM
|
|
|
|
issue_application ia
|
|
|
|
WHERE
|
|
|
|
ia.DEL_FLAG = '0'
|
|
|
|
<if test="applyStatus != null and applyStatus.trim() != ''">
|
|
|
|
AND ia.APPLY_STATUS = #{applyStatus}
|
|
|
|
</if>
|
|
|
|
<if test="gridId != null and gridId.trim() != ''">
|
|
|
|
AND ia.GRID_ID = #{gridId}
|
|
|
|
</if>
|
|
|
|
<if test="groupId != null and groupId.trim() != ''">
|
|
|
|
AND ia.GROUP_ID = #{groupId}
|
|
|
|
</if>
|
|
|
|
ORDER BY
|
|
|
|
ia.UPDATED_TIME DESC
|
|
|
|
</select>
|
|
|
|
</mapper>
|