|
@@ -67,6 +67,9 @@
|
|
<if test="merchantId != null and merchantId !=''">
|
|
<if test="merchantId != null and merchantId !=''">
|
|
and a.merchant_id= #{merchantId} and a.type > '2'
|
|
and a.merchant_id= #{merchantId} and a.type > '2'
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="adminIds != null and adminIds !=''">
|
|
|
|
+ and a.admin_id in #{adminIds}
|
|
|
|
+ </if>
|
|
<if test="equipmentId != null and equipmentId !=''">
|
|
<if test="equipmentId != null and equipmentId !=''">
|
|
<if test="ifForeign != null and ifForeign ==0"> -- 国内用户
|
|
<if test="ifForeign != null and ifForeign ==0"> -- 国内用户
|
|
and a.equipment_id= #{equipmentId} -- 设备id
|
|
and a.equipment_id= #{equipmentId} -- 设备id
|
|
@@ -122,6 +125,9 @@
|
|
<if test="merchantId != null and merchantId !=''">
|
|
<if test="merchantId != null and merchantId !=''">
|
|
and a.merchant_id= #{merchantId} and a.type > '2'
|
|
and a.merchant_id= #{merchantId} and a.type > '2'
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="adminIds != null and adminIds !=''">
|
|
|
|
+ and a.admin_id in #{adminIds}
|
|
|
|
+ </if>
|
|
<if test="equipmentId != null and equipmentId !=''">
|
|
<if test="equipmentId != null and equipmentId !=''">
|
|
<if test="ifForeign != null and ifForeign ==0"> -- 国内用户
|
|
<if test="ifForeign != null and ifForeign ==0"> -- 国内用户
|
|
and a.equipment_id= #{equipmentId} -- 设备id
|
|
and a.equipment_id= #{equipmentId} -- 设备id
|
|
@@ -166,6 +172,9 @@
|
|
<if test="merchantId != null and merchantId !=''">
|
|
<if test="merchantId != null and merchantId !=''">
|
|
and a.merchant_id= #{merchantId} and a.type > '2'
|
|
and a.merchant_id= #{merchantId} and a.type > '2'
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="adminIds != null and adminIds !=''">
|
|
|
|
+ and a.admin_id in #{adminIds}
|
|
|
|
+ </if>
|
|
<if test="equipmentId != null and equipmentId !=''">
|
|
<if test="equipmentId != null and equipmentId !=''">
|
|
<if test="ifForeign != null and ifForeign ==0"> -- 国内用户
|
|
<if test="ifForeign != null and ifForeign ==0"> -- 国内用户
|
|
and a.equipment_id= #{equipmentId} -- 设备id
|
|
and a.equipment_id= #{equipmentId} -- 设备id
|
|
@@ -222,6 +231,9 @@
|
|
<if test="merchantId != null and merchantId !=''">
|
|
<if test="merchantId != null and merchantId !=''">
|
|
and a.merchant_id= #{merchantId} and a.type > '2'
|
|
and a.merchant_id= #{merchantId} and a.type > '2'
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="adminIds != null and adminIds !=''">
|
|
|
|
+ and a.admin_id in #{adminIds}
|
|
|
|
+ </if>
|
|
<if test="equipmentId != null and equipmentId !=''">
|
|
<if test="equipmentId != null and equipmentId !=''">
|
|
<if test="ifForeign != null and ifForeign ==0"> -- 国内用户
|
|
<if test="ifForeign != null and ifForeign ==0"> -- 国内用户
|
|
and a.equipment_id= #{equipmentId} -- 设备id
|
|
and a.equipment_id= #{equipmentId} -- 设备id
|