Newer
Older
casic-metering-eqpt-xichang / casic-metering-dao / src / main / resources / mapper / resource / BizResourceCustomerResultReviewNoticeMapper.xml
<?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.resource.BizResourceCustomerResultReviewNoticeMapper">

    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.casic.missiles.model.resource.BizResourceCustomerResultReviewNotice">
        <id column="id" property="id" />
        <result column="customer_id" property="customerId" />
        <result column="customer_name" property="customerName" />
        <result column="lab_code" property="labCode" />
        <result column="notice_user_id" property="noticeUserId" />
        <result column="notice_user_name" property="noticeUserName" />
        <result column="notice_no" property="noticeNo" />
        <result column="notice_name" property="noticeName" />
        <result column="submit_date" property="submitDate" />
        <result column="device_name" property="deviceName" />
        <result column="device_model" property="deviceModel" />
        <result column="device_no" property="deviceNo" />
        <result column="return_date" property="returnDate" />
        <result column="notice_date" property="noticeDate" />
        <result column="create_user_id" property="createUserId" />
        <result column="create_user_name" property="createUserName" />
        <result column="create_time" property="createTime" />
        <result column="update_time" property="updateTime" />
    </resultMap>

    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        id, customer_id, customer_name, lab_code, notice_user_id, notice_user_name, notice_no, notice_name, submit_date, device_name, device_model, device_no, return_date, notice_date, create_user_id, create_user_name, create_time, update_time
    </sql>

    <select id="selectMaxNoticeNo" resultType="java.lang.Long">
        SELECT IFNULL(max(RIGHT(notice_no, 3)), 0) from biz_resource_customer_result_review_notice
    </select>
</mapper>