|
|
|
|
@ -38,7 +38,7 @@ public class InvoiceController extends BladeController { |
|
|
|
|
/** |
|
|
|
|
* 资料表 提交 |
|
|
|
|
*/ |
|
|
|
|
@GetMapping("/submit") |
|
|
|
|
@PostMapping("/submit") |
|
|
|
|
public R submit(@RequestBody List<Invoice> invoices) { |
|
|
|
|
boolean res = false; |
|
|
|
|
List<Invoice> add = new ArrayList<>(); |
|
|
|
|
@ -65,7 +65,7 @@ public class InvoiceController extends BladeController { |
|
|
|
|
/** |
|
|
|
|
* 资料表 修改 |
|
|
|
|
*/ |
|
|
|
|
@GetMapping("/update") |
|
|
|
|
@PostMapping("/update") |
|
|
|
|
public R update(@RequestBody Invoice invoice) { |
|
|
|
|
return R.data(invoiceService.updateById(invoice)); |
|
|
|
|
} |
|
|
|
|
@ -73,7 +73,7 @@ public class InvoiceController extends BladeController { |
|
|
|
|
/** |
|
|
|
|
* 资料表 删除 |
|
|
|
|
*/ |
|
|
|
|
@GetMapping("/remove") |
|
|
|
|
@PostMapping("/remove") |
|
|
|
|
public R remove(@RequestParam String ids) { |
|
|
|
|
return R.status(invoiceService.deleteLogic(Func.toLongList(ids))); |
|
|
|
|
} |
|
|
|
|
|