|
@@ -68,6 +68,26 @@ public class TaInvoiceDetailController extends BaseController {
|
68
|
68
|
return ResponseBean.success(result);
|
69
|
69
|
}
|
70
|
70
|
|
|
71
|
+
|
|
72
|
+ /**
|
|
73
|
+ * 分页查询列表
|
|
74
|
+ * @param pageNum
|
|
75
|
+ * @param pageSize
|
|
76
|
+ * @return
|
|
77
|
+ */
|
|
78
|
+ @RequestMapping(value="/admin/invoice/{invoiceId}/detail",method= RequestMethod.GET)
|
|
79
|
+ @ApiOperation(value="报销列表", notes = "报销列表", httpMethod = "GET", response = ResponseBean.class)
|
|
80
|
+ public ResponseBean getList(@ApiParam("页码") @RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
|
|
81
|
+ @ApiParam("单页数据量") @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize,
|
|
82
|
+ @ApiParam("班级ID") @PathVariable(value ="invoiceId") String invoiceId,
|
|
83
|
+ @ApiParam("单位名称") @PathVariable(value ="orgName", required = false) String orgName,
|
|
84
|
+ @ApiParam("报销人名称") @PathVariable(value ="personName", required = false) String personName) throws Exception{
|
|
85
|
+
|
|
86
|
+ IPage<TaInvoiceDetail> pg = new Page<>(pageNum, pageSize);
|
|
87
|
+ IPage<TaInvoiceDetail> result = iTaInvoiceDetailService.getPageBy(pg, invoiceId, orgName, personName);
|
|
88
|
+ return ResponseBean.success(result);
|
|
89
|
+ }
|
|
90
|
+
|
71
|
91
|
@RequestMapping(value="/admin/invoice/{invoiceId}/detail-tpl",method= RequestMethod.POST)
|
72
|
92
|
@ApiOperation(value="一键生成", notes = "一键生成", httpMethod = "POST", response = ResponseBean.class)
|
73
|
93
|
public ResponseBean taInvoiceDetailAdd(@ApiParam("班级ID") @PathVariable(value ="invoiceId") String invoiceId) throws Exception{
|