zss
2023-09-20 6f44f6cfadef657c5fd55bdb9974c2b8e3262ba8
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
<?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.SaleMaterialMapper">
    <!--根据销售单id批量删除-->
    <update id="delAllSale">
        update mom_ocean.sale_material
        set state=0
        where sale_id in (${ids})
    </update>
    <select id="selectSaleDatil" resultType="com.yuanchu.mom.pojo.SaleMaterial">
        select id,
               name,
               specifications,
               unit,
               number,
               price,
               state,
               create_time,
               update_time,
               sale_id
        from mom_ocean.sale_material
        where state = 1
          and sale_id = #{id}
    </select>
</mapper>