| | |
| | | PageInfo<TInvoiceType> pageInfo = invoiceTypeService.pageList(pageList); |
| | | return AjaxResult.success(pageInfo); |
| | | } |
| | | @ResponseBody |
| | | @GetMapping("/pageListR") |
| | | @ApiOperation(value = "获取开票公司和类型列表", tags = {"管理后台-发票管理"}) |
| | | public R<List<TInvoiceType>> pageListR( String company){ |
| | | public R<List<TInvoiceType>> pageListR(String invoicingCompany ){ |
| | | List<TInvoiceType> list = new ArrayList<>(); |
| | | if (StringUtils.hasLength(company)){ |
| | | list = invoiceTypeService.lambdaQuery().eq(TInvoiceType::getInvoicingCompany, company).list(); |
| | | if (StringUtils.hasLength(invoicingCompany )){ |
| | | list = invoiceTypeService.lambdaQuery().eq(TInvoiceType::getInvoicingCompany, invoicingCompany).list(); |
| | | }else{ |
| | | list = invoiceTypeService.lambdaQuery().list(); |
| | | } |