yanghb
2023-04-21 0481353111afb43a2322e18530dde26f1d841ead
ManagementTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/general/TInvoiceController.java
@@ -108,32 +108,9 @@
    @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;
    }
    /**
     * 删除开发票列表