zhoushihao
3 天以前 4e3b8155722b66e25df3c6fd42cc586b68dea391
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.mes.bigstorage.mapper.BigStorageGlassRelationInfoMapper">
 
    <select id="queryNeedOutGlassId" resultType="java.lang.String">
        select glass_id
        from glass_info
        where (engineer_id, tempering_layout_id, tempering_feed_sequence) in (
            SELECT engineer_id, tempering_layout_id, tempering_feed_sequence
            FROM big_storage_glass_relation_info
            WHERE (engineer_id, tempering_layout_id, virtual_slot) =
                  (SELECT engineer_id, tempering_layout_id, virtual_slot
                   FROM big_storage_glass_relation_info
                   WHERE engineer_id = #{engineerId}
                     and tempering_layout_id = #{temperingLayoutId}
                     and tempering_feed_sequence = #{temperingFeedSequence}
                  )
        )
    </select>
</mapper>