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.

41 lines
1.4 KiB

5 years ago
<?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">
<!-- 分页按条件查询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>
5 years ago
</mapper>