mybatis xml中的if else

mybaits 中没有else要用chose when otherwise 代替



    insert into `business_user` (`id` , `user_type` , `user_login` )
    values
    
        
            
                
                    #{item.id,jdbcType=CHAR},
                
                
                    '',
                
            
            
                
                    #{item.userType,jdbcType=VARCHAR},
                
                
                    '',
                
            
        
    

其中choose为一个整体
when是if
otherwise是else

你可能感兴趣的:(spring,java,spring-boo,mybatis)