|
|
|
|
6
|
import com.njyunzhi.invoice.common.BaseController;
|
6
|
import com.njyunzhi.invoice.common.BaseController;
|
7
|
import com.njyunzhi.invoice.common.Constants;
|
7
|
import com.njyunzhi.invoice.common.Constants;
|
8
|
import com.njyunzhi.invoice.common.ResponseBean;
|
8
|
import com.njyunzhi.invoice.common.ResponseBean;
|
|
|
9
|
+import com.njyunzhi.invoice.common.StringUtils;
|
9
|
import io.swagger.annotations.Api;
|
10
|
import io.swagger.annotations.Api;
|
10
|
import io.swagger.annotations.ApiOperation;
|
11
|
import io.swagger.annotations.ApiOperation;
|
11
|
import io.swagger.annotations.ApiParam;
|
12
|
import io.swagger.annotations.ApiParam;
|
|
|
|
|
51
|
@ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
|
52
|
@ApiOperation(value="列表", notes = "列表", httpMethod = "GET", response = ResponseBean.class)
|
52
|
public ResponseBean taInvoiceOrgList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
|
53
|
public ResponseBean taInvoiceOrgList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
|
53
|
@ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize,
|
54
|
@ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize,
|
54
|
- @ApiParam("班级ID") @PathVariable(value ="invoiceId") String invoiceId) throws Exception{
|
|
|
|
|
55
|
+ @ApiParam("班级ID") @PathVariable(value ="invoiceId") String invoiceId,
|
|
|
56
|
+ @ApiParam("单位名称") @RequestParam(value ="name", required = false) String name) throws Exception{
|
55
|
|
57
|
|
56
|
IPage<TaInvoiceOrg> pg = new Page<>(pageNum, pageSize);
|
58
|
IPage<TaInvoiceOrg> pg = new Page<>(pageNum, pageSize);
|
57
|
QueryWrapper<TaInvoiceOrg> queryWrapper = new QueryWrapper<>();
|
59
|
QueryWrapper<TaInvoiceOrg> queryWrapper = new QueryWrapper<>();
|
58
|
queryWrapper.gt("status", Constants.STATUS_DELETE);
|
60
|
queryWrapper.gt("status", Constants.STATUS_DELETE);
|
|
|
61
|
+ queryWrapper.like(!StringUtils.isEmpty(name),"name", "%" + name + "%");
|
59
|
queryWrapper.eq("invoice_id", invoiceId);
|
62
|
queryWrapper.eq("invoice_id", invoiceId);
|
60
|
queryWrapper.orderByDesc("create_date");
|
63
|
queryWrapper.orderByDesc("create_date");
|
61
|
|
64
|
|