|
@@ -10,7 +10,7 @@
|
|
|
<sql id="item">
|
|
|
ti.id
|
|
|
, ti.item_group_id, ti.item_name, ti.item_read_name, ti.item_type, ti.node_index , ti.data_type, ti.upper_limit, ti.lower_limit
|
|
|
- , ti.`describe`, ti.unit,ti.scale ,ti.data_model_id, ti.modbus_config
|
|
|
+ , ti.`describe`, ti.unit,ti.scale ,ti.data_model_id, ti.modbus_config,ti.identifier
|
|
|
</sql>
|
|
|
|
|
|
<insert id="addItemGroup" parameterType="com.example.opc_common.entity.ItemGroup" useGeneratedKeys="true"
|
|
@@ -21,12 +21,12 @@
|
|
|
|
|
|
<insert id="addItem">
|
|
|
insert into t_item (item_group_id, item_name,
|
|
|
- item_read_name, item_type, node_index ,data_type,`describe`, unit,data_model_id, modbus_config)
|
|
|
+ item_read_name, item_type, node_index ,data_type,`describe`, unit,data_model_id, modbus_config,identifier)
|
|
|
VALUES
|
|
|
<foreach collection="itemList" item="item" index="index" separator=",">
|
|
|
(#{itemGroupId},#{item.itemName},#{item.itemReadName},if(#{item.itemType} is null, 1,
|
|
|
#{item.itemType}),#{item.nodeIndex},#{item.dataType},
|
|
|
- #{item.describe},#{item.unit},#{item.dataModelId}, #{item.modbusConfig})
|
|
|
+ #{item.describe},#{item.unit},#{item.dataModelId}, #{item.modbusConfig},#{item.identifier})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
@@ -235,6 +235,7 @@
|
|
|
ti.unit,
|
|
|
ti.data_model_id,
|
|
|
ti.modbus_config,
|
|
|
+ ti.identifier,
|
|
|
tig.data_source_id,
|
|
|
tdm.operation_rule,
|
|
|
tdm.remark as operation_rule_name,
|
|
@@ -459,6 +460,7 @@
|
|
|
ti.unit,
|
|
|
ti.data_model_id,
|
|
|
ti.modbus_config,
|
|
|
+ ti.identifier,
|
|
|
tig.data_source_id,
|
|
|
tdm.operation_rule,
|
|
|
tdm.remark as operation_rule_name,
|