`id`,`tenant_id`,`parent_tenant_id`,`create_time`,`update_time`,`is_del`,`name`,`type`,`rate`,`physics_type`,`shop_type`,`has_fee`
where 1=1
and `id` = #{id}
and `tenant_id` = #{tenantId}
and `parent_tenant_id` = #{parentTenantId}
and `is_del` = #{isDel}and `type` = #{type}and `physics_type` = #{physicsType}and `shop_type` = #{shopType}and name like concat('%', #{name},'%')or name like concat('%', #{orName},'%')and `physics_type` in (1,2) and `has_fee` = #{hasFee}
and physics_type in
#{ptidItem}
and id in
#{idItem}
order by ${sortColumns}
update wx_energy_meter set is_del = #{isDel} where id = #{id} and `tenant_id` = #{tenantId}