lyh
2025-01-13 137d008bd9b7d932160436a3a560b24512f6d1db
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?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="org.jeecg.modules.dnc.mapper.DocRelativeMapper">
    <select id="findDeviceByDocId" resultType="org.jeecg.modules.dnc.entity.DeviceInfo" parameterType="String">
         select d.device_id
          , d.group_id
          , d.device_no
          , d.device_name
          , d.control_system
          , d.device_model
          , d.link_ip
          , d.link_port
          , d.depart_id
          , g.group_name
          , s.depart_name
          from nc_device_info d
          inner join (select distinct attribution_id from nc_doc_relative where doc_id=#{docId} and delete_flag=0 and attribution_type=4) dp
          on d.device_id=dp.attribution_id
          inner join nc_device_group g
          on d.group_id=g.group_id
          inner join sys_department s
          on d.depart_id=s.depart_id
    </select>
</mapper>