| | |
| | | import com.ruoyi.other.query.InvoiceTypePageList; |
| | | import com.ruoyi.other.service.TInvoiceTypeService; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.util.StringUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.ArrayList; |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | |
| | |
| | | PageInfo<TInvoiceType> pageInfo = invoiceTypeService.pageList(pageList); |
| | | return AjaxResult.success(pageInfo); |
| | | } |
| | | @ResponseBody |
| | | @GetMapping("/pageListR/{company}") |
| | | @ApiOperation(value = "获取开票公司和类型列表", tags = {"管理后台-发票管理"}) |
| | | public R<List<TInvoiceType>> pageListR( String company){ |
| | | List<TInvoiceType> list = new ArrayList<>(); |
| | | if (StringUtils.hasLength(company)){ |
| | | list = invoiceTypeService.lambdaQuery().eq(TInvoiceType::getInvoicingCompany, company).list(); |
| | | }else{ |
| | | list = invoiceTypeService.lambdaQuery().list(); |
| | | } |
| | | return R.ok(list); |
| | | } |
| | | |
| | | |
| | | @ResponseBody |