回退更改 并改为LIMIT 1

0205cmt
zhaoyu 2024-10-30 10:43:16 +08:00
parent 52b45f1558
commit 5a81340b6b
2 changed files with 4 additions and 3 deletions

View File

@ -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);

View File

@ -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">