forked from luyan/epmet-cloud-lingshan
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.3 KiB
41 lines
1.3 KiB
<?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.IcEventReplyDao">
|
|
|
|
<select id="selectByEventId" resultType="com.epmet.dto.result.IcEventProcessListResultDTO">
|
|
SELECT
|
|
id processId,
|
|
'event' type,
|
|
'回复' processName,
|
|
UNIX_TIMESTAMP(created_time) processTime,
|
|
user_show_name departmentName,
|
|
content publicReply,
|
|
manage_status,
|
|
manage_time,
|
|
manage_resi,
|
|
manage_resi_tel
|
|
FROM
|
|
ic_event_reply
|
|
WHERE
|
|
del_flag = '0'
|
|
AND ic_event_id = #{icEventId}
|
|
ORDER BY created_time DESC
|
|
</select>
|
|
|
|
<select id="selectReplyList" parameterType="map" resultType="com.epmet.dto.IcEventReplyDTO">
|
|
SELECT
|
|
r.ID replyId,
|
|
r.CONTENT,
|
|
r.CREATED_TIME,
|
|
( CASE WHEN r.CREATED_BY = #{userId} THEN '我' ELSE r.USER_SHOW_NAME END ) AS userShowName,
|
|
r.CREATED_BY
|
|
FROM
|
|
ic_event_reply r
|
|
WHERE
|
|
r.DEL_FLAG = '0'
|
|
AND r.IC_EVENT_ID = #{icEventId}
|
|
ORDER BY
|
|
r.CREATED_TIME DESC
|
|
</select>
|
|
</mapper>
|
|
|