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