|
@@ -87,8 +87,28 @@ public interface AlarmTsMapper extends BaseMapper<AlarmTs> {
|
|
|
|
|
|
);
|
|
|
|
|
|
+ @Update("ALTER table ${tbName} set TAG " +
|
|
|
+ "alarmid=#{alarmid}, alarmtype=#{alarmtype}," +
|
|
|
+ "characteristic=#{characteristic}, components=#{components},description=#{description}, deviceid=#{deviceid}, devicename=#{devicename}," +
|
|
|
+ "devicetype=#{devicetype}, enabled=#{enabled}, lineid=#{lineid}, linename=#{linename},modelId= #{modelId}, projectid=#{projectid}," +
|
|
|
+ "projectname=#{projectname}, rank=#{rank}, resettable=#{resettable}, stationid=#{stationid}, stationname=#{stationname}, subcomponents=#{subcomponents}," +
|
|
|
+ "suffix=#{suffix}, tagid= #{tagid}, triggertype=#{triggertype}, uniformcode=#{uniformcode},name=#{name}, nemCode=#{nemCode}, faultCause=#{faultCause}, resolvent=#{resolvent},faultType=#{faultType},aname=#{aname} "
|
|
|
+ )
|
|
|
+ int updateTable(@Param("tbName") String tbName, @Param("alarmid") String alarmid, @Param("alarmtype") String alarmtype,
|
|
|
+ @Param("characteristic") String characteristic, @Param("components") String components,
|
|
|
+ @Param("description") String description,
|
|
|
+ @Param("deviceid") String deviceid, @Param("devicename") String devicename,
|
|
|
+ @Param("devicetype") String devicetype, @Param("enabled") Boolean enabled,
|
|
|
+ @Param("lineid") String lineid, @Param("linename") String linename,
|
|
|
+ @Param("modelId") String modelId, @Param("projectid") String projectid,
|
|
|
+ @Param("projectname") String projectname, @Param("rank") Integer rank,
|
|
|
+ @Param("resettable") Boolean resettable, @Param("stationid") String stationid,
|
|
|
+ @Param("stationname") String stationname, @Param("subcomponents") String subcomponents,
|
|
|
+ @Param("suffix") String suffix, @Param("tagid") String tagid,
|
|
|
+ @Param("triggertype") Integer triggertype, @Param("uniformcode") String uniformcode, @Param("superTableName") String superTableName,
|
|
|
+ @Param("name") String name, @Param("nemCode") String nemCode, @Param("faultCause") String faultCause, @Param("resolvent") String resolvent, @Param("faultType") String faultType, @Param("aname") String aname
|
|
|
|
|
|
-
|
|
|
+ );
|
|
|
@Update("create table if not exists ${tbName} using ${superTableName} tags( #{alarmid}, #{alarmtype}," +
|
|
|
"#{characteristic}, #{components}, #{description}, #{deviceid}, #{devicename}," +
|
|
|
"#{devicetype}, #{enabled}, #{lineid}, #{linename}, #{modelId}, #{projectid}," +
|