id, dict_code, `value`, `name`, `status`, `attributes`, sort, remarks, deleted, create_by, 
    update_by, create_time, update_time
  
  
  
    
    delete from ba_dict_item
    where id = #{id,jdbcType=INTEGER}
  
  
    
    insert into ba_dict_item (dict_code, `value`, `name`, 
      `status`, `attributes`, sort, 
      remarks, deleted, create_by, 
      update_by, create_time, update_time
      )
    values (#{dictCode,jdbcType=VARCHAR}, #{value,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, 
      #{status,jdbcType=TINYINT}, #{attributes,jdbcType=LONGVARCHAR}, #{sort,jdbcType=INTEGER}, 
      #{remarks,jdbcType=VARCHAR}, #{deleted,jdbcType=BIGINT}, #{createBy,jdbcType=INTEGER}, 
      #{updateBy,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
      )
  
  
    
    insert into ba_dict_item
    
      
        dict_code,
      
      
        `value`,
      
      
        `name`,
      
      
        `status`,
      
      
        `attributes`,
      
      
        sort,
      
      
        remarks,
      
      
        deleted,
      
      
        create_by,
      
      
        update_by,
      
      
        create_time,
      
      
        update_time,
      
    
    
      
        #{dictCode,jdbcType=VARCHAR},
      
      
        #{value,jdbcType=VARCHAR},
      
      
        #{name,jdbcType=VARCHAR},
      
      
        #{status,jdbcType=TINYINT},
      
      
        #{attributes,jdbcType=LONGVARCHAR},
      
      
        #{sort,jdbcType=INTEGER},
      
      
        #{remarks,jdbcType=VARCHAR},
      
      
        #{deleted,jdbcType=BIGINT},
      
      
        #{createBy,jdbcType=INTEGER},
      
      
        #{updateBy,jdbcType=INTEGER},
      
      
        #{createTime,jdbcType=TIMESTAMP},
      
      
        #{updateTime,jdbcType=TIMESTAMP},
      
    
  
  
    
    update ba_dict_item
    
      
        dict_code = #{dictCode,jdbcType=VARCHAR},
      
      
        `value` = #{value,jdbcType=VARCHAR},
      
      
        `name` = #{name,jdbcType=VARCHAR},
      
      
        `status` = #{status,jdbcType=TINYINT},
      
      
        `attributes` = #{attributes,jdbcType=LONGVARCHAR},
      
      
        sort = #{sort,jdbcType=INTEGER},
      
      
        remarks = #{remarks,jdbcType=VARCHAR},
      
      
        deleted = #{deleted,jdbcType=BIGINT},
      
      
        create_by = #{createBy,jdbcType=INTEGER},
      
      
        update_by = #{updateBy,jdbcType=INTEGER},
      
      
        create_time = #{createTime,jdbcType=TIMESTAMP},
      
      
        update_time = #{updateTime,jdbcType=TIMESTAMP},
      
    
    where id = #{id,jdbcType=INTEGER}
  
  
    
    update ba_dict_item
    set dict_code = #{dictCode,jdbcType=VARCHAR},
      `value` = #{value,jdbcType=VARCHAR},
      `name` = #{name,jdbcType=VARCHAR},
      `status` = #{status,jdbcType=TINYINT},
      `attributes` = #{attributes,jdbcType=LONGVARCHAR},
      sort = #{sort,jdbcType=INTEGER},
      remarks = #{remarks,jdbcType=VARCHAR},
      deleted = #{deleted,jdbcType=BIGINT},
      create_by = #{createBy,jdbcType=INTEGER},
      update_by = #{updateBy,jdbcType=INTEGER},
      create_time = #{createTime,jdbcType=TIMESTAMP},
      update_time = #{updateTime,jdbcType=TIMESTAMP}
    where id = #{id,jdbcType=INTEGER}