|
@ -48,6 +48,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
FROM `dc_event_important_file` |
|
|
FROM `dc_event_important_file` |
|
|
where event_id = #{eventId} and status = '1' |
|
|
where event_id = #{eventId} and status = '1' |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
<select id="selectStatus" parameterType="DcEventImportantFile" resultType="java.lang.Integer"> |
|
|
|
|
|
select IFNULL(max(status),0) status from dc_event_important_file where event_id = #{eventId} and type = #{type} |
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
<insert id="insertDcEventImportantFile" parameterType="DcEventImportantFile" useGeneratedKeys="true" keyProperty="id"> |
|
|
<insert id="insertDcEventImportantFile" parameterType="DcEventImportantFile" useGeneratedKeys="true" keyProperty="id"> |
|
|
insert into dc_event_important_file |
|
|
insert into dc_event_important_file |
|
|