HubParkingInfoSMapper.xml
8.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<?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.zteits.park.mapper.smapper.HubParkingInfoSMapper">
<resultMap id="BaseResultMap" type="com.zteits.park.domain.HubParkingInfoBO">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="park_code" jdbcType="VARCHAR" property="parkCode" />
<result column="organization_no" jdbcType="VARCHAR" property="organizationNo" />
<result column="organization_name" jdbcType="VARCHAR" property="organizationName" />
<result column="legal_representative" jdbcType="VARCHAR" property="legalRepresentative" />
<result column="social_credit_code" jdbcType="VARCHAR" property="socialCreditCode" />
<result column="company_address" jdbcType="VARCHAR" property="companyAddress" />
<result column="park_nature" jdbcType="VARCHAR" property="parkNature" />
<result column="park_region_id1" jdbcType="VARCHAR" property="parkRegionId1" />
<result column="park_region_id2" jdbcType="VARCHAR" property="parkRegionId2" />
<result column="park_type" jdbcType="VARCHAR" property="parkType" />
<result column="park_class" jdbcType="VARCHAR" property="parkClass" />
<result column="park_classification" jdbcType="VARCHAR" property="parkClassification" />
<result column="space_loc" jdbcType="VARCHAR" property="spaceLoc" />
<result column="is_shared" jdbcType="VARCHAR" property="isShared" />
<result column="shared_time" jdbcType="VARCHAR" property="sharedTime" />
<result column="shared_park_place_num" jdbcType="INTEGER" property="sharedParkPlaceNum" />
<result column="park_stage" jdbcType="VARCHAR" property="parkStage" />
<result column="free_num" jdbcType="INTEGER" property="freeNum" />
<result column="large_vehicle_num" jdbcType="INTEGER" property="largeVehicleNum" />
<result column="light_vehicle_num" jdbcType="INTEGER" property="lightVehicleNum" />
<result column="park_place_num01" jdbcType="INTEGER" property="parkPlaceNum01" />
<result column="park_place_num02" jdbcType="INTEGER" property="parkPlaceNum02" />
<result column="park_place_num03" jdbcType="INTEGER" property="parkPlaceNum03" />
<result column="park_place_num04" jdbcType="INTEGER" property="parkPlaceNum04" />
<result column="park_place_num05" jdbcType="INTEGER" property="parkPlaceNum05" />
<result column="park_place_num06" jdbcType="INTEGER" property="parkPlaceNum06" />
<result column="property_type" jdbcType="VARCHAR" property="propertyType" />
<result column="property_owner" jdbcType="VARCHAR" property="propertyOwner" />
<result column="property_date" jdbcType="TIMESTAMP" property="propertyDate" />
<result column="gross_area" jdbcType="VARCHAR" property="grossArea" />
<result column="park_location_class" jdbcType="VARCHAR" property="parkLocationClass" />
<result column="worker_num" jdbcType="INTEGER" property="workerNum" />
<result column="park_charger" jdbcType="VARCHAR" property="parkCharger" />
<result column="mobile_phone" jdbcType="VARCHAR" property="mobilePhone" />
<result column="tel_phone" jdbcType="VARCHAR" property="telPhone" />
<result column="day_time_start" jdbcType="TIME" property="dayTimeStart" />
<result column="day_time_end" jdbcType="TIME" property="dayTimeEnd" />
<result column="night_time_start" jdbcType="TIME" property="nightTimeStart" />
<result column="night_time_end" jdbcType="TIME" property="nightTimeEnd" />
<result column="charging_standard_temp_small_car_day_first_hour" jdbcType="REAL" property="chargingStandardTempSmallCarDayFirstHour" />
<result column="day_small_car_chronon_mins_first_hour" jdbcType="INTEGER" property="daySmallCarChrononMinsFirstHour" />
<result column="charging_standard_temp_small_car_day" jdbcType="REAL" property="chargingStandardTempSmallCarDay" />
<result column="day_small_car_chronon_mins" jdbcType="INTEGER" property="daySmallCarChrononMins" />
<result column="charging_standard_temp_small_car_night" jdbcType="REAL" property="chargingStandardTempSmallCarNight" />
<result column="night_small_car_chronon_mins" jdbcType="INTEGER" property="nightSmallCarChrononMins" />
<result column="charging_standard_temp_big_car_day_first_hour" jdbcType="REAL" property="chargingStandardTempBigCarDayFirstHour" />
<result column="day_big_car_chronon_mins_first_hour" jdbcType="INTEGER" property="dayBigCarChrononMinsFirstHour" />
<result column="charging_standard_temp_big_car_day" jdbcType="REAL" property="chargingStandardTempBigCarDay" />
<result column="day_big_car_chronon_mins" jdbcType="INTEGER" property="dayBigCarChrononMins" />
<result column="charging_standard_temp_big_car_night" jdbcType="REAL" property="chargingStandardTempBigCarNight" />
<result column="night_big_car_chronon_mins" jdbcType="INTEGER" property="nightBigCarChrononMins" />
<result column="charging_standard_lease_small_car" jdbcType="INTEGER" property="chargingStandardLeaseSmallCar" />
<result column="charging_standard_lease_big_car" jdbcType="INTEGER" property="chargingStandardLeaseBigCar" />
<result column="tsaa_fee" jdbcType="REAL" property="tsaaFee" />
<result column="tbaa_fee" jdbcType="REAL" property="tbaaFee" />
<result column="park_use_date" jdbcType="DATE" property="parkUseDate" />
<result column="licence" jdbcType="VARCHAR" property="licence" />
<result column="record_effect_date" jdbcType="DATE" property="recordEffectDate" />
<result column="record_invalid_date" jdbcType="DATE" property="recordInvalidDate" />
<result column="sent_date_time" jdbcType="TIMESTAMP" property="sentDateTime" />
<result column="charge_fa_picture" jdbcType="VARCHAR" property="chargeFaPicture" />
<result column="charge_op_picture" jdbcType="VARCHAR" property="chargeOpPicture" />
<result column="open_time" jdbcType="VARCHAR" property="openTime" />
<result column="data_status" jdbcType="INTEGER" property="dataStatus" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="create_op" jdbcType="VARCHAR" property="createOp" />
<result column="modify_time" jdbcType="TIMESTAMP" property="modifyTime" />
<result column="modify_op" jdbcType="VARCHAR" property="modifyOp" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="park_name" jdbcType="VARCHAR" property="parkName" />
<result column="park_address" jdbcType="VARCHAR" property="parkAddress" />
<result column="park_lon" jdbcType="VARCHAR" property="parkLon" />
<result column="park_lac" jdbcType="VARCHAR" property="parkLac" />
<result column="berths" jdbcType="INTEGER" property="berths" />
<result column="entrance_num" jdbcType="INTEGER" property="entranceNum" />
<result column="exit_num" jdbcType="INTEGER" property="exitNum" />
<result column="chargeNum" jdbcType="INTEGER" property="chargeNum" />
</resultMap>
<sql id="Base_Column_List">
id, park_code, organization_no, organization_name, legal_representative, social_credit_code,
company_address, park_nature, park_region_id1, park_region_id2, park_type, park_class,
park_classification, space_loc, is_shared, shared_time, shared_park_place_num, park_stage,
free_num, large_vehicle_num, light_vehicle_num, park_place_num01, park_place_num02,
park_place_num03, park_place_num04, park_place_num05, park_place_num06, property_type,
property_owner, property_date, gross_area, park_location_class, worker_num, park_charger,
mobile_phone, tel_phone, day_time_start, day_time_end, night_time_start, night_time_end,
charging_standard_temp_small_car_day_first_hour, day_small_car_chronon_mins_first_hour,
charging_standard_temp_small_car_day, day_small_car_chronon_mins, charging_standard_temp_small_car_night,
night_small_car_chronon_mins, charging_standard_temp_big_car_day_first_hour, data_status,
create_time, create_op, modify_time, modify_op, remark, park_name, park_address, park_lon,
park_lac, berths, entrance_num, exit_num, chargeNum
</sql>
<select id="selectList" parameterType="com.zteits.park.domain.HubParkingInfo" resultMap="BaseResultMap">
select
hub_parking_info.*, parking_lot.pl_name as park_name, parking_lot.pl_address as park_address, parking_lot_geo.lon_id as park_lon, parking_lot_geo.lat_id as park_lac, parking_lot.pl_berth_num as berths, parking_lot.pl_entrance_num as entrance_num, parking_lot.pl_exit_num as exit_num,parking_lot.pl_charge_num as chargeNum
from hub_parking_info join parking_lot on hub_parking_info.park_code = parking_lot.pl_no and parking_lot.data_status = 1
join parking_lot_geo on hub_parking_info.park_code = parking_lot_geo.pl_no and parking_lot_geo.data_status = 1 and parking_lot_geo.geo_type = 1 and parking_lot_geo.lon_lat_type = 3
where hub_parking_info.data_status = 1
</select>
</mapper>