|
|
@@ -58,9 +58,11 @@ public class SyncFosterwxStationEdit {
|
|
|
if (fosterwxStation.getId().equals(0)) {
|
|
|
continue;
|
|
|
}
|
|
|
+ FosterwxStation save = new FosterwxStation();
|
|
|
+ save.setUpdateAt(LocalDateTime.now());
|
|
|
+ save.setLoginPassword(fosterwxStation.getLoginPassword());
|
|
|
//.更新
|
|
|
- fosterwxStation.setUpdateAt(LocalDateTime.now());
|
|
|
- fosterwxStationService.update(fosterwxStation, new QueryWrapper<FosterwxStation>().eq("id", fosterwxStation.getId()));
|
|
|
+ fosterwxStationService.update(save, new QueryWrapper<FosterwxStation>().eq("id", fosterwxStation.getId()));
|
|
|
//.立刻更新账号REDIS
|
|
|
FosterwxStation stationInfo = fosterwxStationService.getOne(new QueryWrapper<FosterwxStation>().eq("id", fosterwxStation.getId()));
|
|
|
stringRedisTemplate.opsForHash().put(RedisKey.PanWxFosterStationInfo,fosterwxStation.getId().toString(),JSONObject.toJSONString(stationInfo));
|