<?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.ruoyi.system.mapper.ActSuppliesCleaningRuleMapper"> <insert id="addActSuppliesSixMinesSummaryTable" parameterType="ActSuppliesSixMinesSummaryTable" useGeneratedKeys="true" keyProperty="id"> insert into act_supplies_sixminessummarytable <trim prefix="(" suffix=")" suffixOverrides=","> <if test="id != null">id,</if> <if test="hId != null">h_id,</if> <if test="projectId != null">project_id,</if> <if test="projectName != null">project_name,</if> <if test="departmentName != null">department_name,</if> <if test="number != null">number,</if> <if test="nuitPrice != null">nuit_price,</if> <if test="money != null">money,</if> <if test="createBy != null">create_by,</if> <if test="hDate != null">h_date,</if> <if test="mining != null">ssk_id,</if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="id != null">#{id},</if> <if test="hId != null">#{hId},</if> <if test="projectId != null">#{projectId},</if> <if test="projectName != null">#{projectName},</if> <if test="departmentName != null">#{departmentName},</if> <if test="number != null">#{number},</if> <if test="nuitPrice != null">#{nuitPrice},</if> <if test="money != null">#{money},</if> <if test="createBy != null">#{createBy},</if> <if test="hDate != null">#{hDate},</if> <if test="mining != null">#{mining},</if> </trim> </insert> <insert id="addActSuppliesImportTable" parameterType="ActSuppliesImportTable" useGeneratedKeys="true" keyProperty="id"> insert into act_supplies_import_table <trim prefix="(" suffix=")" suffixOverrides=","> <if test="id != null">id,</if> <if test="hId != null">h_id,</if> <if test="hDate != null">h_date,</if> <if test="mining != null">ssk_id,</if> <if test="a1 != null">a1,</if> <if test="a2 != null">a2,</if> <if test="a3 != null">a3,</if> <if test="a4 != null">a4,</if> <if test="a5 != null">a5,</if> <if test="a6 != null">a6,</if> <if test="a7 != null">a7,</if> <if test="a8 != null">a8,</if> <if test="a9 != null">a9,</if> <if test="a10 != null">a10,</if> <if test="a11 != null">a11,</if> <if test="a12 != null">a12,</if> <if test="a13 != null">a13,</if> <if test="a14 != null">a14,</if> <if test="a15 != null">a15,</if> <if test="a16 != null">a16,</if> <if test="a17 != null">a17,</if> <if test="a18 != null">a18,</if> <if test="a19 != null">a19,</if> <if test="a20 != null">a20,</if> <if test="a21 != null">a21,</if> <if test="a22 != null">a22,</if> <if test="a23 != null">a23,</if> <if test="a24 != null">a24,</if> <if test="a25 != null">a25,</if> <if test="a26 != null">a26,</if> <if test="a27 != null">a27,</if> <if test="a28 != null">a28,</if> <if test="a29 != null">a29,</if> <if test="a30 != null">a30,</if> <if test="a31 != null">a31,</if> <if test="a32 != null">a32,</if> <if test="a33 != null">a33,</if> <if test="a34 != null">a34,</if> <if test="a35 != null">a35,</if> <if test="a36 != null">a36,</if> <if test="a37 != null">a37,</if> <if test="a38 != null">a38,</if> <if test="a39 != null">a39,</if> <if test="a40 != null">a40,</if> <if test="a41 != null">a41,</if> <if test="a42 != null">a42,</if> <if test="a43 != null">a43,</if> <if test="a44 != null">a44,</if> <if test="a45 != null">a45,</if> <if test="a46 != null">a46,</if> <if test="a47 != null">a47,</if> <if test="a48 != null">a48,</if> <if test="a49 != null">a49,</if> <if test="a50 != null">a50,</if> <if test="a51 != null">a51,</if> <if test="a52 != null">a52,</if> <if test="a53 != null">a53,</if> <if test="a54 != null">a54,</if> <if test="a55 != null">a55,</if> <if test="a56 != null">a56,</if> <if test="a57 != null">a57,</if> <if test="a58 != null">a58,</if> <if test="a59 != null">a59,</if> <if test="a60 != null">a60,</if> <if test="a61 != null">a61,</if> <if test="a62 != null">a62,</if> <if test="a63 != null">a63,</if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="id != null">#{id},</if> <if test="hId != null">#{hId},</if> <if test="hDate != null">#{hDate},</if> <if test="mining != null">#{mining},</if> <if test="a1 != null">#{a1},</if> <if test="a2 != null">#{a2},</if> <if test="a3 != null">#{a3},</if> <if test="a4 != null">#{a4},</if> <if test="a5 != null">#{a5},</if> <if test="a6 != null">#{a6},</if> <if test="a7 != null">#{a7},</if> <if test="a8 != null">#{a8},</if> <if test="a9 != null">#{a9},</if> <if test="a10 != null">#{a10},</if> <if test="a11 != null">#{a11},</if> <if test="a12 != null">#{a12},</if> <if test="a13 != null">#{a13},</if> <if test="a14 != null">#{a14},</if> <if test="a15 != null">#{a15},</if> <if test="a16 != null">#{a16},</if> <if test="a17 != null">#{a17},</if> <if test="a18 != null">#{a18},</if> <if test="a19 != null">#{a19},</if> <if test="a20 != null">#{a20},</if> <if test="a21 != null">#{a21},</if> <if test="a22 != null">#{a22},</if> <if test="a23 != null">#{a23},</if> <if test="a24 != null">#{a24},</if> <if test="a25 != null">#{a25},</if> <if test="a26 != null">#{a26},</if> <if test="a27 != null">#{a27},</if> <if test="a28 != null">#{a28},</if> <if test="a29 != null">#{a29},</if> <if test="a30 != null">#{a30},</if> <if test="a31 != null">#{a31},</if> <if test="a32 != null">#{a32},</if> <if test="a33 != null">#{a33},</if> <if test="a34 != null">#{a34},</if> <if test="a35 != null">#{a35},</if> <if test="a36 != null">#{a36},</if> <if test="a37 != null">#{a37},</if> <if test="a38 != null">#{a38},</if> <if test="a39 != null">#{a39},</if> <if test="a40 != null">#{a40},</if> <if test="a41 != null">#{a41},</if> <if test="a42 != null">#{a42},</if> <if test="a43 != null">#{a43},</if> <if test="a44 != null">#{a44},</if> <if test="a45 != null">#{a45},</if> <if test="a46 != null">#{a46},</if> <if test="a47 != null">#{a47},</if> <if test="a48 != null">#{a48},</if> <if test="a49 != null">#{a49},</if> <if test="a50 != null">#{a50},</if> <if test="a51 != null">#{a51},</if> <if test="a52 != null">#{a52},</if> <if test="a53 != null">#{a53},</if> <if test="a54 != null">#{a54},</if> <if test="a55 != null">#{a55},</if> <if test="a56 != null">#{a56},</if> <if test="a57 != null">#{a57},</if> <if test="a58 != null">#{a58},</if> <if test="a59 != null">#{a59},</if> <if test="a60 != null">#{a60},</if> <if test="a61 != null">#{a61},</if> <if test="a62 != null">#{a62},</if> <if test="a63 != null">#{a63},</if> </trim> </insert> <delete id="deleteActSuppliesSixMinesSummaryTable" parameterType="Long"> delete from act_supplies_sixminessummarytable where h_id = #{id} </delete> <delete id="deleteActSuppliesImportTable" parameterType="Long"> delete from act_supplies_import_table where h_id = #{id} </delete> </mapper>