|
|
@@ -74,30 +74,6 @@
|
|
|
GROUP BY well_sn, picture_layer
|
|
|
)
|
|
|
</select>
|
|
|
- <select id="getLastAutofocusPictureByEmbryoId"
|
|
|
- resultType="com.aivfo.data.transmission.entity.dao.PictureDAO">
|
|
|
- SELECT *
|
|
|
- FROM picture AS p1
|
|
|
- JOIN (
|
|
|
- SELECT MAX(image_time) AS time,
|
|
|
- embryo_id AS id
|
|
|
- FROM picture AS p
|
|
|
- WHERE embryo_id IN
|
|
|
- <foreach collection="embryoIds" item="item" index="index" open="(" close=")" separator=",">
|
|
|
- #{item}
|
|
|
- </foreach>
|
|
|
- AND p.photograph_type = 1
|
|
|
- AND crop_state <![CDATA[ <> ]]> 0
|
|
|
- GROUP BY embryo_id
|
|
|
- ) AS t1 ON t1.time = p1.image_time
|
|
|
- AND t1.id = p1.embryo_id
|
|
|
- WHERE embryo_id IN
|
|
|
- <foreach collection="embryoIds" item="item" index="index" open="(" close=")" separator=",">
|
|
|
- #{item}
|
|
|
- </foreach>
|
|
|
- AND photograph_type = 1
|
|
|
- AND crop_state <![CDATA[ <> ]]> 0
|
|
|
- </select>
|
|
|
<select id="selectFocusBestPicture" resultType="com.aivfo.data.transmission.entity.dao.PictureDAO">
|
|
|
SELECT *
|
|
|
FROM picture AS p1
|