<?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.casic.missiles.mapper.system.SystemNoticeMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.casic.missiles.model.SystemNotice">
<id column="id" property="id" />
<result column="notice_no" property="noticeNo" />
<result column="notice_title" property="noticeTitle" />
<result column="notice_publisher" property="noticePublisher" />
<result column="notice_company" property="noticeCompany" />
<result column="notice_time" property="noticeTime" />
<result column="notice_sketch" property="noticeSketch" />
<result column="notice_content" property="noticeContent" />
<result column="minio_file_name" property="minioFileName" />
<result column="is_del" property="isDel" />
<result column="create_time" property="createTime" />
<result column="update_time" property="updateTime" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
id, notice_no, notice_title, notice_publisher, notice_company, notice_time, notice_sketch, notice_content, minio_file_name, is_del, create_time, update_time
</sql>
<select id="selectMaxNoticeNo" resultType="java.lang.Long">
SELECT IFNULL(max(RIGHT(notice_no, 12)), 0) from system_notice
</select>
</mapper>