bugfix:目录订阅收到更新事件时,sql字段update_time为空导致的报错
This commit is contained in:
parent
f4f3e60a6b
commit
8bd2f47c9a
@ -243,6 +243,10 @@ public class DeviceChannelServiceImpl implements IDeviceChannelService {
|
||||
|
||||
@Override
|
||||
public void batchUpdateChannel(List<DeviceChannel> channels) {
|
||||
String now = DateUtil.getNow();
|
||||
for (DeviceChannel channel : channels) {
|
||||
channel.setUpdateTime(now);
|
||||
}
|
||||
channelMapper.batchUpdate(channels);
|
||||
for (DeviceChannel channel : channels) {
|
||||
if (channel.getParentId() != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user