2024-05-23 17:24:41 +08:00
|
|
|
<?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.ruoyi.system.mapper.EtOperatingAreaMapper">
|
|
|
|
|
|
|
|
<resultMap type="EtOperatingArea" id="EtOperatingAreaResult">
|
|
|
|
<result property="areaId" column="area_id" />
|
|
|
|
<result property="areaName" column="area_name" />
|
|
|
|
<result property="boundary" column="boundary" />
|
|
|
|
<result property="boundaryStr" column="boundary_str" />
|
|
|
|
<result property="longitude" column="longitude" />
|
|
|
|
<result property="latitude" column="latitude" />
|
|
|
|
<result property="createBy" column="create_by" />
|
|
|
|
<result property="createTime" column="create_time" />
|
|
|
|
<result property="contact" column="contact" />
|
|
|
|
<result property="phone" column="phone" />
|
|
|
|
<result property="status" column="status" />
|
|
|
|
<result property="areaTime" column="area_time" />
|
|
|
|
<result property="servicePhone" column="service_phone" />
|
|
|
|
<result property="slogan" column="slogan" />
|
|
|
|
<result property="province" column="province" />
|
|
|
|
<result property="city" column="city" />
|
|
|
|
<result property="county" column="county" />
|
|
|
|
<result property="areaOutOutage" column="area_out_outage" />
|
|
|
|
<result property="parkingOutDispatch" column="parking_out_dispatch" />
|
|
|
|
<result property="areaOutDispatch" column="area_out_dispatch" />
|
|
|
|
<result property="noRidingOutage" column="no_riding_outage" />
|
|
|
|
<result property="authentication" column="authentication" />
|
|
|
|
<result property="msgSwitch" column="msg_switch" />
|
|
|
|
<result property="undercharge" column="undercharge" />
|
|
|
|
<result property="error" column="error" />
|
|
|
|
<result property="agreement" column="agreement" />
|
|
|
|
<result property="deposit" column="deposit" />
|
|
|
|
<result property="outage" column="outage" />
|
2024-05-24 15:35:14 +08:00
|
|
|
<result property="appointmentServiceFee" column="appointment_service_fee" />
|
|
|
|
<result property="dispatchFee" column="dispatch_fee" />
|
|
|
|
<result property="vehicleManagementFee" column="vehicle_management_fee" />
|
|
|
|
<result property="timeoutMinutes" column="timeout_minutes" />
|
|
|
|
<result property="autoReplacementOrder" column="auto_replacement_order" />
|
2024-05-23 17:24:41 +08:00
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="selectEtOperatingAreaVo">
|
|
|
|
select area_id, area_name, AsText(boundary) boundary,
|
|
|
|
boundary_str, longitude, latitude, create_by, create_time,
|
|
|
|
contact, phone, status, area_time, service_phone, slogan, province,city,
|
|
|
|
county, area_out_outage, parking_out_dispatch, area_out_dispatch,
|
2024-05-24 15:35:14 +08:00
|
|
|
no_riding_outage, authentication, msg_switch, undercharge, error, agreement, deposit,
|
|
|
|
outage, appointment_service_fee, dispatch_fee, vehicle_management_fee, timeout_minutes, auto_replacement_order from et_operating_area
|
2024-05-23 17:24:41 +08:00
|
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="selectEtOperatingAreaList" parameterType="EtOperatingArea" resultMap="EtOperatingAreaResult">
|
|
|
|
<include refid="selectEtOperatingAreaVo"/>
|
|
|
|
<where>
|
|
|
|
<if test="areaName != null and areaName != ''"> and area_name like concat('%', #{areaName}, '%')</if>
|
|
|
|
</where>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<select id="selectEtOperatingAreaByAreaId" parameterType="Long" resultMap="EtOperatingAreaResult">
|
|
|
|
<include refid="selectEtOperatingAreaVo"/>
|
|
|
|
where area_id = #{areaId}
|
|
|
|
</select>
|
|
|
|
|
|
|
|
</mapper>
|