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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
| <sql id="TABLE_PROJECT"> PROJECT </sql>
<insert id="addProjectSelective" useGeneratedKeys="true" keyProperty="projId" parameterType="com.winter.model.Project"> INSERT INTO <include refid="TABLE_PROJECT"/> <trim prefix="(" suffix=")" suffixOverrides="," > <if test="parentId != null"> parentId, </if> <if test="level != null"> level, </if> <if test="taskName != null"> taskName, </if> <if test="durationDate != null"> durationDate, </if> <if test="startDate != null"> startDate, </if> <if test="endDate != null"> endDate, </if> <if test="preTask != null"> preTask, </if> <if test="resource != null"> resource, </if> <if test="importTime != null"> importTime, </if> <if test="importTime != null"> batchNum, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides="," > <if test="parentId != null"> #{parentId, jdbcType=INTEGER}, </if> <if test="level != null"> #{level, jdbcType=INTEGER}, </if> <if test="taskName != null"> #{taskName, jdbcType=VARCHAR}, </if> <if test="durationDate != null"> #{durationDate, jdbcType=VARCHAR}, </if> <if test="startDate != null"> #{startDate, jdbcType=DATE}, </if> <if test="endDate != null"> #{endDate, jdbcType=DATE}, </if> <if test="preTask != null"> #{preTask, jdbcType=INTEGER}, </if> <if test="resource != null"> #{resource, jdbcType=VARCHAR}, </if> <if test="importTime != null"> #{importTime, jdbcType=DATE}, </if> <if test="batchNum != null"> #{batchNum, jdbcType=VARCHAR}, </if> </trim> </insert>
|