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.

52 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.EquipmentDOMapper" >
<resultMap id="BaseResultMap" type="com.charge.task.model.EquipmentDO" >
<!--
WARNING - @mbg.generated
-->
<id column="id" property="id" jdbcType="BIGINT" />
<result column="station_id" property="stationId" jdbcType="BIGINT" />
<result column="agreement_id" property="agreementId" jdbcType="TINYINT" />
<result column="equipment_name" property="equipmentName" jdbcType="VARCHAR" />
<result column="equipment_sn" property="equipmentSn" jdbcType="VARCHAR" />
<result column="equipment_short_sn" property="equipmentShortSn" jdbcType="VARCHAR" />
<result column="equipment_no" property="equipmentNo" jdbcType="BIGINT" />
<result column="manufacturer_id" property="manufacturerId" jdbcType="VARCHAR" />
<result column="manufacturer_sn" property="manufacturerSn" jdbcType="VARCHAR" />
<result column="manufacturer_name" property="manufacturerName" jdbcType="VARCHAR" />
<result column="equipment_model" property="equipmentModel" jdbcType="VARCHAR" />
<result column="production_date" property="productionDate" jdbcType="TIMESTAMP" />
<result column="equipment_type" property="equipmentType" jdbcType="TINYINT" />
<result column="equipment_type_msg" property="equipmentTypeMsg" jdbcType="VARCHAR" />
<result column="equipment_lng" property="equipmentLng" jdbcType="DOUBLE" />
<result column="equipment_lat" property="equipmentLat" jdbcType="DOUBLE" />
<result column="connector_count" property="connectorCount" jdbcType="TINYINT" />
<result column="power" property="power" jdbcType="DOUBLE" />
<result column="national_standard" property="nationalStandard" jdbcType="TINYINT" />
<result column="national_standard_msg" property="nationalStandardMsg" jdbcType="VARCHAR" />
<result column="status" property="status" jdbcType="TINYINT" />
<result column="equipment_business_type" property="equipmentBusinessType" jdbcType="TINYINT" />
<result column="equipment_business_type_msg" property="equipmentBusinessTypeMsg" jdbcType="VARCHAR" />
<result column="is_use_card" property="isUseCard" jdbcType="TINYINT" />
<result column="is_use_card_msg" property="isUseCardMsg" jdbcType="VARCHAR" />
<result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
<result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
</resultMap>
<select id="selectPriceRule" resultType="com.charge.task.dto.PriceRule">
select
ter.charge_settle_type chargeSettleType,
tept.end_time endTime,
tept.elecfee elecfee,
tept.servicefee servicefee,
tept.cost,
tept.start_time startTime,
tept.time_flag as timeFlag
from
t_equipment_pricing_rule ter left join t_equipment_pricing_rule_time tept on ter.id = tept.equipment_pricing_rule_id
where
ter.equipment_id=#{equipmentId}
order by tept.end_time asc
</select>
</mapper>