Commit e6222325 authored by wujipeng's avatar wujipeng
Browse files

优化接口

parent bb165784
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruzhoukj.rx.dao.EquipmentDao"> <mapper namespace="com.ruzhoukj.rx.dao.EquipmentDao">
<select id="getDeviceInfoByDeviceId" resultType="com.ruzhoukj.rx.pojo.vo.EquipmentVO"> <select id="getDeviceInfoByDeviceId" resultType="com.ruzhoukj.rx.pojo.vo.EquipmentVO">
select select
id, id,
...@@ -21,6 +20,7 @@ ...@@ -21,6 +20,7 @@
where where
device_id = #{deviceId}; device_id = #{deviceId};
</select> </select>
<select id="getDeviceInfoList" resultType="com.ruzhoukj.rx.pojo.vo.EquipmentVO"> <select id="getDeviceInfoList" resultType="com.ruzhoukj.rx.pojo.vo.EquipmentVO">
select select
id, id,
...@@ -45,4 +45,5 @@ ...@@ -45,4 +45,5 @@
</if> </if>
</where> </where>
</select> </select>
</mapper> </mapper>
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