forked from dyf/fys-Multi-tenant
设备类型管理接口
This commit is contained in:
@ -20,28 +20,6 @@
|
||||
</sql>
|
||||
|
||||
|
||||
<!-- 分页查询设备类型 -->
|
||||
<select id="findAll1" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List"/>
|
||||
from device_type
|
||||
<where>
|
||||
<if test="criteria.typeName != null and criteria.typeName.trim() != ''">
|
||||
and type_name like concat('%', TRIM(#{criteria.typeName}), '%')
|
||||
</if>
|
||||
<if test="criteria.customerId != null and !criteria.customerId.isEmpty()">
|
||||
and customer_id IN
|
||||
<foreach item="item" collection="criteria.customerId" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="criteria.tenantId != null">
|
||||
and tenant_id = #{criteria.tenantId}
|
||||
</if>
|
||||
</where>
|
||||
order by id desc
|
||||
</select>
|
||||
|
||||
<!-- 查询所有设备类型 -->
|
||||
<select id="findAll" resultMap="BaseResultMap">
|
||||
SELECT DISTINCT dt.*
|
||||
|
Reference in New Issue
Block a user