Merge pull request #1140 from shuxiaoyuan/fix-update-time
bugfix:目录订阅收到更新事件时,sql字段update_time为空导致的报错pull/1209/head
commit
9f7dc295cf
|
@ -243,6 +243,10 @@ public class DeviceChannelServiceImpl implements IDeviceChannelService {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void batchUpdateChannel(List<DeviceChannel> channels) {
|
public void batchUpdateChannel(List<DeviceChannel> channels) {
|
||||||
|
String now = DateUtil.getNow();
|
||||||
|
for (DeviceChannel channel : channels) {
|
||||||
|
channel.setUpdateTime(now);
|
||||||
|
}
|
||||||
channelMapper.batchUpdate(channels);
|
channelMapper.batchUpdate(channels);
|
||||||
for (DeviceChannel channel : channels) {
|
for (DeviceChannel channel : channels) {
|
||||||
if (channel.getParentId() != null) {
|
if (channel.getParentId() != null) {
|
||||||
|
|
Loading…
Reference in New Issue