|  |  |  | 
|---|
|  |  |  | <if test="id != null">id,</if> | 
|---|
|  |  |  | <if test="proId != null">pro_id,</if> | 
|---|
|  |  |  | <if test="batchId != null">batch_id,</if> | 
|---|
|  |  |  | <if test="deviceNo != null">device_no,</if> | 
|---|
|  |  |  | <if test="deviceNo != null and deviceNo !=''">device_no,</if> | 
|---|
|  |  |  | <if test="status != null">status,</if> | 
|---|
|  |  |  | </trim> | 
|---|
|  |  |  | <trim prefix="values (" suffix=")" suffixOverrides=","> | 
|---|
|  |  |  | <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 and deviceNo !=''">#{deviceNo},</if> | 
|---|
|  |  |  | <if test="status != null">#{status,jdbcType=TINYINT},</if> | 
|---|
|  |  |  | </trim> | 
|---|
|  |  |  | </insert> | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="batchId != null"> | 
|---|
|  |  |  | batch_id = #{batchId,jdbcType=BIGINT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="deviceNo != null"> | 
|---|
|  |  |  | <if test="deviceNo != null and deviceNo !=''"> | 
|---|
|  |  |  | device_no = #{deviceNo}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="status != null"> | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="batchId != null"> | 
|---|
|  |  |  | batch_id = #{batchId,jdbcType=BIGINT} and | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="deviceNo != null"> | 
|---|
|  |  |  | <if test="deviceNo != null and deviceNo !=''"> | 
|---|
|  |  |  | device_no = #{deviceNo,jdbcType=BIGINT} and | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="status != null"> | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="batchId != null"> | 
|---|
|  |  |  | batch_id = #{batchId,jdbcType=BIGINT} and | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="deviceNo != null"> | 
|---|
|  |  |  | <if test="deviceNo != null and deviceNo !=''"> | 
|---|
|  |  |  | device_no = #{deviceNo,jdbcType=BIGINT} and | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="status != null"> | 
|---|