<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('alarmDevice') or colPickMode == 1 and data.containsKey('alarmDevice')))">
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('alarmDevice') or colPickMode == 1 and data.containsKey('alarmDevice')))">
a.alarmDevice,
a.alarmDevice,
</if>
</if>
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('siteId') or colPickMode == 1 and data.containsKey('siteId')))">
a.siteId,
</if>
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('alarmType') or colPickMode == 1 and data.containsKey('alarmType')))">
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('alarmType') or colPickMode == 1 and data.containsKey('alarmType')))">
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('traceID') or colPickMode == 1 and data.containsKey('traceID')))">
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('traceID') or colPickMode == 1 and data.containsKey('traceID')))">
a.traceID,
a.traceID,
</if>
</if>
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('siteId') or colPickMode == 1 and data.containsKey('siteId')))">
a.siteId,
</if>
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('deviceId') or colPickMode == 1 and data.containsKey('deviceId')))">
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('deviceId') or colPickMode == 1 and data.containsKey('deviceId')))">
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('deviceCode') or colPickMode == 1 and data.containsKey('deviceCode')))">
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('deviceCode') or colPickMode == 1 and data.containsKey('deviceCode')))">
a.deviceCode,
a.deviceCode,
</if>
</if>
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('deviceSN') or colPickMode == 1 and data.containsKey('deviceSN')))">
a.deviceSN,
</if>
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('deviceMac') or colPickMode == 1 and data.containsKey('deviceMac')))">
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('deviceMac') or colPickMode == 1 and data.containsKey('deviceMac')))">
a.deviceMac,
a.deviceMac,
</if>
</if>
...
@@ -170,6 +174,9 @@
...
@@ -170,6 +174,9 @@
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('deleted') or colPickMode == 1 and data.containsKey('deleted')))">
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('deleted') or colPickMode == 1 and data.containsKey('deleted')))">
a.deleted,
a.deleted,
</if>
</if>
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('deviceVersion') or colPickMode == 1 and data.containsKey('deviceVersion')))">
a.deviceVersion,
</if>
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('source') or colPickMode == 1 and data.containsKey('source')))">
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('source') or colPickMode == 1 and data.containsKey('source')))">
a.source,
a.source,
</if>
</if>
...
@@ -185,26 +192,23 @@
...
@@ -185,26 +192,23 @@
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateTime') or colPickMode == 1 and data.containsKey('updateTime')))">
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateTime') or colPickMode == 1 and data.containsKey('updateTime')))">
a.updateTime,
a.updateTime,
</if>
</if>
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('deviceSN') or colPickMode == 1 and data.containsKey('deviceSN')))">
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('id') or colPickMode == 1 and data.containsKey('id')))">
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('id') or colPickMode == 1 and data.containsKey('id')))">
a.id,
a.id,
</if>
</if>
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('siteId') or colPickMode == 1 and data.containsKey('siteId')))">
a.siteId,
</if>
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('deviceTotalCount') or colPickMode == 1 and data.containsKey('deviceTotalCount')))">
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('deviceTotalCount') or colPickMode == 1 and data.containsKey('deviceTotalCount')))">
a.deviceTotalCount,
a.deviceTotalCount,
</if>
</if>
...
@@ -68,6 +74,12 @@
...
@@ -68,6 +74,12 @@
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('deviceStopRatio') or colPickMode == 1 and data.containsKey('deviceStopRatio')))">
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('deviceStopRatio') or colPickMode == 1 and data.containsKey('deviceStopRatio')))">
a.deviceStopRatio,
a.deviceStopRatio,
</if>
</if>
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('deviceUnActiveCount') or colPickMode == 1 and data.containsKey('deviceUnActiveCount')))">
a.deviceUnActiveCount,
</if>
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('deviceUnActiveRatio') or colPickMode == 1 and data.containsKey('deviceUnActiveRatio')))">
a.deviceUnActiveRatio,
</if>
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('alarmTotalCount') or colPickMode == 1 and data.containsKey('alarmTotalCount')))">
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('alarmTotalCount') or colPickMode == 1 and data.containsKey('alarmTotalCount')))">
<iftest="(colPickMode==0 and data.containsKey('deviceUnActiveCountIncrement')) or (colPickMode==1 and !data.containsKey('deviceUnActiveCountIncrement'))">
<iftest="(colPickMode==0 and data.containsKey('deviceUnActiveRatioIncrement')) or (colPickMode==1 and !data.containsKey('deviceUnActiveRatioIncrement'))">
<whentest="(colPickMode==0 and item.containsKey('deviceUnActiveCount')) or (colPickMode==1 and !item.containsKey('deviceUnActiveCount'))">
when a.id=#{item.id} then #{item.deviceUnActiveCount}
</when>
<whentest="(colPickMode==0 and item.containsKey('deviceUnActiveCountIncrement')) or (colPickMode==1 and !item.containsKey('deviceUnActiveCountIncrement'))">
when a.id=#{item.id} then ifnull(a.deviceUnActiveCount,0) + #{item.deviceUnActiveCountIncrement}
<whentest="(colPickMode==0 and item.containsKey('deviceUnActiveRatio')) or (colPickMode==1 and !item.containsKey('deviceUnActiveRatio'))">
when a.id=#{item.id} then #{item.deviceUnActiveRatio}
</when>
<whentest="(colPickMode==0 and item.containsKey('deviceUnActiveRatioIncrement')) or (colPickMode==1 and !item.containsKey('deviceUnActiveRatioIncrement'))">
when a.id=#{item.id} then ifnull(a.deviceUnActiveRatio,0) + #{item.deviceUnActiveRatioIncrement}
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('id') or colPickMode == 1 and data.containsKey('id')))">
a.id,
</if>
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('productId') or colPickMode == 1 and data.containsKey('productId')))">
a.productId,
</if>
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('productCode') or colPickMode == 1 and data.containsKey('productCode')))">
a.productCode,
</if>
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('productName') or colPickMode == 1 and data.containsKey('productName')))">
a.productName,
</if>
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('filePath') or colPickMode == 1 and data.containsKey('filePath')))">
a.filePath,
</if>
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('version') or colPickMode == 1 and data.containsKey('version')))">
a.version,
</if>
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('remark') or colPickMode == 1 and data.containsKey('remark')))">
a.remark,
</if>
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createTime') or colPickMode == 1 and data.containsKey('createTime')))">
a.createTime,
</if>
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateUserId') or colPickMode == 1 and data.containsKey('updateUserId')))">
a.updateUserId,
</if>
<iftest="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateTime') or colPickMode == 1 and data.containsKey('updateTime')))">