gonglilong
2024-06-14 54b040d85ec19336d076956f1a416363e471d5ca
skjcmanager/skjcmanager-service/skjcmanager-sm/src/main/java/cn/gistack/sm/sg/mapper/SgDeviceMapper.xml
@@ -15,4 +15,9 @@
            and ds.device_type = #{dto.deviceType}
        </if>
    </select>
    <select id="getSgDeviceById" resultType="cn.gistack.sm.sg.DO.SgDeviceDO">
        select ds.*,project.project_name as programName,dict."DICT_VALUE" as typeName from YWXT."SG_DEVICE" as ds left join YWXT."SG_PROJECT_INFO"  as project  on ds.program_id=project.id
        left join YWXT."BLADE_DICT_BIZ" as dict  on ds.device_type=dict.DICT_KEY  and dict.CODE='SG_DEVICE_TYPE' where  ds.id = #{id}
    </select>
</mapper>