shiyunteng
2025-04-02 d9d8b1eb440d455252e9859b2294b8a55366baba
platformx-device-biz/src/main/resources/mapper/DeviceMapper.xml
@@ -66,4 +66,21 @@
              and ci.contract_id = #{contractId}
              and ci.device_id = d.id )
   </select>
    <select id="getDropdownnByWinningId" resultType="com.by4cloud.platformx.device.entity.Device">
      select
         *
      from
         device d
      where
         d.del_flag = '0'
        and exists (
            select
               pwl.device_id
            from
               purchase_winning_letter pwl
            where
               pwl.del_flag = '0'
              and pwl.id = #{id}
              and pwl.device_id = d.id )
   </select>
</mapper>