|
|
|
|
@ -46,20 +46,18 @@
|
|
|
|
|
<select id="selectBaseDeviceParamList" parameterType="BaseDeviceParam" resultMap="BaseDeviceParamResult">
|
|
|
|
|
<include refid="selectBaseDeviceParamVo"/>
|
|
|
|
|
<where>
|
|
|
|
|
<if test="paramCode != null and paramCode != ''">and param_code = #{paramCode}</if>
|
|
|
|
|
<if test="paramName != null and paramName != ''">and param_name like concat(concat('%', #{paramName}),
|
|
|
|
|
'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="paramNetwork != null and paramNetwork != ''">and param_network = #{paramNetwork}</if>
|
|
|
|
|
<if test="paramAddress != null and paramAddress != ''">and param_address = #{paramAddress}</if>
|
|
|
|
|
<if test="paramType != null and paramType != ''">and param_type = #{paramType}</if>
|
|
|
|
|
<if test="deviceCode != null and deviceCode != ''">and device_code = #{deviceCode}</if>
|
|
|
|
|
<if test="readFrequency != null ">and read_frequency = #{readFrequency}</if>
|
|
|
|
|
<if test="isFlag != null ">and is_flag = #{isFlag}</if>
|
|
|
|
|
<if test="createdBy != null and createdBy != ''">and created_by = #{createdBy}</if>
|
|
|
|
|
<if test="createdTime != null ">and created_time = #{createdTime}</if>
|
|
|
|
|
<if test="updatedBy != null and updatedBy != ''">and updated_by = #{updatedBy}</if>
|
|
|
|
|
<if test="updatedTime != null ">and updated_time = #{updatedTime}</if>
|
|
|
|
|
<if test="paramCode != null and paramCode != ''">and dp.param_code = #{paramCode}</if>
|
|
|
|
|
<if test="paramName != null and paramName != ''">and dp.param_name like concat(concat('%', #{paramName}), '%')</if>
|
|
|
|
|
<if test="paramNetwork != null and paramNetwork != ''">and dp.param_network = #{paramNetwork}</if>
|
|
|
|
|
<if test="paramAddress != null and paramAddress != ''">and dp.param_address = #{paramAddress}</if>
|
|
|
|
|
<if test="paramType != null and paramType != ''">and dp.param_type = #{paramType}</if>
|
|
|
|
|
<if test="deviceCode != null and deviceCode != ''">and dp.device_code = #{deviceCode}</if>
|
|
|
|
|
<if test="readFrequency != null ">and dp.read_frequency = #{readFrequency}</if>
|
|
|
|
|
<if test="isFlag != null ">and dp.is_flag = #{isFlag}</if>
|
|
|
|
|
<if test="createdBy != null and createdBy != ''">and dp.created_by = #{createdBy}</if>
|
|
|
|
|
<if test="createdTime != null ">and dp.created_time = #{createdTime}</if>
|
|
|
|
|
<if test="updatedBy != null and updatedBy != ''">and dp.updated_by = #{updatedBy}</if>
|
|
|
|
|
<if test="updatedTime != null ">and dp.updated_time = #{updatedTime}</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|