回退更改 并改为LIMIT 1
parent
52b45f1558
commit
5a81340b6b
|
@ -42,11 +42,11 @@ public class SaveAnemometerInfoScheduled {
|
|||
});
|
||||
anemometerList.forEach(anemometer -> {
|
||||
anemometer.put("FLID",UuidUtil.get32UUID());
|
||||
// String ftime = anemometer.getString("FTIME");
|
||||
Date date = new Date();
|
||||
String ftime = anemometer.getString("FTIME");
|
||||
// Date date = new Date();
|
||||
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
try {
|
||||
// Date date = simpleDateFormat.parse(ftime);
|
||||
Date date = simpleDateFormat.parse(ftime);
|
||||
anemometer.put("FTIME",simpleDateFormat.format(date));
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
|
|
|
@ -114,6 +114,7 @@
|
|||
LEFT JOIN bus_anemometer_local al ON f.FNAME = al.FNAME and al.FTIME = ba.FTIME
|
||||
WHERE
|
||||
f.FNAME = #{FNAME}
|
||||
LIMIT 1
|
||||
</select>
|
||||
|
||||
<select id="getFourAnemometerData" parameterType="pd" resultType="pd">
|
||||
|
|
Loading…
Reference in New Issue