Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
E
energyai_java
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
葛齐林
energyai_java
Commits
faef3f86
Commit
faef3f86
authored
Jun 25, 2021
by
co_dengxiongwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
点位维护增加字段
parent
9dfa7608
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
6 deletions
+20
-6
LiResourcePoints.java
...tform/admin/modules/liresource/bean/LiResourcePoints.java
+8
-2
LiResourcePointsModel.java
...admin/modules/liresource/model/LiResourcePointsModel.java
+6
-2
LiResourcePointsMapper.xml
...in/resources/mapper/liResource/LiResourcePointsMapper.xml
+5
-1
bootstrap.yml
...ice-authorization-server/src/main/resources/bootstrap.yml
+1
-1
No files found.
microservice-admin/src/main/java/com/devplatform/admin/modules/liresource/bean/LiResourcePoints.java
View file @
faef3f86
...
...
@@ -21,6 +21,12 @@ public class LiResourcePoints implements Serializable {
/** 资源点id */
@ApiModelProperty
(
value
=
"资源点id"
,
name
=
"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"
)
private
java
.
lang
.
String
name
;
...
...
@@ -29,10 +35,10 @@ public class LiResourcePoints implements Serializable {
private
Integer
slaveId
;
/** 功能码类型(1:读线圈 2:读离散量输入 3:读保持寄存器 4:读输入寄存器) */
@ApiModelProperty
(
value
=
"功能码类型(1:读线圈 2:读离散量输入 3:读保持寄存器 4:读输入寄存器)"
,
name
=
"functionCodeType"
)
private
Byte
functionCodeType
;
private
Integer
functionCodeType
;
/** 数据类型(1:INTEGER 2:STRING 3:FLOAT 4:DOUBLE) */
@ApiModelProperty
(
value
=
"数据类型(1:INTEGER 2:STRING 3:FLOAT 4:DOUBLE)"
,
name
=
"dataType"
)
private
Byte
dataType
;
private
Integer
dataType
;
/** 寄存器地址 */
@ApiModelProperty
(
value
=
"寄存器地址"
,
name
=
"registerAddress"
)
private
Integer
registerAddress
;
...
...
microservice-admin/src/main/java/com/devplatform/admin/modules/liresource/model/LiResourcePointsModel.java
View file @
faef3f86
...
...
@@ -15,14 +15,18 @@ public class LiResourcePointsModel extends BaseModel {
private
java
.
lang
.
String
id
;
/** 资源点id */
private
java
.
lang
.
String
resourceId
;
/** 点位类型(1查询点位,2控制点位) */
private
Integer
type
;
/** 点位名称 */
private
java
.
lang
.
String
addressIp
;
/** 点位名称 */
private
java
.
lang
.
String
name
;
/** slaveID */
private
Integer
slaveId
;
/** 功能码类型(1:读线圈 2:读离散量输入 3:读保持寄存器 4:读输入寄存器) */
private
Byte
functionCodeType
;
private
Integer
functionCodeType
;
/** 数据类型(1:INTEGER 2:STRING 3:FLOAT 4:DOUBLE) */
private
Byte
dataType
;
private
Integer
dataType
;
/** 寄存器地址 */
private
Integer
registerAddress
;
/** 创建人 */
...
...
microservice-admin/src/main/resources/mapper/liResource/LiResourcePointsMapper.xml
View file @
faef3f86
...
...
@@ -5,6 +5,8 @@
<resultMap
id=
"BaseResultMap"
type=
"com.devplatform.admin.modules.liresource.bean.LiResourcePoints"
>
<result
column=
"id"
property=
"id"
/>
<result
column=
"resource_id"
property=
"resourceId"
/>
<result
column=
"type"
property=
"type"
/>
<result
column=
"address_ip"
property=
"addressIp"
/>
<result
column=
"name"
property=
"name"
/>
<result
column=
"slave_id"
property=
"slaveId"
/>
<result
column=
"function_code_type"
property=
"functionCodeType"
/>
...
...
@@ -24,7 +26,7 @@
<!-- li_resource_points table all fields -->
<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>
<!-- 公共查询条件 -->
...
...
@@ -32,6 +34,8 @@
where t.deleted=0
<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=
"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=
"slaveId!=null "
>
and t.slave_id = #{slaveId}
</if>
<if
test=
"functionCodeType!=null "
>
and t.function_code_type = #{functionCodeType}
</if>
...
...
microservice-authorization-server/src/main/resources/bootstrap.yml
View file @
faef3f86
...
...
@@ -35,7 +35,7 @@ suntray:
jwtSigningKey
:
suntray
clients[0]:
clientId
:
suntray
clientSecret
:
suntray
clientSecret
:
c3VudHJheQ==
clients[1]:
clientId
:
professional
clientSecret
:
professional
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment