| | |
| | | package com.ruoyi.web.controller.project; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.annotation.RepeatSubmit; |
| | |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.exception.ServiceException; |
| | | import com.ruoyi.common.exception.base.BaseException; |
| | | import com.ruoyi.common.tax.TaxtUtils; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | |
| | | |
| | | return toAjax(false); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 删除费用申请主 |
| | |
| | | return AjaxResult.success(serviceFundService.performance(serviceFundVO)); |
| | | } |
| | | |
| | | /** |
| | | * 合计个税 |
| | | */ |
| | | @ApiOperation("合计个税") |
| | | @Log(title = "合计个税", businessType = BusinessType.INSERT) |
| | | @PostMapping("/totaltax") |
| | | @RepeatSubmit |
| | | public AjaxResult totaltax(@RequestBody TotalTaxVO totalTaxVO) { |
| | | Map<String, List<ServiceFunddetailExcel>> totaltax = serviceFundService.totaltax(totalTaxVO); |
| | | if (ObjectUtils.isEmpty(totaltax)) { |
| | | throw new BaseException("合计个税失败"); |
| | | } |
| | | |
| | | Set<String> strings = totaltax.keySet(); |
| | | String key2 = null; |
| | | for (String key : strings) { |
| | | key2 = key; |
| | | } |
| | | ExcelUtil<ServiceFunddetailExcel> util = new ExcelUtil<ServiceFunddetailExcel>(ServiceFunddetailExcel.class); |
| | | return AjaxResult.success(util.exportExcel(totaltax.get(key2), key2)); |
| | | |
| | | |
| | | } |
| | | |
| | | } |