You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

DataLabelMapper.xml 1.2 kB

1234567891011121314151617181920212223242526
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
  3. <mapper namespace="org.dubhe.datasetutil.dao.DataLabelMapper">
  4. <insert id="saveBatchDataLabel" parameterType="java.util.List" useGeneratedKeys="true" keyProperty="id">
  5. insert into data_label (`name`,color,create_user_id)
  6. values
  7. <foreach collection="listDataLabel" item="dataLabel" separator=",">
  8. ( #{dataLabel.name},#{dataLabel.color},#{dataLabel.createUserId})
  9. </foreach>
  10. </insert>
  11. <select id="getPresetLabelList" parameterType="java.util.List"
  12. resultType="org.dubhe.datasetutil.domain.entity.DataLabel">
  13. select dl.id,dl.name from data_label dl
  14. left join data_group_label dgl on dl.id = dgl.label_id
  15. left join data_label_group dlg on dgl.label_group_id = dlg.id
  16. where dl.deleted = 0
  17. <if test="groupIds!=null and groupIds.size()&gt; 0">
  18. <foreach collection="groupIds" item="item" separator="," open="and dlg.id in(" close=")">
  19. #{item}
  20. </foreach>
  21. </if>
  22. </select>
  23. </mapper>

一站式算法开发平台、高性能分布式深度学习框架、先进算法模型库、视觉模型炼知平台、数据可视化分析平台等一系列平台及工具,在模型高效分布式训练、数据处理和可视分析、模型炼知和轻量化等技术上形成独特优势,目前已在产学研等各领域近千家单位及个人提供AI应用赋能

Contributors (1)