You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
3.4 KiB

<?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.xr.device_car.modules.analysis.mapper.MeterConfigMapper">
<resultMap id="BaseResultMap" type="com.xr.device_car.modules.analysis.entity.MeterConfig">
<id property="id" column="id" jdbcType="INTEGER"/>
<result property="voltageClass" column="voltage_class" jdbcType="VARCHAR"/>
<result property="owningInterval" column="owning_interval" jdbcType="VARCHAR"/>
<result property="identificationInterval" column="identification_interval" jdbcType="VARCHAR"/>
<result property="deviceName" column="device_name" jdbcType="VARCHAR"/>
<result property="deviceType" column="device_type" jdbcType="VARCHAR"/>
<result property="meterCode" column="meter_code" jdbcType="VARCHAR"/>
<result property="meterName" column="meter_name" jdbcType="VARCHAR"/>
<result property="cameraId" column="camera_id" jdbcType="INTEGER"/>
<result property="typeId" column="type_id" jdbcType="INTEGER"/>
<result property="status" column="status" jdbcType="INTEGER"/>
<result property="firstTime" column="first_time" jdbcType="TIMESTAMP"/>
<result property="algorithmType" column="algorithm_type" jdbcType="VARCHAR"/>
<result property="intervalTime" column="interval_time" jdbcType="INTEGER"/>
<result property="intervalType" column="interval_type" jdbcType="INTEGER"/>
<result property="focalNumber" column="focal_number" jdbcType="INTEGER"/>
<result property="parameterConfig" column="parameter_config" jdbcType="VARCHAR"/>
<result property="remarks" column="remarks" jdbcType="VARCHAR"/>
<result property="initStatus" column="init_status" jdbcType="VARCHAR"/>
<result property="createUser" column="create_user" jdbcType="VARCHAR"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="updateUser" column="update_user" jdbcType="VARCHAR"/>
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
<result property="cameraType" column="device_type" jdbcType="VARCHAR"/>
<result property="cameraName" column="position" jdbcType="VARCHAR"/>
<result property="typeAlias" column="type_alias" jdbcType="VARCHAR"/>
<result property="ip" column="device_ip" jdbcType="VARCHAR"/>
</resultMap>
<sql id="Base_Column_List">
a.id,a.voltage_class,a.owning_interval,
a.identification_interval,a.device_name,a.device_type,
a.meter_code,a.meter_name,a.camera_id,
a.type_id,a.status,a.first_time,
a.algorithm_type,a.interval_time,a.focal_number,
a.parameter_config,a.remarks,a.init_status,a.create_user,
a.create_time,a.update_user,a.update_time,
</sql>
<select id="selectConfigByPage" resultType="com.xr.device_car.modules.analysis.entity.MeterConfig">
select
<include refid="Base_Column_List"></include>
b.device_type cameraType,b.position cameraName,c.type_alias,b.device_ip ip from meter_config a
left join device_camera b on a.camera_id = b.id
left join meter_type c on a.type_id=c.id
left join substation d on a.station_id = d.id
${ew.customSqlSegment}
</select>
</mapper>