|
@@ -13,6 +13,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
13
|
13
|
<result property="weather" column="weather" />
|
14
|
14
|
<result property="position" column="position" />
|
15
|
15
|
<result property="heightType" column="height_type" />
|
|
16
|
+ <result property="height" column="height" />
|
16
|
17
|
<result property="dryTemperature" column="dry_temperature" />
|
17
|
18
|
<result property="wetTemperature" column="wet_temperature" />
|
18
|
19
|
<result property="airPressure" column="air_pressure" />
|
|
@@ -45,7 +46,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
45
|
46
|
</resultMap>
|
46
|
47
|
|
47
|
48
|
<sql id="selectCmcDeviceLogVo">
|
48
|
|
- select dl.log_id, dl.device_id, dl.project_id, dl.usage_type, dl.use_date, dl.weather, dl.position, dl.height_type, dl.dry_temperature, dl.wet_temperature, dl.air_pressure, dl.power_on, dl.power_off, dl.user_id from cmc_device_log as dl
|
|
49
|
+ select dl.log_id, dl.device_id, d.device_number, d.code, d.name, d.series, d.brand, dl.project_id, p.project_name, p.project_number, dl.usage_type, dl.use_date,
|
|
50
|
+ dl.weather, dl.position, dl.height_type, dl.height, dl.dry_temperature, dl.wet_temperature, dl.air_pressure, dl.power_on, dl.power_off, dl.user_id, u.nick_name from cmc_device_log as dl
|
49
|
51
|
left join sys_user as u on u.user_id = dl.user_id
|
50
|
52
|
left join cmc_device as d on d.device_id = dl.device_id
|
51
|
53
|
left join cmc_project as p on p.project_id = dl.project_id
|
|
@@ -61,6 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
61
|
63
|
<if test="weather != null and weather != ''"> and dl.weather = #{weather}</if>
|
62
|
64
|
<if test="position != null and position != ''"> and dl.position = #{position}</if>
|
63
|
65
|
<if test="heightType != null and heightType != ''"> and dl.height_type = #{heightType}</if>
|
|
66
|
+ <if test="height != null "> and dl.height = #{height}</if>
|
64
|
67
|
<if test="dryTemperature != null and dryTemperature != ''"> and dl.dry_temperature = #{dryTemperature}</if>
|
65
|
68
|
<if test="wetTemperature != null and wetTemperature != ''"> and dl.wet_temperature = #{wetTemperature}</if>
|
66
|
69
|
<if test="airPressure != null and airPressure != ''"> and dl.air_pressure = #{airPressure}</if>
|
|
@@ -85,6 +88,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
85
|
88
|
<if test="weather != null">weather,</if>
|
86
|
89
|
<if test="position != null">position,</if>
|
87
|
90
|
<if test="heightType != null">height_type,</if>
|
|
91
|
+ <if test="height != null">height,</if>
|
88
|
92
|
<if test="dryTemperature != null">dry_temperature,</if>
|
89
|
93
|
<if test="wetTemperature != null">wet_temperature,</if>
|
90
|
94
|
<if test="airPressure != null">air_pressure,</if>
|
|
@@ -100,6 +104,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
100
|
104
|
<if test="weather != null">#{weather},</if>
|
101
|
105
|
<if test="position != null">#{position},</if>
|
102
|
106
|
<if test="heightType != null">#{heightType},</if>
|
|
107
|
+ <if test="height != null">#{height},</if>
|
103
|
108
|
<if test="dryTemperature != null">#{dryTemperature},</if>
|
104
|
109
|
<if test="wetTemperature != null">#{wetTemperature},</if>
|
105
|
110
|
<if test="airPressure != null">#{airPressure},</if>
|
|
@@ -119,6 +124,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
119
|
124
|
<if test="weather != null">weather = #{weather},</if>
|
120
|
125
|
<if test="position != null">position = #{position},</if>
|
121
|
126
|
<if test="heightType != null">height_type = #{heightType},</if>
|
|
127
|
+ <if test="height != null">height = #{height},</if>
|
122
|
128
|
<if test="dryTemperature != null">dry_temperature = #{dryTemperature},</if>
|
123
|
129
|
<if test="wetTemperature != null">wet_temperature = #{wetTemperature},</if>
|
124
|
130
|
<if test="airPressure != null">air_pressure = #{airPressure},</if>
|