yangys
2024-11-03 1d5e5ce674ae1cecbf199b885b68e52ac8a9df72
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?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.ProcessMapper">
 
    <select id="existCraftProcess" resultType="java.lang.Integer">
        select count(*)
        from blade_process bp
        where bp.is_deleted = 0
        and exists(select *
        from prod_craft_process bpcp
        where bpcp.is_deleted = 0
        and bpcp.process_id = bp.id
        and bp.id in
        <foreach collection="processIds" item="processId" index="index" open="(" close=")" separator=",">
            #{processId}
        </foreach>
        )
    </select>
</mapper>