yangys
2025-11-18 8e944cfabb253fc2556588e308e282586043f7b0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?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.qianwen.smartman.modules.smis.mapper.TraySurfaceMapper">
 
 
    <select id="removeFixture" resultType="java.lang.Integer">
        select count(*)
        from blade_fixture bf
        where bf.is_deleted = 0
          and exists(select *
                     from prod_craft_process_ref_fixture bpcprf
                     where bpcprf.fixture_id = bf.id
                       and exists(select *
                                  from blade_tray_fixture btf
                                  where bpcprf.fixture_id = btf.fix_id
                                    and btf.is_deleted = 0
                                    and btf.face_id = #{faceId}
                                    and btf.tray_id = #{trayId})
            )
    </select>
</mapper>