zss
2023-09-21 2dbc49184bd74845c8da694c20d6fd03d7ac87e0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?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.yuanchu.mom.mapper.SelfcheckModelMapper">
    <!--查询生产工艺维护列表 右边展示该工艺下的所有自检项目-->
    <select id="selectAllSelf" resultType="java.util.Map">
        select id,
               name,
               unit,
               required,
               internal
        from mom_ocean.selfcheck_model
        where state = 1
          and tech_tem_id = #{id}
    </select>
 
    <!--根据自检项目id批量删除-->
    <update id="delAllSelfcheck">
        update mom_ocean.selfcheck_model
        set state=0
        where id in (${ids})
    </update>
 
    <!--根据工艺路线id删除-->
    <update id="delSelfByTechId">
        update mom_ocean.selfcheck_model
        set state=0
        where selfcheck_model.tech_tem_id = #{id}
    </update>
 
    <!--根据工艺路线id批量删除-->
    <update id="delAllByTechId">
        update mom_ocean.selfcheck_model
        set state=0
        where selfcheck_model.tech_tem_id in (${ids})
    </update>
</mapper>