fuliqi
2025-02-10 db75b45e9a7ce347162b8d3a36e4a7f46cfe199e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?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.ycl.platform.mapper.WorkOrderDistributeRecordMapper">
 
 
    <insert id="insertBatch">
        insert into t_work_order_distribute_record (work_order_no, user_id, create_time, deleted, distribute_way)
        values
        <foreach collection="list" item="item" separator=",">
            (#{item.workOrderNo}, #{item.userId}, now(), '0', #{item.distributeWay})
        </foreach>
    </insert>
 
    <delete id="deleteByWorkOrder">
        delete from t_work_order_distribute_record where work_order_no = #{workOrderNo}
    </delete>
</mapper>