调整代码
This commit is contained in:
parent
921021625d
commit
022ecc2c0a
@ -23,7 +23,7 @@ public class TestDemo {
|
|||||||
public static String ry_net_library_name = "netmanager";
|
public static String ry_net_library_name = "netmanager";
|
||||||
|
|
||||||
public void execute() {
|
public void execute() {
|
||||||
NetLib instance = (NetLib) Native.loadLibrary(PlatUtils.sdk_plat_getLoadLibrary("", ry_net_library_name), NetLib.class);
|
NetLib instance = (NetLib) Native.loadLibrary(PlatUtils.sdk_plat_getLoadLibrary("D:\\develop\\java_libs\\net_manager_libs\\", ry_net_library_name), NetLib.class);
|
||||||
instance.Net_Init(null, null);
|
instance.Net_Init(null, null);
|
||||||
|
|
||||||
Scanner sc = new Scanner(System.in);
|
Scanner sc = new Scanner(System.in);
|
||||||
|
@ -28,6 +28,12 @@ public class SmartGateDTO implements Serializable {
|
|||||||
private String smartGateSummary;
|
private String smartGateSummary;
|
||||||
@ApiModelProperty(name = "smartGateIpAddress", value = "ip地址")
|
@ApiModelProperty(name = "smartGateIpAddress", value = "ip地址")
|
||||||
private String smartGateIpAddress;
|
private String smartGateIpAddress;
|
||||||
|
@ApiModelProperty(name = "smartGatePort", value = "端口")
|
||||||
|
private String smartGatePort;
|
||||||
|
@ApiModelProperty(name = "smartGateUsername", value = "用户名")
|
||||||
|
private String smartGateUsername;
|
||||||
|
@ApiModelProperty(name = "smartGatePassword", value = "密码")
|
||||||
|
private String smartGatePassword;
|
||||||
@ApiModelProperty(name = "gmtCreate", value = "创建时间")
|
@ApiModelProperty(name = "gmtCreate", value = "创建时间")
|
||||||
private String gmtCreate;
|
private String gmtCreate;
|
||||||
@ApiModelProperty(name = "onlineState", value = "在线状态")
|
@ApiModelProperty(name = "onlineState", value = "在线状态")
|
||||||
@ -75,6 +81,30 @@ public class SmartGateDTO implements Serializable {
|
|||||||
this.smartGateIpAddress = smartGateIpAddress;
|
this.smartGateIpAddress = smartGateIpAddress;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getSmartGatePort() {
|
||||||
|
return smartGatePort == null ? "" : smartGatePort.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSmartGatePort(String smartGatePort) {
|
||||||
|
this.smartGatePort = smartGatePort;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSmartGateUsername() {
|
||||||
|
return smartGateUsername == null ? "" : smartGateUsername.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSmartGateUsername(String smartGateUsername) {
|
||||||
|
this.smartGateUsername = smartGateUsername;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSmartGatePassword() {
|
||||||
|
return smartGatePassword == null ? "" : smartGatePassword.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSmartGatePassword(String smartGatePassword) {
|
||||||
|
this.smartGatePassword = smartGatePassword;
|
||||||
|
}
|
||||||
|
|
||||||
public String getGmtCreate() {
|
public String getGmtCreate() {
|
||||||
return gmtCreate == null ? "" : gmtCreate.trim();
|
return gmtCreate == null ? "" : gmtCreate.trim();
|
||||||
}
|
}
|
||||||
@ -112,6 +142,12 @@ public class SmartGateDTO implements Serializable {
|
|||||||
.append(smartGateSummary).append('\"');
|
.append(smartGateSummary).append('\"');
|
||||||
sb.append(",\"smartGateIpAddress\":\"")
|
sb.append(",\"smartGateIpAddress\":\"")
|
||||||
.append(smartGateIpAddress).append('\"');
|
.append(smartGateIpAddress).append('\"');
|
||||||
|
sb.append(",\"smartGatePort\":\"")
|
||||||
|
.append(smartGatePort).append('\"');
|
||||||
|
sb.append(",\"smartGateUsername\":\"")
|
||||||
|
.append(smartGateUsername).append('\"');
|
||||||
|
sb.append(",\"smartGatePassword\":\"")
|
||||||
|
.append(smartGatePassword).append('\"');
|
||||||
sb.append(",\"gmtCreate\":\"")
|
sb.append(",\"gmtCreate\":\"")
|
||||||
.append(gmtCreate).append('\"');
|
.append(gmtCreate).append('\"');
|
||||||
sb.append(",\"onlineState\":")
|
sb.append(",\"onlineState\":")
|
||||||
|
@ -28,6 +28,12 @@ public class SmartGateVO {
|
|||||||
@ApiModelProperty(name = "smartGateIpAddress", value = "ip地址")
|
@ApiModelProperty(name = "smartGateIpAddress", value = "ip地址")
|
||||||
@CheckEmptyAnnotation(name = "ip地址")
|
@CheckEmptyAnnotation(name = "ip地址")
|
||||||
private String smartGateIpAddress;
|
private String smartGateIpAddress;
|
||||||
|
@ApiModelProperty(name = "smartGatePort", value = "端口")
|
||||||
|
private String smartGatePort;
|
||||||
|
@ApiModelProperty(name = "smartGateUsername", value = "用户名")
|
||||||
|
private String smartGateUsername;
|
||||||
|
@ApiModelProperty(name = "smartGatePassword", value = "密码")
|
||||||
|
private String smartGatePassword;
|
||||||
|
|
||||||
public String getSmartGateSerialNo() {
|
public String getSmartGateSerialNo() {
|
||||||
return smartGateSerialNo == null ? "" : smartGateSerialNo.trim();
|
return smartGateSerialNo == null ? "" : smartGateSerialNo.trim();
|
||||||
@ -61,6 +67,30 @@ public class SmartGateVO {
|
|||||||
this.smartGateIpAddress = smartGateIpAddress;
|
this.smartGateIpAddress = smartGateIpAddress;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getSmartGatePort() {
|
||||||
|
return smartGatePort == null ? "" : smartGatePort.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSmartGatePort(String smartGatePort) {
|
||||||
|
this.smartGatePort = smartGatePort;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSmartGateUsername() {
|
||||||
|
return smartGateUsername == null ? "" : smartGateUsername.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSmartGateUsername(String smartGateUsername) {
|
||||||
|
this.smartGateUsername = smartGateUsername;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSmartGatePassword() {
|
||||||
|
return smartGatePassword == null ? "" : smartGatePassword.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSmartGatePassword(String smartGatePassword) {
|
||||||
|
this.smartGatePassword = smartGatePassword;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
final StringBuilder sb = new StringBuilder("{");
|
final StringBuilder sb = new StringBuilder("{");
|
||||||
@ -72,6 +102,12 @@ public class SmartGateVO {
|
|||||||
.append(smartGateSummary).append('\"');
|
.append(smartGateSummary).append('\"');
|
||||||
sb.append(",\"smartGateIpAddress\":\"")
|
sb.append(",\"smartGateIpAddress\":\"")
|
||||||
.append(smartGateIpAddress).append('\"');
|
.append(smartGateIpAddress).append('\"');
|
||||||
|
sb.append(",\"smartGatePort\":\"")
|
||||||
|
.append(smartGatePort).append('\"');
|
||||||
|
sb.append(",\"smartGateUsername\":\"")
|
||||||
|
.append(smartGateUsername).append('\"');
|
||||||
|
sb.append(",\"smartGatePassword\":\"")
|
||||||
|
.append(smartGatePassword).append('\"');
|
||||||
sb.append('}');
|
sb.append('}');
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
@ -68,7 +68,7 @@ public class PlatUtils {
|
|||||||
String strRootPath = configPath.replace("\\", "/");
|
String strRootPath = configPath.replace("\\", "/");
|
||||||
FileInputStream inputStream = null;
|
FileInputStream inputStream = null;
|
||||||
try {
|
try {
|
||||||
inputStream = new FileInputStream(configPath + "/config.properties");
|
inputStream = new FileInputStream(strRootPath + "/config.properties");
|
||||||
properties.load(inputStream);
|
properties.load(inputStream);
|
||||||
} catch (FileNotFoundException e) {
|
} catch (FileNotFoundException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -113,7 +113,7 @@ public class PlatUtils {
|
|||||||
strLibraryName = "lib" + strLibrary + ".so";
|
strLibraryName = "lib" + strLibrary + ".so";
|
||||||
}
|
}
|
||||||
|
|
||||||
String strResult = strLoadLibraryDir + strLibraryName;
|
String strResult = configPath + strLoadLibraryDir + strLibraryName;
|
||||||
System.out.println(strResult);
|
System.out.println(strResult);
|
||||||
return strResult;
|
return strResult;
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,9 @@
|
|||||||
<result column="smartgate_name" property="smartGateName"/>
|
<result column="smartgate_name" property="smartGateName"/>
|
||||||
<result column="smartgate_summary" property="smartGateSummary"/>
|
<result column="smartgate_summary" property="smartGateSummary"/>
|
||||||
<result column="smartgate_ip_address" property="smartGateIpAddress"/>
|
<result column="smartgate_ip_address" property="smartGateIpAddress"/>
|
||||||
|
<result column="smartgate_port" property="smartGatePort"/>
|
||||||
|
<result column="smartgate_username" property="smartGateUsername"/>
|
||||||
|
<result column="smartgate_password" property="smartGatePassword"/>
|
||||||
<result column="gmt_create" property="gmtCreate"/>
|
<result column="gmt_create" property="gmtCreate"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
@ -21,6 +24,9 @@
|
|||||||
smartgate_name,
|
smartgate_name,
|
||||||
smartgate_summary,
|
smartgate_summary,
|
||||||
smartgate_ip_address,
|
smartgate_ip_address,
|
||||||
|
smartgate_port,
|
||||||
|
smartgate_username,
|
||||||
|
smartgate_password,
|
||||||
creator,
|
creator,
|
||||||
gmt_create,
|
gmt_create,
|
||||||
modifier,
|
modifier,
|
||||||
@ -32,6 +38,9 @@
|
|||||||
#{smartGateName},
|
#{smartGateName},
|
||||||
#{smartGateSummary},
|
#{smartGateSummary},
|
||||||
#{smartGateIpAddress},
|
#{smartGateIpAddress},
|
||||||
|
#{smartGatePort},
|
||||||
|
#{smartGateUsername},
|
||||||
|
#{smartGatePassword},
|
||||||
#{creator},
|
#{creator},
|
||||||
#{gmtCreate},
|
#{gmtCreate},
|
||||||
#{modifier},
|
#{modifier},
|
||||||
@ -82,6 +91,15 @@
|
|||||||
</if>
|
</if>
|
||||||
<if test="smartGateIpAddress != null and smartGateIpAddress != ''">
|
<if test="smartGateIpAddress != null and smartGateIpAddress != ''">
|
||||||
smartgate_ip_address = #{smartGateIpAddress},
|
smartgate_ip_address = #{smartGateIpAddress},
|
||||||
|
</if>
|
||||||
|
<if test="smartGatePort != null and smartGatePort != ''">
|
||||||
|
smartgate_port = #{smartGatePort},
|
||||||
|
</if>
|
||||||
|
<if test="smartGateUsername != null">
|
||||||
|
smartgate_username = #{smartGateUsername},
|
||||||
|
</if>
|
||||||
|
<if test="smartGatePassword != null">
|
||||||
|
smartgate_password = #{smartGatePassword},
|
||||||
</if>
|
</if>
|
||||||
modifier = #{modifier},
|
modifier = #{modifier},
|
||||||
gmt_modified = #{gmtModified}
|
gmt_modified = #{gmtModified}
|
||||||
@ -97,6 +115,9 @@
|
|||||||
smartgate_name,
|
smartgate_name,
|
||||||
smartgate_summary,
|
smartgate_summary,
|
||||||
smartgate_ip_address,
|
smartgate_ip_address,
|
||||||
|
smartgate_port,
|
||||||
|
smartgate_username,
|
||||||
|
smartgate_password,
|
||||||
LEFT(gmt_create, 19) gmt_create
|
LEFT(gmt_create, 19) gmt_create
|
||||||
FROM
|
FROM
|
||||||
hardware_smartgate
|
hardware_smartgate
|
||||||
@ -120,6 +141,7 @@
|
|||||||
smartgate_name,
|
smartgate_name,
|
||||||
smartgate_summary,
|
smartgate_summary,
|
||||||
smartgate_ip_address,
|
smartgate_ip_address,
|
||||||
|
smartgate_port,
|
||||||
LEFT(gmt_create, 19) gmt_create
|
LEFT(gmt_create, 19) gmt_create
|
||||||
FROM
|
FROM
|
||||||
hardware_smartgate
|
hardware_smartgate
|
||||||
|
@ -141,6 +141,15 @@
|
|||||||
return rowData;
|
return rowData;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{field: 'smartGatePort', width: 200, title: '设备端口', align:'center',
|
||||||
|
templet: function(row) {
|
||||||
|
var rowData = row[this.field];
|
||||||
|
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
|
||||||
|
return '-';
|
||||||
|
}
|
||||||
|
return rowData;
|
||||||
|
}
|
||||||
|
},
|
||||||
{field: 'onlineState', width: 100, title: '在线状态', align:'center',
|
{field: 'onlineState', width: 100, title: '在线状态', align:'center',
|
||||||
templet: function(row) {
|
templet: function(row) {
|
||||||
var rowData = row[this.field];
|
var rowData = row[this.field];
|
||||||
|
@ -45,6 +45,24 @@
|
|||||||
<input type="text" id="smartGateIpAddress" name="smartGateIpAddress" class="layui-input" value="" placeholder="请输入设备IP" lay-verify="required">
|
<input type="text" id="smartGateIpAddress" name="smartGateIpAddress" class="layui-input" value="" placeholder="请输入设备IP" lay-verify="required">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="layui-form-item">
|
||||||
|
<label class="layui-form-label">设备端口</label>
|
||||||
|
<div class="layui-input-block">
|
||||||
|
<input type="text" id="smartGatePort" name="smartGatePort" class="layui-input" value="" placeholder="请输入设备端口" lay-verify="required">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-form-item">
|
||||||
|
<label class="layui-form-label">设备用户名</label>
|
||||||
|
<div class="layui-input-block">
|
||||||
|
<input type="text" id="smartGateUsername" name="smartGateUsername" class="layui-input" value="" placeholder="请输入设备用户名" lay-verify="required">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-form-item">
|
||||||
|
<label class="layui-form-label">设备密码</label>
|
||||||
|
<div class="layui-input-block">
|
||||||
|
<input type="text" id="smartGatePassword" name="smartGatePassword" class="layui-input" value="" placeholder="请输入设备密码" lay-verify="required">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="layui-form-item layui-layout-admin">
|
<div class="layui-form-item layui-layout-admin">
|
||||||
<div class="layui-input-block">
|
<div class="layui-input-block">
|
||||||
<div class="layui-footer" style="left: 0;">
|
<div class="layui-footer" style="left: 0;">
|
||||||
|
@ -45,6 +45,24 @@
|
|||||||
<input type="text" id="smartGateIpAddress" name="smartGateIpAddress" class="layui-input" value="" placeholder="请输入设备IP" lay-verify="required">
|
<input type="text" id="smartGateIpAddress" name="smartGateIpAddress" class="layui-input" value="" placeholder="请输入设备IP" lay-verify="required">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="layui-form-item">
|
||||||
|
<label class="layui-form-label">设备端口</label>
|
||||||
|
<div class="layui-input-block">
|
||||||
|
<input type="text" id="smartGatePort" name="smartGatePort" class="layui-input" value="" placeholder="请输入设备端口" lay-verify="required">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-form-item">
|
||||||
|
<label class="layui-form-label">设备用户名</label>
|
||||||
|
<div class="layui-input-block">
|
||||||
|
<input type="text" id="smartGateUsername" name="smartGateUsername" class="layui-input" value="" placeholder="请输入设备用户名" lay-verify="required">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-form-item">
|
||||||
|
<label class="layui-form-label">设备密码</label>
|
||||||
|
<div class="layui-input-block">
|
||||||
|
<input type="text" id="smartGatePassword" name="smartGatePassword" class="layui-input" value="" placeholder="请输入设备密码" lay-verify="required">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="layui-form-item layui-layout-admin">
|
<div class="layui-form-item layui-layout-admin">
|
||||||
<div class="layui-input-block">
|
<div class="layui-input-block">
|
||||||
<div class="layui-footer" style="left: 0;">
|
<div class="layui-footer" style="left: 0;">
|
||||||
|
Loading…
Reference in New Issue
Block a user