Commit faef3f86 authored by co_dengxiongwen's avatar co_dengxiongwen

点位维护增加字段

parent 9dfa7608
...@@ -21,6 +21,12 @@ public class LiResourcePoints implements Serializable { ...@@ -21,6 +21,12 @@ public class LiResourcePoints implements Serializable {
/** 资源点id */ /** 资源点id */
@ApiModelProperty(value="资源点id",name="resourceId") @ApiModelProperty(value="资源点id",name="resourceId")
private java.lang.String resourceId; private java.lang.String resourceId;
/** 点位类型(1查询点位,2控制点位) */
@ApiModelProperty(value="点位类型(1查询点位,2控制点位)",name="type")
private Integer type;
/** 点位名称 */
@ApiModelProperty(value="点位名称",name="addressIp")
private java.lang.String addressIp;
/** 点位名称 */ /** 点位名称 */
@ApiModelProperty(value="点位名称",name="name") @ApiModelProperty(value="点位名称",name="name")
private java.lang.String name; private java.lang.String name;
...@@ -29,10 +35,10 @@ public class LiResourcePoints implements Serializable { ...@@ -29,10 +35,10 @@ public class LiResourcePoints implements Serializable {
private Integer slaveId; private Integer slaveId;
/** 功能码类型(1:读线圈 2:读离散量输入 3:读保持寄存器 4:读输入寄存器) */ /** 功能码类型(1:读线圈 2:读离散量输入 3:读保持寄存器 4:读输入寄存器) */
@ApiModelProperty(value="功能码类型(1:读线圈 2:读离散量输入 3:读保持寄存器 4:读输入寄存器)",name="functionCodeType") @ApiModelProperty(value="功能码类型(1:读线圈 2:读离散量输入 3:读保持寄存器 4:读输入寄存器)",name="functionCodeType")
private Byte functionCodeType; private Integer functionCodeType;
/** 数据类型(1:INTEGER 2:STRING 3:FLOAT 4:DOUBLE) */ /** 数据类型(1:INTEGER 2:STRING 3:FLOAT 4:DOUBLE) */
@ApiModelProperty(value="数据类型(1:INTEGER 2:STRING 3:FLOAT 4:DOUBLE)",name="dataType") @ApiModelProperty(value="数据类型(1:INTEGER 2:STRING 3:FLOAT 4:DOUBLE)",name="dataType")
private Byte dataType; private Integer dataType;
/** 寄存器地址 */ /** 寄存器地址 */
@ApiModelProperty(value="寄存器地址",name="registerAddress") @ApiModelProperty(value="寄存器地址",name="registerAddress")
private Integer registerAddress; private Integer registerAddress;
......
...@@ -15,14 +15,18 @@ public class LiResourcePointsModel extends BaseModel { ...@@ -15,14 +15,18 @@ public class LiResourcePointsModel extends BaseModel {
private java.lang.String id; private java.lang.String id;
/** 资源点id */ /** 资源点id */
private java.lang.String resourceId; private java.lang.String resourceId;
/** 点位类型(1查询点位,2控制点位) */
private Integer type;
/** 点位名称 */
private java.lang.String addressIp;
/** 点位名称 */ /** 点位名称 */
private java.lang.String name; private java.lang.String name;
/** slaveID */ /** slaveID */
private Integer slaveId; private Integer slaveId;
/** 功能码类型(1:读线圈 2:读离散量输入 3:读保持寄存器 4:读输入寄存器) */ /** 功能码类型(1:读线圈 2:读离散量输入 3:读保持寄存器 4:读输入寄存器) */
private Byte functionCodeType; private Integer functionCodeType;
/** 数据类型(1:INTEGER 2:STRING 3:FLOAT 4:DOUBLE) */ /** 数据类型(1:INTEGER 2:STRING 3:FLOAT 4:DOUBLE) */
private Byte dataType; private Integer dataType;
/** 寄存器地址 */ /** 寄存器地址 */
private Integer registerAddress; private Integer registerAddress;
/** 创建人 */ /** 创建人 */
......
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
<resultMap id="BaseResultMap" type="com.devplatform.admin.modules.liresource.bean.LiResourcePoints"> <resultMap id="BaseResultMap" type="com.devplatform.admin.modules.liresource.bean.LiResourcePoints">
<result column="id" property="id"/> <result column="id" property="id"/>
<result column="resource_id" property="resourceId"/> <result column="resource_id" property="resourceId"/>
<result column="type" property="type"/>
<result column="address_ip" property="addressIp"/>
<result column="name" property="name"/> <result column="name" property="name"/>
<result column="slave_id" property="slaveId"/> <result column="slave_id" property="slaveId"/>
<result column="function_code_type" property="functionCodeType"/> <result column="function_code_type" property="functionCodeType"/>
...@@ -24,7 +26,7 @@ ...@@ -24,7 +26,7 @@
<!-- li_resource_points table all fields --> <!-- li_resource_points table all fields -->
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id,resource_id,name,slave_id,function_code_type,data_type,register_address,create_user_id,create_time,update_user_id,update_time,deleted,sys_sign,station_id,byx1,byx2,byx3 id,resource_id,type,address_ip,name,slave_id,function_code_type,data_type,register_address,create_user_id,create_time,update_user_id,update_time,deleted,sys_sign,station_id,byx1,byx2,byx3
</sql> </sql>
<!-- 公共查询条件 --> <!-- 公共查询条件 -->
...@@ -32,6 +34,8 @@ ...@@ -32,6 +34,8 @@
where t.deleted=0 where t.deleted=0
<if test="id!=null and id!=''">and t.id = #{id}</if> <if test="id!=null and id!=''">and t.id = #{id}</if>
<if test="resourceId!=null and resourceId!=''">and t.resource_id = #{resourceId}</if> <if test="resourceId!=null and resourceId!=''">and t.resource_id = #{resourceId}</if>
<if test="type!=null ">and t.type = #{type}</if>
<if test="addressIp!=null and addressIp!=''">and t.address_ip = #{addressIp}</if>
<if test="name!=null and name!=''">and t.name = #{name}</if> <if test="name!=null and name!=''">and t.name = #{name}</if>
<if test="slaveId!=null ">and t.slave_id = #{slaveId}</if> <if test="slaveId!=null ">and t.slave_id = #{slaveId}</if>
<if test="functionCodeType!=null ">and t.function_code_type = #{functionCodeType}</if> <if test="functionCodeType!=null ">and t.function_code_type = #{functionCodeType}</if>
......
...@@ -35,7 +35,7 @@ suntray: ...@@ -35,7 +35,7 @@ suntray:
jwtSigningKey: suntray jwtSigningKey: suntray
clients[0]: clients[0]:
clientId: suntray clientId: suntray
clientSecret: suntray clientSecret: c3VudHJheQ==
clients[1]: clients[1]:
clientId: professional clientId: professional
clientSecret: professional clientSecret: professional
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment