You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<?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
|
|
|
|
FROM issue_application
|
|
|
|
WHERE DEL_FLAG = '0'
|
|
|
|
AND ID = #{issueApplicationId}
|
|
|
|
</select>
|
|
|
|
<!-- 分页按条件查询issue_application -->
|
|
|
|
<select id="selectList" resultType="com.epmet.dto.IssueApplicationDTO" parameterType="com.epmet.dto.form.IssueAppQueryFormDTO">
|
|
|
|
SELECT
|
|
|
|
ia.ID,
|
|
|
|
ia.CUSTOMER_ID,
|
|
|
|
ia.ISSUE_TITLE,
|
|
|
|
ia.SUGGESTION,
|
|
|
|
ia.APPLY_STATUS,
|
|
|
|
ia.TOPIC_ID,
|
|
|
|
ia.GROUP_ID,
|
|
|
|
ia.GRID_ID,
|
|
|
|
ia.ISSUE_ID,
|
|
|
|
ia.PASSED_REASON,
|
|
|
|
ia.CREATED_BY,
|
|
|
|
ia.CREATED_TIME,
|
|
|
|
ia.UPDATED_BY,
|
|
|
|
ia.UPDATED_TIME,
|
|
|
|
ia.id AS issueApplicationId,
|
|
|
|
unix_timestamp( ia.UPDATED_TIME ) AS time
|
|
|
|
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>
|