liurunyu
7 天以前 c488d63b58458ea0dee56ffbb4c5b66b2141d4f1
pms-parent/pms-global/src/main/resources/mapper/PrDeviceMapper.xml
@@ -32,14 +32,14 @@
        delete from pr_device
        where  batch_id = #{batchId,jdbcType=BIGINT}
    </delete>
    <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.dy.pmsGlobal.pojoPr.PrDevice" useGeneratedKeys="true">
    <insert id="insert" parameterType="com.dy.pmsGlobal.pojoPr.PrDevice">
        insert into pr_device
        ( id,pro_id,batch_id
        ,device_no,status)
        values (#{id,jdbcType=BIGINT},#{proId,jdbcType=BIGINT},#{batchId,jdbcType=BIGINT}
        ,#{deviceNo,jdbcType=BIGINT},#{status,jdbcType=TINYINT})
    </insert>
    <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.dy.pmsGlobal.pojoPr.PrDevice" useGeneratedKeys="true">
    <insert id="insertSelective" parameterType="com.dy.pmsGlobal.pojoPr.PrDevice">
        insert into pr_device
        <trim prefix="(" suffix=")" suffixOverrides=",">
                <if test="id != null">id,</if>