设备类型关联
This commit is contained in:
parent
622fb1a1e6
commit
b89dea9054
|
|
@ -10,9 +10,13 @@ import java.io.Serializable;
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class DevInfoVo implements Serializable {
|
public class DevInfoVo implements Serializable {
|
||||||
|
/**
|
||||||
|
* 边带id
|
||||||
|
*/
|
||||||
private String bdId;
|
private String bdId;
|
||||||
|
/**
|
||||||
|
* 级联编码
|
||||||
|
*/
|
||||||
private String relType;
|
private String relType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -8,12 +8,12 @@
|
||||||
dev_type, dev_code, dev_name,
|
dev_type, dev_code, dev_name,
|
||||||
dev_status,dev_warn, del_flag,
|
dev_status,dev_warn, del_flag,
|
||||||
dev_err, dev_factory, remark, pro_name,
|
dev_err, dev_factory, remark, pro_name,
|
||||||
pro_code, rel_id,bd_id
|
pro_code, rel_id,bd_id,rel_type
|
||||||
)values
|
)values
|
||||||
(#{deviceType},#{deviceCode},#{deviceName},
|
(#{deviceType},#{deviceCode},#{deviceName},
|
||||||
#{deviceOnlineState},#{deviceAlarmState},0,
|
#{deviceOnlineState},#{deviceAlarmState},0,
|
||||||
#{deviceFailureState},#{deviceFactory},#{remark},#{deviceProjectName},
|
#{deviceFailureState},#{deviceFactory},#{remark},#{deviceProjectName},
|
||||||
#{deviceProjectCode},#{id},#{bdId}
|
#{deviceProjectCode},#{id},#{bdId},#{relType}
|
||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
<insert id="insertAttribute" keyProperty="attributeId" useGeneratedKeys="true">
|
<insert id="insertAttribute" keyProperty="attributeId" useGeneratedKeys="true">
|
||||||
|
|
@ -43,7 +43,7 @@
|
||||||
dev_status= #{deviceOnlineState},dev_warn=#{deviceAlarmState},
|
dev_status= #{deviceOnlineState},dev_warn=#{deviceAlarmState},
|
||||||
dev_err= #{deviceFailureState}, dev_factory=#{deviceFactory}, remark=#{remark},
|
dev_err= #{deviceFailureState}, dev_factory=#{deviceFactory}, remark=#{remark},
|
||||||
pro_name=#{deviceProjectCode},
|
pro_name=#{deviceProjectCode},
|
||||||
pro_code=#{deviceProjectCode}
|
pro_code=#{deviceProjectCode},rel_type=#{relType}
|
||||||
where rel_id=#{id} and bd_id=#{bdId}
|
where rel_id=#{id} and bd_id=#{bdId}
|
||||||
</update>
|
</update>
|
||||||
<!--数据采集同步-->
|
<!--数据采集同步-->
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue