|  |  |  | 
|---|
|  |  |  | insert into pr_working_instruction | 
|---|
|  |  |  | <trim prefix="(" suffix=")" suffixOverrides=","> | 
|---|
|  |  |  | <if test="id != null">id,</if> | 
|---|
|  |  |  | <if test="nodeId != null">node_id,</if> | 
|---|
|  |  |  | <if test="nodeId!= null">node_id,</if> | 
|---|
|  |  |  | <if test="fileId != null">file_id,</if> | 
|---|
|  |  |  | </trim> | 
|---|
|  |  |  | <trim prefix="values (" suffix=")" suffixOverrides=","> | 
|---|
|  |  |  | <if test="id != null">#{id,jdbcType=BIGINT},</if> | 
|---|
|  |  |  | <if test="nodeId != null">#{nodeId,jdbcType=BIGINT},</if> | 
|---|
|  |  |  | <if test="nodeId!= null">#{nodeId,jdbcType=BIGINT},</if> | 
|---|
|  |  |  | <if test="fileId != null">#{fileId,jdbcType=BIGINT},</if> | 
|---|
|  |  |  | </trim> | 
|---|
|  |  |  | </insert> | 
|---|
|  |  |  | 
|---|
|  |  |  | <update id="updateByPrimaryKeySelective" parameterType="com.dy.pmsGlobal.pojoPr.PrWorkingInstruction"> | 
|---|
|  |  |  | update pr_working_instruction | 
|---|
|  |  |  | <set> | 
|---|
|  |  |  | <if test="nodeId != null"> | 
|---|
|  |  |  | <if test="nodeId!= null"> | 
|---|
|  |  |  | node_id = #{nodeId,jdbcType=BIGINT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="fileId != null"> | 
|---|