| | |
| | | package com.ruoyi.web.controller.project; |
| | | |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.annotation.NotRepeatCommit; |
| | | import com.ruoyi.common.annotation.RepeatSubmit; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | 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.TaxMoneyVO; |
| | | import com.ruoyi.project.service.IServiceFunddetailService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | * @author ruoyi |
| | | * @date 2022-01-25 |
| | | */ |
| | | @Slf4j |
| | | @Api("费用申请明细") |
| | | @RestController |
| | | @RequestMapping("/project/funddetail") |
| | |
| | | * 查询费用申请明细列表 |
| | | */ |
| | | @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 |
| | | @RepeatSubmit |
| | | @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") |
| | | @RepeatSubmit |
| | | @NotRepeatCommit(key = "param:arg[1]", value = 30000) |
| | | public AjaxResult edit(@RequestBody ServiceFunddetail serviceFunddetail) { |
| | | log.info("修改的数据信息:{}", serviceFunddetail); |
| | | return toAjax(serviceFunddetailService.updateById(serviceFunddetail)); |
| | | } |
| | | |
| | |
| | | * 删除费用申请明细 |
| | | */ |
| | | @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) { |
| | |
| | | /** |
| | | * 根据受益人编号获取费用申请明细信息 |
| | | */ |
| | | @ApiOperation("根据受益人编号获取费用申请明细信息") |
| | | @ApiOperation("根据受益人身份证号获取费用申请明细信息") |
| | | @PostMapping("/getDataBybeneficiaryNo") |
| | | public AjaxResult getDataBybeneficiaryNo(@RequestBody FunddetailReqVo funddetailReqVo) { |
| | | List<ServiceFunddetail> dataBybeneficiaryNo = serviceFunddetailService.getDataBybeneficiaryNo(funddetailReqVo); |
| | |
| | | } |
| | | |
| | | /** |
| | | * 根据受益人编号获取税费金额 |
| | | * 根据受益人身份证编号获取税费金额 |
| | | * |
| | | * @param taxMoneyVo 受益人编号 |
| | | * @param taxMoneyVo 身份证编号 |
| | | * @return |
| | | */ |
| | | @ApiOperation("根据受益人编号获取税费金额") |
| | | @ApiOperation("根据受益人身份证编号获取税费金额") |
| | | @PostMapping("/getTaxByBeneFiciaryNo") |
| | | public AjaxResult getTaxBeforeByBeneFiciaryNo(@RequestBody TaxMoneyVO taxMoneyVo) { |
| | | return AjaxResult.success(serviceFunddetailService.getTaxByBeneFiciaryNo(taxMoneyVo)); |
| | |
| | | // return AjaxResult.success(serviceFunddetailService.performance(serviceFunddetail)); |
| | | // } |
| | | |
| | | /** |
| | | * 查询绩效奖金统计 |
| | | */ |
| | | @ApiOperation("查询绩效奖金统计") |
| | | @PostMapping("/getListBySpStatBonus") |
| | | public TableDataInfo getListBySpStatBonus(@RequestBody SpStatBonusReq spStatBonusReq) { |
| | | startPage(); |
| | | return getDataTable(serviceFunddetailService.getListBySpStatBonus(spStatBonusReq)); |
| | | } |
| | | } |