Newer
Older
casic-metering-biz-xichang / casic-metering-dao / src / main / resources / mapper / business / BizBusinessIdentifyInfoMapper.xml
wangpeng on 16 Aug 2023 1 KB 业务管理、任务计量管理
<?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.business.BizBusinessIdentifyInfoMapper">

    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.casic.missiles.model.business.BizBusinessIdentifyInfo">
        <id column="id" property="id" />
        <result column="record_no" property="recordNo" />
        <result column="identify_type" property="identifyType" />
        <result column="device_id" property="deviceId" />
        <result column="device_type" property="deviceType" />
        <result column="device_no" property="deviceNo" />
        <result column="device_name" property="deviceName" />
        <result column="measure_person_id" property="measurePersonId" />
        <result column="measure_person" property="measurePerson" />
        <result column="create_time" property="createTime" />
        <result column="update_time" property="updateTime" />
    </resultMap>

    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        id, record_no, identify_type, device_id, device_type, device_name, measure_person_id, measure_person, create_time, update_time
    </sql>

    <select id="selectMaxNo" resultType="java.lang.Long">
        SELECT IFNULL(max(RIGHT(record_no, 12)), 0) from biz_business_identify_info
    </select>
</mapper>