LambdaQueryWrapper
MatchUserEntity matchUserEntity = matchUserService.getOne(new LambdaQueryWrapper() .eq(MatchUserEntity::getUserId, gameUserId) .eq(MatchUserEntity::getMatchId, gameEntity.getMatchId()) .eq(MatchUserEntity::getDelFlag, "1"));
QueryWrapper
Listolds = this.list(new QueryWrapper ().eq("main_id",mainId).eq("bill_status",BillStatusEnum.BILL_STATUS_THREE.getKey()));
LambdaQueryWrapper的好处是写实体属性,而不是数据库字段,这样就不用担心数据库字段改了需要修改java中的代码(只需要修改xml文件就行了)



