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.
58 lines
3.1 KiB
58 lines
3.1 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.charge.task.dao.NotifyStationStatusDOMapper">
|
|
<resultMap id="BaseResultMap" type="com.charge.task.model.NotifyStationStatusDO">
|
|
<!--
|
|
WARNING - @mbg.generated
|
|
-->
|
|
<id column="id" jdbcType="BIGINT" property="id" />
|
|
<result column="equipment_sn" jdbcType="VARCHAR" property="equipmentSn" />
|
|
<result column="connector_no" jdbcType="TINYINT" property="connectorNo" />
|
|
<result column="real_state" jdbcType="TINYINT" property="realState" />
|
|
<result column="weilai_is_push" jdbcType="TINYINT" property="weilaiIsPush" />
|
|
<result column="lianlian_is_push" jdbcType="TINYINT" property="lianlianIsPush" />
|
|
<result column="dianxiang_is_push" jdbcType="TINYINT" property="dianxiangIsPush" />
|
|
<result column="tgood_is_push" jdbcType="TINYINT" property="tgoodIsPush" />
|
|
<result column="didi_is_push" jdbcType="TINYINT" property="didiIsPush" />
|
|
<result column="fjspt_is_push" jdbcType="TINYINT" property="fjsptIsPush" />
|
|
<result column="lxkj_is_push" jdbcType="TINYINT" property="lxkjIsPush" />
|
|
<result column="xmzfpt_is_push" jdbcType="TINYINT" property="xmzfptIsPush" />
|
|
<result column="ali_is_push" jdbcType="TINYINT" property="aliIsPush" />
|
|
<result column="lx_is_push" jdbcType="TINYINT" property="lxIsPush" />
|
|
<result column="gq_is_push" jdbcType="TINYINT" property="gqIsPush" />
|
|
<result column="kddl_is_push" jdbcType="TINYINT" property="kddlIsPush" />
|
|
<result column="dd_is_push" jdbcType="TINYINT" property="ddIsPush" />
|
|
<result column="hubject_is_push" jdbcType="TINYINT" property="hubjectIsPush" />
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
</resultMap>
|
|
|
|
<!--公共的-->
|
|
<select id="selectNoPushStationStatusPub" parameterType="Map" resultMap="NoPushStationStatus">
|
|
SELECT
|
|
c.connector_sn,
|
|
nss.real_state,
|
|
nss.id
|
|
FROM
|
|
t_notify_station_status nss
|
|
INNER JOIN t_equipment e ON e.equipment_sn = nss.equipment_sn
|
|
INNER JOIN t_connector c ON c.equipment_id = e.id
|
|
INNER JOIN t_platform_open_station pos ON pos.platform_open_stationid = e.station_id
|
|
INNER JOIN t_platform p ON p.id = pos.platform_id
|
|
WHERE
|
|
${sql}
|
|
AND c.connector_no = nss.connector_no
|
|
<![CDATA[ AND nss.create_time >= #{startTime}
|
|
AND nss.create_time <= #{endTime}
|
|
]]>
|
|
AND p.platform_code = #{platformCode}
|
|
ORDER BY
|
|
nss.id ASC
|
|
</select>
|
|
|
|
<resultMap id="NoPushStationStatus" type="com.charge.task.model.NoPushStationStatusBO">
|
|
<result column="connector_sn" jdbcType="VARCHAR" property="connectorSn" />
|
|
<result column="real_state" jdbcType="INTEGER" property="realState" />
|
|
<result column="id" jdbcType="INTEGER" property="id" />
|
|
</resultMap>
|
|
</mapper> |