|  |  | 
 |  |  | import com.ruoyi.common.core.domain.AjaxResult; | 
 |  |  | import com.ruoyi.common.core.page.TableDataInfo; | 
 |  |  | import com.ruoyi.common.enums.BusinessType; | 
 |  |  | import com.ruoyi.common.exception.base.BaseException; | 
 |  |  | import com.ruoyi.common.utils.poi.ExcelUtil; | 
 |  |  | import com.ruoyi.project.domain.FunddetailReqVo; | 
 |  |  | import com.ruoyi.project.domain.ServiceFunddetail; | 
 |  |  | import com.ruoyi.project.domain.SpStatBonusReq; | 
 |  |  | import com.ruoyi.project.domain.vo.TaxMoneyByItemEO; | 
 |  |  | import com.ruoyi.project.domain.vo.TaxMoneySumEO; | 
 |  |  | import com.ruoyi.project.domain.vo.TaxMoneyVO; | 
 |  |  | import com.ruoyi.project.service.IServiceFunddetailService; | 
 |  |  | import io.swagger.annotations.Api; | 
 |  |  | 
 |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
 |  |  | import org.springframework.web.bind.annotation.*; | 
 |  |  |  | 
 |  |  | import java.util.Arrays; | 
 |  |  | import java.util.List; | 
 |  |  | import java.time.LocalDate; | 
 |  |  | import java.time.ZoneId; | 
 |  |  | import java.time.temporal.TemporalAdjusters; | 
 |  |  | import java.util.*; | 
 |  |  |  | 
 |  |  | /** | 
 |  |  |  * 费用申请明细Controller | 
 |  |  | 
 |  |  |      * 查询费用申请明细列表 | 
 |  |  |      */ | 
 |  |  |     @ApiOperation("查询费用申请明细列表") | 
 |  |  |     //@PreAuthorize("@ss.hasPermi('project:funddetail:list')") | 
 |  |  |     //// @PreAuthorize("@ss.hasPermi('project:funddetail:list')") | 
 |  |  |     @GetMapping("/list") | 
 |  |  |     public TableDataInfo list(ServiceFunddetail serviceFunddetail) { | 
 |  |  |         startPage(); | 
 |  |  | 
 |  |  |      * 导出费用申请明细列表 | 
 |  |  |      */ | 
 |  |  |     @ApiOperation("导出费用申请明细列表") | 
 |  |  |     //@PreAuthorize("@ss.hasPermi('project:funddetail:export')") | 
 |  |  |     //// @PreAuthorize("@ss.hasPermi('project:funddetail:export')") | 
 |  |  |     @Log(title = "费用申请明细", businessType = BusinessType.EXPORT) | 
 |  |  |     @GetMapping("/export") | 
 |  |  |     public AjaxResult export(ServiceFunddetail serviceFunddetail) { | 
 |  |  | 
 |  |  |      * 获取费用申请明细详细信息 | 
 |  |  |      */ | 
 |  |  |     @ApiOperation("获取费用申请明细详细信息") | 
 |  |  |     //@PreAuthorize("@ss.hasPermi('project:funddetail:query')") | 
 |  |  |     //// @PreAuthorize("@ss.hasPermi('project:funddetail:query')") | 
 |  |  |     @GetMapping(value = "/{id}") | 
 |  |  |     public AjaxResult getInfo(@PathVariable("id") Long id) { | 
 |  |  |         return AjaxResult.success(serviceFunddetailService.getById(id)); | 
 |  |  | 
 |  |  |      * 新增费用申请明细 | 
 |  |  |      */ | 
 |  |  |     @ApiOperation("新增费用申请明细") | 
 |  |  |     //@PreAuthorize("@ss.hasPermi('project:funddetail:add')") | 
 |  |  |     //// @PreAuthorize("@ss.hasPermi('project:funddetail:add')") | 
 |  |  |     @Log(title = "费用申请明细", businessType = BusinessType.INSERT) | 
 |  |  |     @PostMapping | 
 |  |  |     @PostMapping("/add") | 
 |  |  |     @NotRepeatCommit(key = "param:arg[1]", value = 30000) | 
 |  |  |     public AjaxResult add(@RequestBody ServiceFunddetail serviceFunddetail) { | 
 |  |  |         return toAjax(serviceFunddetailService.save(serviceFunddetail)); | 
 |  |  |         boolean save = serviceFunddetailService.save(serviceFunddetail); | 
 |  |  |         return AjaxResult.success(serviceFunddetail); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 修改费用申请明细 | 
 |  |  |      */ | 
 |  |  |     @ApiOperation("修改费用申请明细") | 
 |  |  |     //@PreAuthorize("@ss.hasPermi('project:funddetail:edit')") | 
 |  |  |     //// @PreAuthorize("@ss.hasPermi('project:funddetail:edit')") | 
 |  |  |     @Log(title = "费用申请明细", businessType = BusinessType.UPDATE) | 
 |  |  |     @PostMapping("/edit") | 
 |  |  |     @NotRepeatCommit(key = "param:arg[1]", value = 30000) | 
 |  |  | 
 |  |  |      * 删除费用申请明细 | 
 |  |  |      */ | 
 |  |  |     @ApiOperation("删除费用申请明细") | 
 |  |  |     //@PreAuthorize("@ss.hasPermi('project:funddetail:remove')") | 
 |  |  |     //// @PreAuthorize("@ss.hasPermi('project:funddetail:remove')") | 
 |  |  |     @Log(title = "费用申请明细", businessType = BusinessType.DELETE) | 
 |  |  |     @GetMapping("/remove/{ids}") | 
 |  |  |     public AjaxResult remove(@PathVariable Long[] ids) { | 
 |  |  | 
 |  |  |         return AjaxResult.success(serviceFunddetailService.getFundDetail(id)); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @ApiOperation("根据条件算税") | 
 |  |  |     @PostMapping("/calculateTax") | 
 |  |  |     public AjaxResult calculateTax(@RequestBody List<ServiceFunddetail> serviceFunddetails) { | 
 |  |  |         return AjaxResult.success(serviceFunddetailService.calculateTax(serviceFunddetails)); | 
 |  |  |     } | 
 |  |  | //    @ApiOperation("根据条件算税") | 
 |  |  | //    @PostMapping("/calculateTax") | 
 |  |  | //    public AjaxResult calculateTax(@RequestBody List<ServiceFunddetail> serviceFunddetails) { | 
 |  |  | //        return AjaxResult.success(serviceFunddetailService.calculateTax2(serviceFunddetails)); | 
 |  |  | //    } | 
 |  |  |  | 
 |  |  | //    /** | 
 |  |  | //     * 绩效计算 | 
 |  |  | 
 |  |  | //        return AjaxResult.success(serviceFunddetailService.performance(serviceFunddetail)); | 
 |  |  | //    } | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 查询绩效奖金统计 | 
 |  |  |      */ | 
 |  |  |     @ApiOperation("查询绩效奖金统计") | 
 |  |  |     @PostMapping("/getListBySpStatBonus") | 
 |  |  |     public TableDataInfo getListBySpStatBonus(@RequestBody SpStatBonusReq spStatBonusReq) { | 
 |  |  |         startPage(); | 
 |  |  |         return getDataTable(serviceFunddetailService.getListBySpStatBonus(spStatBonusReq)); | 
 |  |  |     } | 
 |  |  | } |