条件构造器queryWrapper和updateWrapper
https://www.cnblogs.com/bingsying/p/12507419.html
1 WarehouseItem warehouseItem = warehouseItemService.getById(2117733125);
2 UpdateWrapper<WarehouseItem> updateWrapper = new UpdateWrapper<>();
3 //可将指定字段更新为null
4 updateWrapper.set("ownerId", null); 
5 updateWrapper.set("product_id",123456);
6 warehouseItemService.update(warehouseItem, updateWrapper);
QueryWrapper<User> queryWrapper = new QueryWrapper<>(); 
queryWrapper.eq("name", "lqf"); 
Integer count = mapper.selectCount(queryWrapper);
 
                     
                    
                 
                    
                
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号