|
...
|
...
|
@@ -38,46 +38,47 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
LEFT JOIN `sys_user` u ON u.user_id = a.sys_user_id
|
|
|
|
<where>
|
|
|
|
<if test="create_by !=null and create_by != ''">
|
|
|
|
and create_by = #{create_by}
|
|
|
|
and a.create_by = #{create_by}
|
|
|
|
</if>
|
|
|
|
<if test="data_type !=null and data_type != ''">
|
|
|
|
and data_type = #{data_type}
|
|
|
|
and a.data_type = #{data_type}
|
|
|
|
</if>
|
|
|
|
<if test="identifier !=null and identifier != ''">
|
|
|
|
and identifier = #{identifier}
|
|
|
|
and a.identifier = #{identifier}
|
|
|
|
</if>
|
|
|
|
<if test="is_save_log !=null and is_save_log != ''">
|
|
|
|
and is_save_log = #{is_save_log}
|
|
|
|
and a.is_save_log = #{is_save_log}
|
|
|
|
</if>
|
|
|
|
<if test="is_monitor !=null and is_monitor != ''">
|
|
|
|
and is_monitor = #{is_monitor}
|
|
|
|
and a.is_monitor = #{is_monitor}
|
|
|
|
</if>
|
|
|
|
<if test="model_id !=null and model_id != ''">
|
|
|
|
and model_id = #{model_id}
|
|
|
|
and a.model_id = #{model_id}
|
|
|
|
</if>
|
|
|
|
<if test="model_name !=null and model_name != ''">
|
|
|
|
and model_name = #{model_name}
|
|
|
|
and a.model_name = #{model_name}
|
|
|
|
</if>
|
|
|
|
<if test="type !=null and type != ''">
|
|
|
|
and `type` = #{type}
|
|
|
|
</if>
|
|
|
|
<if test="product_id !=null and product_id != ''">
|
|
|
|
and product_id = #{product_id}
|
|
|
|
and a.product_id = #{product_id}
|
|
|
|
</if>
|
|
|
|
<if test="mqtt_username !=null and mqtt_username != ''">
|
|
|
|
and mqtt_username = #{mqtt_username}
|
|
|
|
and a.mqtt_username = #{mqtt_username}
|
|
|
|
</if>
|
|
|
|
<if test="ascription !=null and ascription != ''">
|
|
|
|
and ascription = #{ascription}
|
|
|
|
and a.ascription = #{ascription}
|
|
|
|
</if>
|
|
|
|
<if test="sys_user_id !=null and sys_user_id != ''">
|
|
|
|
and sys_user_id = #{sys_user_id}
|
|
|
|
and a.sys_user_id = #{sys_user_id}
|
|
|
|
</if>
|
|
|
|
<if test="params.dataScope !=null and params.dataScope!=''">
|
|
|
|
<if test="params!=null and params.dataScope !=null and params.dataScope!=''">
|
|
|
|
<!-- 数据范围过滤 -->
|
|
|
|
${params.dataScope}
|
|
|
|
</if>
|
|
|
|
</where>
|
|
|
|
order by a.create_time desc
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<select id="selectIotThingsModelListByIds" parameterType="Integer" resultMap="IotThingsModelResult">
|
...
|
...
|
|