mybatis 批量更新多个属性

/**
 * 批量修改物流状态和物流踪迹
 *
 * @param recordList List
 * @return Integer
 */
Integer updateStatusBatch(@Param("recordList") List recordList);

    UPDATE dm_logistics_record
    
        
            
                
                    when record_Id=#{recordDo.recordId} then
                    #{recordDo.deliveryStatus}
                
            
        
        
            
                
                    when record_Id=#{recordDo.recordId} then #{recordDo.transInfo}
                
            
        
    
    where record_id in
    
        #{recordDo.recordId, jdbcType=BIGINT}
    

 

 

 

 

你可能感兴趣的:(mybatis)