AlgorithmModelMapper.xml 799 B

12345678910111213141516
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.taais.biz.mapper.AlgorithmModelMapper">
  6. <select id="getModelNameBySubtaskId" parameterType="Long" resultType="String">
  7. select
  8. (select att.name as taskName from algorithm_task att left join algorithm_subtask ast on att.id = ast.task_id where ast.id = ${subtaskId} limit 1)
  9. || '-' ||
  10. (select ac.algorithm_name from algorithm_config ac where ac.id = #{algorithmId} limit 1)
  11. </select>
  12. <select id="getModelByAlgorithmId" resultType="com.taais.biz.domain.vo.AlgorithmModelVo">
  13. select * from algorithm_model am where am.algorithm_id = #{algorithmId}
  14. </select>
  15. </mapper>