|  |  |  | 
|---|
|  |  |  | <if test="id != null">#{id,jdbcType=BIGINT},</if> | 
|---|
|  |  |  | <if test="proId != null">#{proId,jdbcType=BIGINT},</if> | 
|---|
|  |  |  | <if test="batchId != null">#{batchId,jdbcType=BIGINT},</if> | 
|---|
|  |  |  | <if test="deviceNo != null">#{deviceNo</if> | 
|---|
|  |  |  | <if test="deviceNo != null">#{deviceNo},</if> | 
|---|
|  |  |  | <if test="status != null">#{status,jdbcType=TINYINT},</if> | 
|---|
|  |  |  | </trim> | 
|---|
|  |  |  | </insert> | 
|---|
|  |  |  | 
|---|
|  |  |  | batch_id = #{batchId,jdbcType=BIGINT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="deviceNo != null"> | 
|---|
|  |  |  | device_no = #{deviceNo | 
|---|
|  |  |  | device_no = #{deviceNo}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="status != null"> | 
|---|
|  |  |  | status = #{status,jdbcType=TINYINT}, | 
|---|
|  |  |  | status = #{status,jdbcType=TINYINT} | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | </set> | 
|---|
|  |  |  | where   id = #{id,jdbcType=BIGINT} | 
|---|
|  |  |  | 
|---|
|  |  |  | set | 
|---|
|  |  |  | pro_id =  #{proId,jdbcType=BIGINT}, | 
|---|
|  |  |  | batch_id =  #{batchId,jdbcType=BIGINT}, | 
|---|
|  |  |  | device_no = #{deviceNo | 
|---|
|  |  |  | device_no = #{deviceNo}, | 
|---|
|  |  |  | status =  #{status,jdbcType=TINYINT} | 
|---|
|  |  |  | where   id = #{id,jdbcType=BIGINT} | 
|---|
|  |  |  | </update> | 
|---|