|
|
@@ -938,22 +938,24 @@
|
|
|
|
|
|
<select id="getLastOne" resultMap="BaseResultMap">
|
|
|
SELECT
|
|
|
- <include refid="Base_Column_List"/>
|
|
|
+ s.station_name,
|
|
|
+ a.*
|
|
|
FROM
|
|
|
- bus_jcb_glkg
|
|
|
+ bus_jcb_glkg a
|
|
|
+ LEFT JOIN base_station s ON a.station_id = s.station_id
|
|
|
WHERE
|
|
|
- del_flag = '0' and submit_state in ('1','9')
|
|
|
+ a.del_flag = '0' and a.submit_state in ('1','9')
|
|
|
<if test="stationId!=null and stationId!=''">
|
|
|
- and station_id=#{stationId}
|
|
|
+ and a.station_id=#{stationId}
|
|
|
</if>
|
|
|
<if test="pillarCode!=null and pillarCode!=''">
|
|
|
- and pillar_code=#{pillarCode}
|
|
|
+ and a.pillar_code=#{pillarCode}
|
|
|
</if>
|
|
|
<if test="kgh!=null and kgh!=''">
|
|
|
- and kgh=#{kgh}
|
|
|
+ and a.kgh=#{kgh}
|
|
|
</if>
|
|
|
ORDER BY
|
|
|
- update_time DESC
|
|
|
+ a.update_time DESC
|
|
|
LIMIT 1
|
|
|
</select>
|
|
|
|