| | |
| | | @ResponseBody |
| | | public Object again(@RequestParam Integer tInvoiceId) { |
| | | TInvoice tInvoice = tInvoiceService.selectById(tInvoiceId); |
| | | tInvoice.setState(2); |
| | | tInvoiceService.updateById(tInvoice); |
| | | return SUCCESS_TIP; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 批量同意或者拒绝开票 |
| | | */ |
| | | @RequestMapping(value = "/updateState") |
| | | @ResponseBody |
| | | public Object again(Integer state, String ids) { |
| | | String[] arr = ids.split(","); |
| | | for (String s : arr) { |
| | | TInvoice tInvoice = tInvoiceService.selectById(s); |
| | | if (tInvoice.getState() == 1){ |
| | | tInvoice.setState(state); |
| | | tInvoiceService.updateById(tInvoice); |
| | | } |
| | | } |
| | | |
| | | return SUCCESS_TIP; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 删除开发票列表 |