You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.3 KiB
38 lines
1.3 KiB
<?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"> |
|
<mapper namespace="com.ruoyi.code.camera.mapper.CameraMapper"> |
|
|
|
<select id="queryCameraList" resultType="com.ruoyi.code.camera.domain.Camera"> |
|
select * from camera where devsn not in ( |
|
select camera_sn from sc_station_info |
|
) and del_flag='0' |
|
</select> |
|
|
|
<select id="queryCameraBYSid" resultType="com.ruoyi.code.camera.domain.Camera"> |
|
select |
|
c.* |
|
from |
|
camera c, |
|
sc_station_info s |
|
where |
|
c.devsn = s.camera_sn |
|
and s.id = #{sid} and s.del_flag='0' and c.del_flag='0' |
|
</select> |
|
|
|
<select id="queryPage" resultType="com.ruoyi.code.camera.domain.Camera"> |
|
select c.* from camera c |
|
left join sc_station_info s on c.devsn = s.camera_sn |
|
<where> |
|
c.del_flag='0' and s.del_flag='0' |
|
<if test="params.devsn!= null and params.devsn != ''"> |
|
and devsn like concat('%',#{params.devsn},'%') |
|
</if> |
|
<if test="params.name != null and params.name != ''"> |
|
and name like concat('%',#{params.name},'%') |
|
</if> |
|
${params.dataScope} |
|
</where> |
|
</select> |
|
</mapper>
|
|
|