mybatis 多字段、多表批量更新,判断条件也批量改变

            update profile_factory_information info
            LEFT JOIN basic_org_user buser ON buser.userId = info.userId

           

             
                 
                             
                          when buser.mobile=#{item.mobile} then #{item.company}
                         

                 

             

             
                 
                           
                          when buser.mobile=#{item.mobile} then #{item.classify}
                         

                 

             

             
                 
                            
                          when buser.mobile=#{item.mobile} then #{item.userName}
                         

                 

             

             

            where
           
              buser.mobile=#{item.mobile}    

         


 

你可能感兴趣的:(mysql)