Commit 3531f207 authored by co_dengxiongwen's avatar co_dengxiongwen

接口调整

parent 5eacdf91
...@@ -98,8 +98,13 @@ ...@@ -98,8 +98,13 @@
</select> </select>
<select id="queryPageByList" parameterType="Object" resultMap="BaseResultMap"> <select id="queryPageByList" parameterType="Object" resultMap="BaseResultMap">
select * from li_resource select li.*,sdb.name as brandName,
<include refid="queryPageByListClause"></include> (CASE WHEN li.status = 1 THEN '在线'
WHEN li.status = 2 THEN '离线'
ELSE '故障' END) as statusName
from li_resource li
left join sys_dictionary sdb on sdb.id = li.brand
<include refid="queryPageByListClause2"></include>
<if test="pager.orderCondition != null and pager.orderCondition != ''"> <if test="pager.orderCondition != null and pager.orderCondition != ''">
${pager.orderCondition} ${pager.orderCondition}
</if> </if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment