Commit 1bee9ea9 authored by co_dengxiongwen's avatar co_dengxiongwen

接口调整

parent cd0126f0
...@@ -429,6 +429,7 @@ public class LiResourceController extends AbstractController { ...@@ -429,6 +429,7 @@ public class LiResourceController extends AbstractController {
Map<String, Object> mapResource = new HashMap<>(16); Map<String, Object> mapResource = new HashMap<>(16);
mapResource.put("id", resource.getId()); mapResource.put("id", resource.getId());
mapResource.put("resourceName", resource.getName()); mapResource.put("resourceName", resource.getName());
mapResource.put("mapStationName",resource.getStationName()+resource.getTierName());
childrenDic.add(mapResource); childrenDic.add(mapResource);
iterator.remove(); iterator.remove();
} }
......
...@@ -217,7 +217,7 @@ ...@@ -217,7 +217,7 @@
LEFT JOIN li_resource_camera lic on lic.resource_id = li.id and lic.station_id = li.station_id LEFT JOIN li_resource_camera lic on lic.resource_id = li.id and lic.station_id = li.station_id
<include refid="queryPageByListClause2"></include> <include refid="queryPageByListClause2"></include>
GROUP BY li.id GROUP BY li.id
ORDER BY li.create_time DESC ORDER BY li.station_id,li.create_time DESC
</select> </select>
<select id="getBeanById" parameterType="Object" resultMap="BaseResultMap"> <select id="getBeanById" parameterType="Object" resultMap="BaseResultMap">
......
...@@ -76,6 +76,7 @@ ...@@ -76,6 +76,7 @@
select lsm.id,lsm.name,ls.station_name as stationName select lsm.id,lsm.name,ls.station_name as stationName
from li_station_map lsm from li_station_map lsm
left join li_station ls on ls.id = lsm.station_id left join li_station ls on ls.id = lsm.station_id
where lsm.deleted=0
order by lsm.station_id,lsm.order_num order by lsm.station_id,lsm.order_num
</select> </select>
......
...@@ -63,6 +63,9 @@ ...@@ -63,6 +63,9 @@
<!-- 分页查询条件 --> <!-- 分页查询条件 -->
<sql id="queryPageByListClause"> <sql id="queryPageByListClause">
where ai.deleted=0 where ai.deleted=0
<if test="type != null">
and ai.type = #{type}
</if>
<if test="eventType != null and eventType !='' "> <if test="eventType != null and eventType !='' ">
and ai.event_type = #{eventType} and ai.event_type = #{eventType}
</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