mysqlplus查询方法

            LambdaQueryWrapper<Test> wrapper = new LambdaQueryWrapper<>();
            wrapper.eq(Test::getGroupid, "test");
            List<Test> list = testService.list(wrapper);
            if(list!=null&&list.size()>0){
                for(Test tmp :list){
                    tmp.setStatus("0");
                    tmp.setFlag("0");
                }
            }
            testService.saveOrUpdateBatch(list);

猜你喜欢

转载自blog.csdn.net/huawangxin/article/details/128317255