查询物模型属性sql修改

This commit is contained in:
huguanghan 2024-12-03 16:14:39 +08:00
parent daea8f3196
commit 1fae1e0fbe

View File

@ -28,13 +28,13 @@
<if test="info.attributeType != null and info.attributeType != ''">
and t.attribute_type = #{info.attributeType}
</if>
</where>
<if test="info.orderColumn != null and info.orderType != ''">
order by ${info.orderColumn} ${info.orderType}
</if>
<if test="info.orderColumn == null or info.orderColumn == '' or info.orderType == null or info.orderType == ''">
order by t.porder asc
</if>
</where>
</select>
<select id="querySysIotModelFieldByModelId" resultType="java.lang.Long">