| | |
| | | MPJLambdaWrapper<TaxCode> wrapper = new MPJLambdaWrapper<TaxCode>() |
| | | .selectAll(TaxCode.class) |
| | | .selectAs("(select count(1) from tax_code t1 where t1.parent_bm = t.bm)",TaxCode::getChildNum) |
| | | .like(StrUtil.isNotBlank(queryDTO.getMc()),TaxCode::getMc,queryDTO.getMc()); |
| | | .like(StrUtil.isNotBlank(queryDTO.getMc()),TaxCode::getMc,queryDTO.getMc()) |
| | | .like(StrUtil.isNotBlank(queryDTO.getBm()),TaxCode::getBm,queryDTO.getBm()); |
| | | if (ObjUtil.isNotNull(queryDTO.getChildNum())){ |
| | | if (queryDTO.getChildNum()==0){ |
| | | wrapper.eq("(select count(1) from tax_code t1 where t1.parent_bm = t.bm)",0); |