|
|
@ -35,19 +35,28 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="selectDcPublishManageVo"> |
|
|
|
select facility.facility_name, |
|
|
|
select |
|
|
|
manage.id, manage.event_id, manage.publish_channels_id, |
|
|
|
manage.title, manage.publish_channels , manage.publisher, |
|
|
|
manage.publish_time, manage.create_time, |
|
|
|
manage.publish_status, manage.content_details, manage.remark, |
|
|
|
event.create_time eventTime,event.direction,event.stake_mark, |
|
|
|
manage.title , manage.create_time, |
|
|
|
manage.publish_status,event.create_time eventTime,event.direction,event.stake_mark, |
|
|
|
event.event_type,event.event_subclass,event.event_state |
|
|
|
from dc_publish_manage as manage |
|
|
|
LEFT JOIN dc_event as event on event.id=manage.event_id |
|
|
|
LEFT JOIN dc_event_traffic_control as traffic on event.id=traffic.id |
|
|
|
LEFT JOIN dc_facility as facility ON traffic.facility_id=facility.id |
|
|
|
</sql> |
|
|
|
|
|
|
|
<select id="selectEventDcPublishManageList" resultType="com.zc.business.domain.DcPublishManage"> |
|
|
|
select facility.facility_name,event.event_state,manage.publish_time, manage.create_time, |
|
|
|
manage.id, manage.event_id, manage.publish_channels_id, |
|
|
|
manage.title, manage.publish_channels , manage.publisher, |
|
|
|
manage.publish_status, manage.content_details, manage.remark, |
|
|
|
event.create_time eventTime |
|
|
|
from dc_publish_manage as manage |
|
|
|
LEFT JOIN dc_event as event on event.id=manage.event_id |
|
|
|
LEFT JOIN dc_event_traffic_control as traffic on event.id=traffic.id |
|
|
|
LEFT JOIN dc_facility as facility ON traffic.facility_id=facility.id |
|
|
|
where manage.event_id=#{eventId} |
|
|
|
</select> |
|
|
|
<select id="selectDcPublishManageList" parameterType="DcPublishManage" resultMap="DcPublishManageResult"> |
|
|
|
<include refid="selectDcPublishManageVo"/> |
|
|
|
<where> |
|
|
@ -66,6 +75,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
+CAST(SUBSTRING_INDEX(event.stake_mark, '+', -1) AS UNSIGNED)<=#{endStakeMark} |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
GROUP BY manage.event_id |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="selectDcPublishManageById" parameterType="Long" resultMap="DcPublishManageResult"> |
|
|
@ -89,6 +99,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
<insert id="insertDcPublishManage" parameterType="DcPublishManage" useGeneratedKeys="true" keyProperty="id"> |
|
|
|
insert into dc_publish_manage |
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
|