|
@ -2,13 +2,22 @@ |
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|
|
|
|
|
|
|
|
<mapper namespace="com.elink.esua.epdc.modules.events.dao.EpdcEventsDao"> |
|
|
<mapper namespace="com.elink.esua.epdc.modules.events.dao.EpdcEventsDao"> |
|
|
<select id="getEventDetailById" resultType="com.elink.esua.epdc.dto.events.EpdcEventsDetailDTO"> |
|
|
<resultMap id="EventDetailMap" type="com.elink.esua.epdc.dto.events.EpdcEventsDetailDTO"> |
|
|
|
|
|
<result property="id" column="ID"/> |
|
|
|
|
|
<result property="eventContent" column="EVENT_CONTENT"/> |
|
|
|
|
|
<result property="nickName" column="NICK_NAME"/> |
|
|
|
|
|
<result property="createdTime" column="CREATED_TIME"/> |
|
|
|
|
|
<collection property="images" ofType="java.lang.String"> |
|
|
|
|
|
<result property="image" column="IMG_URL"/> |
|
|
|
|
|
</collection> |
|
|
|
|
|
</resultMap> |
|
|
|
|
|
<select id="getEventDetailById" resultMap="EventDetailMap"> |
|
|
SELECT |
|
|
SELECT |
|
|
e.ID, |
|
|
e.ID, |
|
|
e.EVENT_CONTENT AS eventContent, |
|
|
e.EVENT_CONTENT, |
|
|
i.IMG_URL AS images, |
|
|
i.IMG_URL, |
|
|
e.NICK_NAME AS nickName, |
|
|
e.NICK_NAME, |
|
|
e.CREATED_TIME AS createdTime |
|
|
e.CREATED_TIME |
|
|
FROM |
|
|
FROM |
|
|
epdc_events e |
|
|
epdc_events e |
|
|
LEFT JOIN epdc_img i ON e.ID = i.REFERENCE_ID |
|
|
LEFT JOIN epdc_img i ON e.ID = i.REFERENCE_ID |
|
|