修复DeviceChannelMapper的存储错误
parent
df11956c3c
commit
eb6b6529cd
|
@ -1,35 +0,0 @@
|
|||
package com.genersoft.iot.vmp.conf;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.boot.CommandLineRunner;
|
||||
import org.springframework.core.annotation.Order;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
|
||||
/**
|
||||
* 对配置文件进行校验
|
||||
*/
|
||||
@Component
|
||||
@Order(value=2)
|
||||
public class ApplicationCheckRunner implements CommandLineRunner {
|
||||
|
||||
private Logger logger = LoggerFactory.getLogger("ApplicationCheckRunner");
|
||||
|
||||
@Autowired
|
||||
private MediaConfig mediaConfig;
|
||||
|
||||
@Autowired
|
||||
private SipConfig sipConfig;
|
||||
|
||||
@Override
|
||||
public void run(String... args) throws Exception {
|
||||
if (sipConfig.getSipIp().equals("localhost") || sipConfig.getSipIp().equals("127.0.0.1")) {
|
||||
logger.error("sip.ip不能使用 {} ,请使用类似192.168.1.44这样的来自网卡的IP!!!", sipConfig.getSipIp() );
|
||||
System.exit(1);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -19,7 +19,7 @@ public interface DeviceChannelMapper {
|
|||
"ipAddress, port, password, PTZType, status, streamId, longitude, latitude) " +
|
||||
"VALUES ('${channelId}', '${deviceId}', '${name}', '${manufacture}', '${model}', '${owner}', '${civilCode}', '${block}'," +
|
||||
"'${address}', ${parental}, '${parentId}', ${safetyWay}, ${registerWay}, '${certNum}', ${certifiable}, ${errCode}, '${secrecy}', " +
|
||||
"'${ipAddress}', ${port}, '${password}', ${PTZType}, ${status}, '${streamId}'), ${longitude}, ${latitude}")
|
||||
"'${ipAddress}', ${port}, '${password}', ${PTZType}, ${status}, '${streamId}', ${longitude}, ${latitude})")
|
||||
int add(DeviceChannel channel);
|
||||
|
||||
@Update(value = {" <script>" +
|
||||
|
|
Loading…
Reference in New Issue