mybatis继承与参考语法

继承


    
  

参考语法




  
    
    
    
  
  
    
  
  
    
      
        
          
            
              
                
                  and ${criterion.condition}
                
                
                  and ${criterion.condition} #{criterion.value}
                
                
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                
                
                  and ${criterion.condition}
                  
                    #{listItem}
                  
                
              
            
          
        
      
    
  
  
    
      
        
          
            
              
                
                  and ${criterion.condition}
                
                
                  and ${criterion.condition} #{criterion.value}
                
                
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                
                
                  and ${criterion.condition}
                  
                    #{listItem}
                  
                
              
            
          
        
      
    
  
  
    item_id, created, updated
  
  
    item_desc
  
  
  
  
  
    delete from tb_item_desc
    where item_id = #{itemId,jdbcType=BIGINT}
  
  
    delete from tb_item_desc
    
      
    
  
  
    insert into tb_item_desc (item_id, created, updated, 
      item_desc)
    values (#{itemId,jdbcType=BIGINT}, #{created,jdbcType=TIMESTAMP}, #{updated,jdbcType=TIMESTAMP}, 
      #{itemDesc,jdbcType=LONGVARCHAR})
  
  
    insert into tb_item_desc
    
      
        item_id,
      
      
        created,
      
      
        updated,
      
      
        item_desc,
      
    
    
      
        #{itemId,jdbcType=BIGINT},
      
      
        #{created,jdbcType=TIMESTAMP},
      
      
        #{updated,jdbcType=TIMESTAMP},
      
      
        #{itemDesc,jdbcType=LONGVARCHAR},
      
    
  
  
  
    update tb_item_desc
    
      
        item_id = #{record.itemId,jdbcType=BIGINT},
      
      
        created = #{record.created,jdbcType=TIMESTAMP},
      
      
        updated = #{record.updated,jdbcType=TIMESTAMP},
      
      
        item_desc = #{record.itemDesc,jdbcType=LONGVARCHAR},
      
    
    
      
    
  
  
    update tb_item_desc
    set item_id = #{record.itemId,jdbcType=BIGINT},
      created = #{record.created,jdbcType=TIMESTAMP},
      updated = #{record.updated,jdbcType=TIMESTAMP},
      item_desc = #{record.itemDesc,jdbcType=LONGVARCHAR}
    
      
    
  
  
    update tb_item_desc
    set item_id = #{record.itemId,jdbcType=BIGINT},
      created = #{record.created,jdbcType=TIMESTAMP},
      updated = #{record.updated,jdbcType=TIMESTAMP}
    
      
    
  
  
    update tb_item_desc
    
      
        created = #{created,jdbcType=TIMESTAMP},
      
      
        updated = #{updated,jdbcType=TIMESTAMP},
      
      
        item_desc = #{itemDesc,jdbcType=LONGVARCHAR},
      
    
    where item_id = #{itemId,jdbcType=BIGINT}
  
  
    update tb_item_desc
    set created = #{created,jdbcType=TIMESTAMP},
      updated = #{updated,jdbcType=TIMESTAMP},
      item_desc = #{itemDesc,jdbcType=LONGVARCHAR}
    where item_id = #{itemId,jdbcType=BIGINT}
  
  
    update tb_item_desc
    set created = #{created,jdbcType=TIMESTAMP},
      updated = #{updated,jdbcType=TIMESTAMP}
    where item_id = #{itemId,jdbcType=BIGINT}
  

 

你可能感兴趣的:(mybatis继承与参考语法)