ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFundController.java
@@ -1,8 +1,6 @@ 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.NotRepeatCommit; import com.ruoyi.common.annotation.RepeatSubmit; @@ -10,14 +8,12 @@ import com.ruoyi.common.constant.HttpStatus; import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.entity.SysDept; import com.ruoyi.common.core.domain.entity.SysUser; import com.ruoyi.common.core.domain.model.LoginUser; 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; import com.ruoyi.common.utils.bean.DtoConversionUtils; @@ -26,7 +22,6 @@ import com.ruoyi.project.domain.vo.*; import com.ruoyi.project.mapper.ServiceFunddetailMapper; import com.ruoyi.project.service.*; import com.ruoyi.system.service.ISysDeptService; import com.ruoyi.system.service.ISysPostService; import com.ruoyi.system.service.ISysUserService; import freemarker.template.Configuration; @@ -36,12 +31,9 @@ import io.swagger.annotations.ApiOperation; import lombok.extern.slf4j.Slf4j; import org.apache.ibatis.annotations.Options; import org.apache.poi.ss.formula.functions.T; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.datasource.DataSourceTransactionManager; import org.springframework.transaction.TransactionDefinition; import org.springframework.transaction.TransactionStatus; import org.springframework.transaction.annotation.Transactional; import org.springframework.util.CollectionUtils; import org.springframework.web.bind.annotation.*; @@ -202,6 +194,17 @@ return getCustomDataTable(list, pageNum, pageSize); } /** * æ ¹æ®æéæ¾ç¤ºå®¡æ ¸å表 */ @ApiOperation("æ ¹æ®æéæ¾ç¤ºå®¡æ ¸å表") @Log(title = "æ ¹æ®æéæ¾ç¤ºå®¡æ ¸å表", businessType = BusinessType.OTHER) @PostMapping("/getExpertfeeList") public TableDataInfo getExpertfeeList(@RequestBody SpSelectExpertfee spSelectExpertfee) { List<SpFinancialExpensesFundOut> expertfeeList = serviceFundService.getExpertfeeList(spSelectExpertfee); return getCustomDataTable(expertfeeList, spSelectExpertfee.getPageNum(), spSelectExpertfee.getPageSize()); } @ApiOperation("æ¥è¯¢è´¹ç¨ç³è¯·ä¸»å表") //@PreAuthorize("@ss.hasPermi('project:fund:list')") @GetMapping(value = "/getInfo/{infoid}") ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFundtaxController.java
@@ -7,7 +7,12 @@ import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.project.domain.ServiceFund; import com.ruoyi.project.domain.ServiceFundtax; import com.ruoyi.project.domain.vo.FundTaxVO; import com.ruoyi.project.domain.vo.TotalTaxVO; import com.ruoyi.project.service.IServiceFundService; import com.ruoyi.project.service.IServiceFunddetailService; import com.ruoyi.project.service.IServiceFundtaxService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; @@ -16,21 +21,26 @@ import org.springframework.web.bind.annotation.*; import java.util.Arrays; import java.util.Date; import java.util.List; import java.util.UUID; /** * ä¸å®¶è´¹ç¨ç®ç¨ç³è¯·ä¸»Controller * * * @author ruoyi * @date 2024-03-13 */ @Api("ä¸å®¶è´¹ç¨ç®ç¨ç³è¯·ä¸»") @RestController @RequestMapping("/system/fundtax") public class ServiceFundtaxController extends BaseController { @RequestMapping("/project/fundtax") public class ServiceFundtaxController extends BaseController { @Autowired private IServiceFundtaxService serviceFundtaxService; @Autowired private IServiceFundService serviceFundService; /** * æ¥è¯¢ä¸å®¶è´¹ç¨ç®ç¨ç³è¯·ä¸»å表 @@ -38,8 +48,7 @@ @ApiOperation("æ¥è¯¢ä¸å®¶è´¹ç¨ç®ç¨ç³è¯·ä¸»å表") @PreAuthorize("@ss.hasPermi('system:fundtax:list')") @GetMapping("/list") public TableDataInfo list(ServiceFundtax serviceFundtax) { public TableDataInfo list(ServiceFundtax serviceFundtax) { startPage(); List<ServiceFundtax> list = serviceFundtaxService.queryList(serviceFundtax); return getDataTable(list); @@ -52,8 +61,7 @@ @PreAuthorize("@ss.hasPermi('system:fundtax:export')") @Log(title = "ä¸å®¶è´¹ç¨ç®ç¨ç³è¯·ä¸»", businessType = BusinessType.EXPORT) @GetMapping("/export") public AjaxResult export(ServiceFundtax serviceFundtax) { public AjaxResult export(ServiceFundtax serviceFundtax) { List<ServiceFundtax> list = serviceFundtaxService.queryList(serviceFundtax); ExcelUtil<ServiceFundtax> util = new ExcelUtil<ServiceFundtax>(ServiceFundtax.class); return util.exportExcel(list, "ä¸å®¶è´¹ç¨ç®ç¨ç³è¯·ä¸»æ°æ®"); @@ -64,23 +72,9 @@ */ @ApiOperation("è·åä¸å®¶è´¹ç¨ç®ç¨ç³è¯·ä¸»è¯¦ç»ä¿¡æ¯") @PreAuthorize("@ss.hasPermi('system:fundtax:query')") @GetMapping(value = "/{id}") public AjaxResult getInfo(@PathVariable("id") Long id) { @GetMapping(value = "/getInfo/{id}") public AjaxResult getInfo(@PathVariable("id") Long id) { return AjaxResult.success(serviceFundtaxService.getById(id)); } /** * æ°å¢ä¸å®¶è´¹ç¨ç®ç¨ç³è¯·ä¸» */ @ApiOperation("æ°å¢ä¸å®¶è´¹ç¨ç®ç¨ç³è¯·ä¸»") @PreAuthorize("@ss.hasPermi('system:fundtax:add')") @Log(title = "ä¸å®¶è´¹ç¨ç®ç¨ç³è¯·ä¸»", businessType = BusinessType.INSERT) @PostMapping @RepeatSubmit public AjaxResult add(@RequestBody ServiceFundtax serviceFundtax) { return toAjax(serviceFundtaxService.save(serviceFundtax)); } /** @@ -89,10 +83,9 @@ @ApiOperation("ä¿®æ¹ä¸å®¶è´¹ç¨ç®ç¨ç³è¯·ä¸»") @PreAuthorize("@ss.hasPermi('system:fundtax:edit')") @Log(title = "ä¸å®¶è´¹ç¨ç®ç¨ç³è¯·ä¸»", businessType = BusinessType.UPDATE) @PutMapping @RepeatSubmit public AjaxResult edit(@RequestBody ServiceFundtax serviceFundtax) { @PostMapping("/edit") @RepeatSubmit public AjaxResult edit(@RequestBody ServiceFundtax serviceFundtax) { return toAjax(serviceFundtaxService.updateById(serviceFundtax)); } @@ -102,9 +95,55 @@ @ApiOperation("å é¤ä¸å®¶è´¹ç¨ç®ç¨ç³è¯·ä¸»") @PreAuthorize("@ss.hasPermi('system:fundtax:remove')") @Log(title = "ä¸å®¶è´¹ç¨ç®ç¨ç³è¯·ä¸»", businessType = BusinessType.DELETE) @DeleteMapping("/{ids}") public AjaxResult remove(@PathVariable Long[] ids) { return toAjax(serviceFundtaxService.removeByIds(Arrays.asList(ids))); @GetMapping("/remove/id") public AjaxResult remove(@PathVariable Long id) { ServiceFundtax serviceFundtax = new ServiceFundtax(); serviceFundtax.setDel_flag(1); serviceFundtax.setId(id); return toAjax(serviceFundtaxService.updateById(serviceFundtax)); } /** * æ°å¢ä¸å®¶è´¹ç¨ç®ç¨ç³è¯·ä¸» */ @ApiOperation("æ°å¢ä¸å®¶è´¹ç¨ç®ç¨ç³è¯·ä¸»") @PreAuthorize("@ss.hasPermi('system:fundtax:add')") @Log(title = "ä¸å®¶è´¹ç¨ç®ç¨ç³è¯·ä¸»", businessType = BusinessType.INSERT) @PostMapping("/addFundTax") public AjaxResult addFundTax(@RequestBody List<ServiceFund> fundList) { ServiceFundtax serviceFundtax = new ServiceFundtax(); serviceFundtax.setTaxedtime(new Date()); serviceFundtax.setApplyno(UUID.randomUUID().toString()); boolean save = serviceFundtaxService.save(serviceFundtax); for (ServiceFund serviceFund : fundList) { serviceFund.setFundTaxId(serviceFundtax.getId()); serviceFundService.updateById(serviceFund); } return toAjax(save); } /** * è·åfundTaxidçæå¤§å¼ * * @return */ @ApiOperation("è·åfundTaxidçæå¤§å¼") @GetMapping(value = "/getMaxFundTaxId") public AjaxResult getMaxFundTaxId() { Integer maxFundTaxId = serviceFundtaxService.getMaxFundTaxId(); return success(maxFundTaxId.toString()); } /** * æ¹éç®ç¨ * * @param fundTaxVO * @return */ @ApiOperation("æ¹éç®ç¨") @PostMapping(value = "/batchFundTax") public AjaxResult batchFundTax(@RequestBody FundTaxVO fundTaxVO) { return toAjax(serviceFundtaxService.batchFundTax(fundTaxVO)); } } ruoyi-project/src/main/java/com/ruoyi/project/domain/ServiceFund.java
@@ -380,6 +380,13 @@ @Excel(name = "绩æï¼1ãæåº¦ã2å£åº¦ã3年度") private Integer performancetype; /** * ä¸å®¶è´¹ç¨ç®ç¨ç³è¯·ä¸»è¡¨ID */ @ApiModelProperty("ä¸å®¶è´¹ç¨ç®ç¨ç³è¯·ä¸»è¡¨ID") @Excel(name = "ä¸å®¶è´¹ç¨ç®ç¨ç³è¯·ä¸»è¡¨ID") private Long fundTaxId; } ruoyi-project/src/main/java/com/ruoyi/project/domain/ServiceFundtax.java
@@ -1,6 +1,7 @@ package com.ruoyi.project.domain; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.fasterxml.jackson.annotation.JsonFormat; import com.ruoyi.common.annotation.Excel; @@ -11,181 +12,252 @@ import java.math.BigDecimal; import java.util.Date; import java.util.List; /** * ä¸å®¶è´¹ç¨ç®ç¨ç³è¯·ä¸»å¯¹è±¡ service_fundtax * * * @author ruoyi * @date 2024-03-13 */ @Data @ApiModel("ä¸å®¶è´¹ç¨ç®ç¨ç³è¯·ä¸»") public class ServiceFundtax extends BaseEntity { public class ServiceFundtax extends BaseEntity { private static final long serialVersionUID = 1L; /** 主é®id */ /** * 主é®id */ @ApiModelProperty("主é®id") //æ°æ®åºèªå¢æ¹æ@TableId(type = IdType.AUTO) @TableId(type = IdType.AUTO) private Long id; /** ç³è¯·ç¼å· */ /** * ç³è¯·ç¼å· */ @ApiModelProperty("ç³è¯·ç¼å·") @Excel(name = "ç³è¯·ç¼å·") private String applyno; /** ç®ç¨æ¶é´ */ /** * ç®ç¨æ¶é´ */ @ApiModelProperty("ç®ç¨æ¶é´") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @Excel(name = "ç®ç¨æ¶é´", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") private Date taxedtime; /** ç³è¯·äººç¼å· */ /** * ç³è¯·äººç¼å· */ @ApiModelProperty("ç³è¯·äººç¼å·") @Excel(name = "ç³è¯·äººç¼å·") private String userno; /** ç³è¯·äººå§å */ /** * ç³è¯·äººå§å */ @ApiModelProperty("ç³è¯·äººå§å") @Excel(name = "ç³è¯·äººå§å") private String username; /** é¨é¨ç¼å· */ /** * é¨é¨ç¼å· */ @ApiModelProperty("é¨é¨ç¼å·") @Excel(name = "é¨é¨ç¼å·") private String deptmentno; /** é¨é¨åç§° */ /** * é¨é¨åç§° */ @ApiModelProperty("é¨é¨åç§°") @Excel(name = "é¨é¨åç§°") private String deptmentname; /** é¨é¨ä¸»ç®¡å·¥å· */ /** * é¨é¨ä¸»ç®¡å·¥å· */ @ApiModelProperty("é¨é¨ä¸»ç®¡å·¥å·") @Excel(name = "é¨é¨ä¸»ç®¡å·¥å·") private String managerno; /** é¨é¨ä¸»ç®¡åå */ /** * é¨é¨ä¸»ç®¡åå */ @ApiModelProperty("é¨é¨ä¸»ç®¡åå") @Excel(name = "é¨é¨ä¸»ç®¡åå") private String managername; /** ç¨åéé¢å计 */ /** * ç¨åéé¢å计 */ @ApiModelProperty("ç¨åéé¢å计") @Excel(name = "ç¨åéé¢å计") private BigDecimal pretaxamount; /** ç¨åéé¢å计 */ /** * ç¨åéé¢å计 */ @ApiModelProperty("ç¨åéé¢å计") @Excel(name = "ç¨åéé¢å计") private BigDecimal taxedamount; /** è´¹ç¨æ»éé¢ */ /** * è´¹ç¨æ»éé¢ */ @ApiModelProperty("è´¹ç¨æ»éé¢") @Excel(name = "è´¹ç¨æ»éé¢") private BigDecimal taxamount; /** å»å¦ææ¬å计 */ /** * å»å¦ææ¬å计 */ @ApiModelProperty("å»å¦ææ¬å计") @Excel(name = "å»å¦ææ¬å计") private BigDecimal medicalcost; /** éä½ä¿®å¤æ¯æææ¬å计 */ /** * éä½ä¿®å¤æ¯æææ¬å计 */ @ApiModelProperty("éä½ä¿®å¤æ¯æææ¬å计") @Excel(name = "éä½ä¿®å¤æ¯æææ¬å计") private BigDecimal bodymaintaincost; /** å¨å®è·åææ¬å计 */ /** * å¨å®è·åææ¬å计 */ @ApiModelProperty("å¨å®è·åææ¬å计") @Excel(name = "å¨å®è·åææ¬å计") private BigDecimal organgaincost; /** å¨å®å»å¦æ¯æææ¬ */ /** * å¨å®å»å¦æ¯æææ¬ */ @ApiModelProperty("å¨å®å»å¦æ¯æææ¬") @Excel(name = "å¨å®å»å¦æ¯æææ¬") private BigDecimal organmaintaincost; /** è®°å½ç¶æ */ /** * è®°å½ç¶æ */ @ApiModelProperty("è®°å½ç¶æ") @Excel(name = "è®°å½ç¶æ") private Long recordstatus; /** é¢å®¡ç¶æï¼1ãå¾ é¢å®¡ï¼2ãé¢ç®éè¿ï¼çå¾ çº¸è´¨æ¥éææï¼3ãæ¶å°çº¸è´¨æ¥éææ */ /** * é¢å®¡ç¶æï¼1ãå¾ é¢å®¡ï¼2ãé¢ç®éè¿ï¼çå¾ çº¸è´¨æ¥éææï¼3ãæ¶å°çº¸è´¨æ¥éææ */ @ApiModelProperty("é¢å®¡ç¶æï¼1ãå¾ é¢å®¡ï¼2ãé¢ç®éè¿ï¼çå¾ çº¸è´¨æ¥éææï¼3ãæ¶å°çº¸è´¨æ¥éææ") @Excel(name = "é¢å®¡ç¶æï¼1ãå¾ é¢å®¡ï¼2ãé¢ç®éè¿ï¼çå¾ çº¸è´¨æ¥éææï¼3ãæ¶å°çº¸è´¨æ¥éææ") private Long checkstatus; /** å½åå®¡æ ¸çº§å« å¤äºåªä¸ªé¶æ®µ 0ï¼ç³è¯·ï¼1ï¼ä¸çº§å®¡æ ¸ï¼2ï¼äºçº§å®¡æ ¸ï¼3ï¼ä¸çº§å®¡æ ¸ç */ /** * å½åå®¡æ ¸çº§å« å¤äºåªä¸ªé¶æ®µ 0ï¼ç³è¯·ï¼1ï¼ä¸çº§å®¡æ ¸ï¼2ï¼äºçº§å®¡æ ¸ï¼3ï¼ä¸çº§å®¡æ ¸ç */ @ApiModelProperty("å½åå®¡æ ¸çº§å« å¤äºåªä¸ªé¶æ®µ 0ï¼ç³è¯·ï¼1ï¼ä¸çº§å®¡æ ¸ï¼2ï¼äºçº§å®¡æ ¸ï¼3ï¼ä¸çº§å®¡æ ¸ç") @Excel(name = "å½åå®¡æ ¸çº§å« å¤äºåªä¸ªé¶æ®µ 0ï¼ç³è¯·ï¼1ï¼ä¸çº§å®¡æ ¸ï¼2ï¼äºçº§å®¡æ ¸ï¼3ï¼ä¸çº§å®¡æ ¸ç") private Long flowlevel; /** è´¢å¡éå199ï¼ä¸ä¼ å»é¢100ï¼ */ /** * è´¢å¡éå199ï¼ä¸ä¼ å»é¢100ï¼ */ @ApiModelProperty("è´¢å¡éå199ï¼ä¸ä¼ å»é¢100ï¼") @Excel(name = "è´¢å¡éå199ï¼ä¸ä¼ å»é¢100ï¼") private Long backflowlevel; /** åæ¾ç¶æ */ /** * åæ¾ç¶æ */ @ApiModelProperty("åæ¾ç¶æ") @Excel(name = "åæ¾ç¶æ") private String isdistribute; /** 仿¬¾æ¥æ */ /** * 仿¬¾æ¥æ */ @ApiModelProperty("仿¬¾æ¥æ") @Excel(name = "仿¬¾æ¥æ") private String riqi; /** ä¸å¿ç¾å */ /** * ä¸å¿ç¾å */ @ApiModelProperty("ä¸å¿ç¾å") @Excel(name = "ä¸å¿ç¾å") private String opochecker; /** è´¢å¡å¯é¢é¿ç¾å */ /** * è´¢å¡å¯é¢é¿ç¾å */ @ApiModelProperty("è´¢å¡å¯é¢é¿ç¾å") @Excel(name = "è´¢å¡å¯é¢é¿ç¾å") private String finvicepresident; /** ä¸å¡å¯é¢é¿ç¾å */ /** * ä¸å¡å¯é¢é¿ç¾å */ @ApiModelProperty("ä¸å¡å¯é¢é¿ç¾å") @Excel(name = "ä¸å¡å¯é¢é¿ç¾å") private String busvicepresident; /** é¢é¿å®¡æ¹ */ /** * é¢é¿å®¡æ¹ */ @ApiModelProperty("é¢é¿å®¡æ¹") @Excel(name = "é¢é¿å®¡æ¹") private String president; /** åå ¬å®¤ä¸»ä»»ç¾å */ /** * åå ¬å®¤ä¸»ä»»ç¾å */ @ApiModelProperty("åå ¬å®¤ä¸»ä»»ç¾å") @Excel(name = "åå ¬å®¤ä¸»ä»»ç¾å") private String officedirector; /** è´¢å¡å®¤ä¸»ä»»ç¾å */ /** * è´¢å¡å®¤ä¸»ä»»ç¾å */ @ApiModelProperty("è´¢å¡å®¤ä¸»ä»»ç¾å") @Excel(name = "è´¢å¡å®¤ä¸»ä»»ç¾å") private String financedirector; /** è´¢å¡å®¡æ ¸ */ /** * è´¢å¡å®¡æ ¸ */ @ApiModelProperty("è´¢å¡å®¡æ ¸") @Excel(name = "è´¢å¡å®¡æ ¸") private String financechecher; /** æ°æ®æ¯å¦å 许è¿å ¥shared表 0ï¼å¦ 1ï¼æ¯ï¼2ï¼å·²è¿å ¥ */ /** * æ°æ®æ¯å¦å 许è¿å ¥shared表 0ï¼å¦ 1ï¼æ¯ï¼2ï¼å·²è¿å ¥ */ @ApiModelProperty("æ°æ®æ¯å¦å 许è¿å ¥shared表 0ï¼å¦ 1ï¼æ¯ï¼2ï¼å·²è¿å ¥") @Excel(name = "æ°æ®æ¯å¦å 许è¿å ¥shared表 0ï¼å¦ 1ï¼æ¯ï¼2ï¼å·²è¿å ¥") private String uploadflag; /** ä¸ä¼ æ¶é´ */ /** * ä¸ä¼ æ¶é´ */ @ApiModelProperty("ä¸ä¼ æ¶é´") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @Excel(name = "ä¸ä¼ æ¶é´", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") private Date uploadtime; /** æ¥ç¨è®°å½æå ¥å享表失败 */ /** * æ¥ç¨è®°å½æå ¥å享表失败 */ @ApiModelProperty("æ¥ç¨è®°å½æå ¥å享表失败") @Excel(name = "æ¥ç¨è®°å½æå ¥å享表失败") private String updownremark; /** * serviceFundséå */ @ApiModelProperty("serviceFundséå") @TableField(exist = false) private List<ServiceFund> serviceFunds; } ruoyi-project/src/main/java/com/ruoyi/project/domain/vo/FundTaxVO.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,26 @@ package com.ruoyi.project.domain.vo; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.util.List; /** * åè®¡ä¸ªç¨ * * @author ls */ @Data public class FundTaxVO { /** * fundTaxid */ @ApiModelProperty("fundTaxid") Long fundTaxId; /** * æ°å¢ï¼0 ä¿®æ¹ï¼1 */ @ApiModelProperty("æä½ :æ°å¢ï¼0 ä¿®æ¹ï¼1") Integer addOrupdate; } ruoyi-project/src/main/java/com/ruoyi/project/domain/vo/SpSelectExpertfee.java
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,49 @@ package com.ruoyi.project.domain.vo; import com.ruoyi.common.core.page.PageDomain; import io.swagger.annotations.ApiModelProperty; import lombok.Data; @Data public class SpSelectExpertfee extends PageDomain { /** * ä¸å¡ç±»åï¼åå¼1-5ï¼1æ¯ä¸å®¶è´¹ */ @ApiModelProperty("ä¸å¡ç±»åï¼åå¼1-5ï¼1æ¯ä¸å®¶è´¹") private Integer paApplyType; /** * æç®è ï¼å¯ä»¥æ¨¡ç³æç´¢ */ @ApiModelProperty("æç®è ï¼å¯ä»¥æ¨¡ç³æç´¢") private String donorname = ""; /** * å®¡æ ¸äººï¼047æ¯éæ å */ @ApiModelProperty("å®¡æ ¸äººï¼047æ¯éæ å") private String pacheckno = ""; /** * å®¡æ ¸ç¶æï¼0æ¯æªå®¡æ ¸ */ @ApiModelProperty("å®¡æ ¸ç¶æï¼0æ¯æªå®¡æ ¸") private Integer checkstatus = null; /** * é¨é¨ç¼å· */ @ApiModelProperty("é¨é¨ç¼å·") private String padepartno = ""; /** * ç»åäººï¼æ¯ææ¨¡ç³æç´¢ */ @ApiModelProperty("ç»åäººï¼æ¯ææ¨¡ç³æç´¢") private String pausername = ""; } ruoyi-project/src/main/java/com/ruoyi/project/mapper/ServiceFundMapper.java
@@ -36,4 +36,6 @@ List<SpFinancialExpensesFundOut> getListBypower(@Param("PAUSERNO") String PAUSERNO, @Param("PAFUNDTYPE") Integer PAFUNDTYPE, @Param("PAAPPLICANT") String PAAPPLICANT, @Param("PAAPPLICATIONBEGTIME") String PAAPPLICATIONBEGTIME, @Param("PAAPPLICATIONENDTIME") String PAAPPLICATIONENDTIME, @Param("PADEPARTMENT") String PADEPARTMENT, @Param("CHECKFLAG") Integer CHECKFLAG, @Param("APPLYTYPE") Integer APPLYTYPE, @Param("CHECKSTATUS") Integer CHECKSTATUS,@Param("donorname")String donorname); List<SpFinancialExpensesFundOut> getExpertfeeList(@Param("PAAPPLYTYPE") Integer PAAPPLYTYPE, @Param("DONORNAME") String DONORNAME, @Param("PACHECKNO") String PACHECKNO, @Param("CHECKSTATUS") Integer CHECKSTATUS, @Param("PADEPARTNO") String PADEPARTNO, @Param("PAUSERNAME") String PAUSERNAME); } ruoyi-project/src/main/java/com/ruoyi/project/mapper/ServiceFundtaxMapper.java
@@ -3,17 +3,18 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.ruoyi.project.domain.ServiceFundtax; import org.apache.ibatis.annotations.Mapper; import java.util.List; /** * ä¸å®¶è´¹ç¨ç®ç¨ç³è¯·ä¸»Mapperæ¥å£ * * * @author ruoyi * @date 2024-03-13 */ public interface ServiceFundtaxMapper extends BaseMapper<ServiceFundtax> { @Mapper public interface ServiceFundtaxMapper extends BaseMapper<ServiceFundtax> { /** * æ¥è¯¢ä¸å®¶è´¹ç¨ç®ç¨ç³è¯·ä¸»å表 * @@ -21,4 +22,11 @@ * @return ä¸å®¶è´¹ç¨ç®ç¨ç³è¯·ä¸»éå */ public List<ServiceFundtax> selectServiceFundtaxList(ServiceFundtax serviceFundtax); /** * è·åIDæå¤§å¼ * * @return */ public Integer getMaxFundTaxId(); } ruoyi-project/src/main/java/com/ruoyi/project/service/IServiceFundService.java
@@ -53,6 +53,8 @@ List<SpFinancialExpensesFundOut> getListBypower(String PAUSERNO, Integer PAFUNDTYPE, String PAAPPLICANT, String PAAPPLICATIONBEGTIME, String PAAPPLICATIONENDTIME, String PADEPARTMENT, Integer CHECKFLAG, Integer APPLYTYPE, Integer CHECKSTATUS, String donorname); List<SpFinancialExpensesFundOut> getExpertfeeList(SpSelectExpertfee spSelectExpertfee); int countItem(Long infoid, Long itemid); Long addOrUpdateNew(ServiceFundVO serviceFundVO); ruoyi-project/src/main/java/com/ruoyi/project/service/IServiceFundtaxService.java
@@ -2,23 +2,29 @@ import com.baomidou.mybatisplus.extension.service.IService; import com.ruoyi.project.domain.ServiceFundtax; import com.ruoyi.project.domain.vo.FundTaxVO; import com.ruoyi.project.domain.vo.TotalTaxVO; import org.springframework.web.bind.annotation.RequestBody; import java.util.List; /** * ä¸å®¶è´¹ç¨ç®ç¨ç³è¯·ä¸»Serviceæ¥å£ * * * @author ruoyi * @date 2024-03-13 */ public interface IServiceFundtaxService extends IService<ServiceFundtax> { public interface IServiceFundtaxService extends IService<ServiceFundtax> { /** * æ¥è¯¢ä¸å®¶è´¹ç¨ç®ç¨ç³è¯·ä¸»å表 * * * @param serviceFundtax ä¸å®¶è´¹ç¨ç®ç¨ç³è¯·ä¸» * @return ä¸å®¶è´¹ç¨ç®ç¨ç³è¯·ä¸»éå */ public List<ServiceFundtax> queryList(ServiceFundtax serviceFundtax); public Integer getMaxFundTaxId(); public Boolean batchFundTax(FundTaxVO fundTaxVO); } ruoyi-project/src/main/java/com/ruoyi/project/service/impl/ServiceFundServiceImpl.java
@@ -88,6 +88,9 @@ if (serviceFund.getId() != null) { wrappers.eq(ServiceFund::getId, serviceFund.getId()); } if (serviceFund.getFundTaxId() != null) { wrappers.eq(ServiceFund::getFundTaxId, serviceFund.getFundTaxId()); } if (StringUtils.isNotBlank(serviceFund.getUserno())) { wrappers.eq(ServiceFund::getUserno, serviceFund.getUserno()); } @@ -684,6 +687,11 @@ } @Override public List<SpFinancialExpensesFundOut> getExpertfeeList(SpSelectExpertfee spSelectExpertfee) { return serviceFundMapper.getExpertfeeList(spSelectExpertfee.getPaApplyType(), spSelectExpertfee.getDonorname(), spSelectExpertfee.getPacheckno(), spSelectExpertfee.getCheckstatus(), spSelectExpertfee.getPadepartno(), spSelectExpertfee.getPausername()); } @Override public int countItem(Long infoid, Long itemid) { List<ServiceFund> serviceFunds = serviceFundMapper.getInfoByInfoId(infoid); int count = 0; ruoyi-project/src/main/java/com/ruoyi/project/service/impl/ServiceFundtaxServiceImpl.java
@@ -3,131 +3,179 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.ruoyi.common.exception.base.BaseException; import com.ruoyi.common.utils.StringUtils; import com.ruoyi.project.domain.ServiceFund; import com.ruoyi.project.domain.ServiceFunddetail; import com.ruoyi.project.domain.ServiceFundtax; import com.ruoyi.project.domain.vo.FundTaxVO; import com.ruoyi.project.mapper.ServiceFunddetailMapper; import com.ruoyi.project.mapper.ServiceFundtaxMapper; import com.ruoyi.project.service.IServiceFundService; import com.ruoyi.project.service.IServiceFunddetailService; import com.ruoyi.project.service.IServiceFundtaxService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import java.util.List; /** * ä¸å®¶è´¹ç¨ç®ç¨ç³è¯·ä¸»Serviceä¸å¡å±å¤ç * * * @author ruoyi * @date 2024-03-13 */ @Service public class ServiceFundtaxServiceImpl extends ServiceImpl<ServiceFundtaxMapper, ServiceFundtax> implements IServiceFundtaxService { public class ServiceFundtaxServiceImpl extends ServiceImpl<ServiceFundtaxMapper, ServiceFundtax> implements IServiceFundtaxService { @Autowired private ServiceFunddetailMapper serviceFunddetailMapper; @Autowired private IServiceFunddetailService serviceFunddetailService; @Autowired private IServiceFundService serviceFundService; @Autowired private ServiceFundtaxMapper serviceFundtaxMapper; /** * æ¥è¯¢ä¸å®¶è´¹ç¨ç®ç¨ç³è¯·ä¸»å表 * * * @param serviceFundtax ä¸å®¶è´¹ç¨ç®ç¨ç³è¯·ä¸» * @return ä¸å®¶è´¹ç¨ç®ç¨ç³è¯·ä¸» */ @Override public List<ServiceFundtax> queryList(ServiceFundtax serviceFundtax) { LambdaQueryWrapper<ServiceFundtax> wrappers = Wrappers.lambdaQuery(); if (StringUtils.isNotBlank(serviceFundtax.getApplyno())){ wrappers.eq(ServiceFundtax::getApplyno ,serviceFundtax.getApplyno()); if (StringUtils.isNotBlank(serviceFundtax.getApplyno())) { wrappers.eq(ServiceFundtax::getApplyno, serviceFundtax.getApplyno()); } if (serviceFundtax.getTaxedtime() != null){ wrappers.eq(ServiceFundtax::getTaxedtime ,serviceFundtax.getTaxedtime()); if (serviceFundtax.getTaxedtime() != null) { wrappers.eq(ServiceFundtax::getTaxedtime, serviceFundtax.getTaxedtime()); } if (StringUtils.isNotBlank(serviceFundtax.getUserno())){ wrappers.eq(ServiceFundtax::getUserno ,serviceFundtax.getUserno()); if (StringUtils.isNotBlank(serviceFundtax.getUserno())) { wrappers.eq(ServiceFundtax::getUserno, serviceFundtax.getUserno()); } if (StringUtils.isNotBlank(serviceFundtax.getUsername())){ wrappers.like(ServiceFundtax::getUsername ,serviceFundtax.getUsername()); if (StringUtils.isNotBlank(serviceFundtax.getUsername())) { wrappers.like(ServiceFundtax::getUsername, serviceFundtax.getUsername()); } if (StringUtils.isNotBlank(serviceFundtax.getDeptmentno())){ wrappers.eq(ServiceFundtax::getDeptmentno ,serviceFundtax.getDeptmentno()); if (StringUtils.isNotBlank(serviceFundtax.getDeptmentno())) { wrappers.eq(ServiceFundtax::getDeptmentno, serviceFundtax.getDeptmentno()); } if (StringUtils.isNotBlank(serviceFundtax.getDeptmentname())){ wrappers.like(ServiceFundtax::getDeptmentname ,serviceFundtax.getDeptmentname()); if (StringUtils.isNotBlank(serviceFundtax.getDeptmentname())) { wrappers.like(ServiceFundtax::getDeptmentname, serviceFundtax.getDeptmentname()); } if (StringUtils.isNotBlank(serviceFundtax.getManagerno())){ wrappers.eq(ServiceFundtax::getManagerno ,serviceFundtax.getManagerno()); if (StringUtils.isNotBlank(serviceFundtax.getManagerno())) { wrappers.eq(ServiceFundtax::getManagerno, serviceFundtax.getManagerno()); } if (StringUtils.isNotBlank(serviceFundtax.getManagername())){ wrappers.like(ServiceFundtax::getManagername ,serviceFundtax.getManagername()); if (StringUtils.isNotBlank(serviceFundtax.getManagername())) { wrappers.like(ServiceFundtax::getManagername, serviceFundtax.getManagername()); } if (serviceFundtax.getPretaxamount() != null){ wrappers.eq(ServiceFundtax::getPretaxamount ,serviceFundtax.getPretaxamount()); if (serviceFundtax.getPretaxamount() != null) { wrappers.eq(ServiceFundtax::getPretaxamount, serviceFundtax.getPretaxamount()); } if (serviceFundtax.getTaxedamount() != null){ wrappers.eq(ServiceFundtax::getTaxedamount ,serviceFundtax.getTaxedamount()); if (serviceFundtax.getTaxedamount() != null) { wrappers.eq(ServiceFundtax::getTaxedamount, serviceFundtax.getTaxedamount()); } if (serviceFundtax.getTaxamount() != null){ wrappers.eq(ServiceFundtax::getTaxamount ,serviceFundtax.getTaxamount()); if (serviceFundtax.getTaxamount() != null) { wrappers.eq(ServiceFundtax::getTaxamount, serviceFundtax.getTaxamount()); } if (serviceFundtax.getMedicalcost() != null){ wrappers.eq(ServiceFundtax::getMedicalcost ,serviceFundtax.getMedicalcost()); if (serviceFundtax.getMedicalcost() != null) { wrappers.eq(ServiceFundtax::getMedicalcost, serviceFundtax.getMedicalcost()); } if (serviceFundtax.getBodymaintaincost() != null){ wrappers.eq(ServiceFundtax::getBodymaintaincost ,serviceFundtax.getBodymaintaincost()); if (serviceFundtax.getBodymaintaincost() != null) { wrappers.eq(ServiceFundtax::getBodymaintaincost, serviceFundtax.getBodymaintaincost()); } if (serviceFundtax.getOrgangaincost() != null){ wrappers.eq(ServiceFundtax::getOrgangaincost ,serviceFundtax.getOrgangaincost()); if (serviceFundtax.getOrgangaincost() != null) { wrappers.eq(ServiceFundtax::getOrgangaincost, serviceFundtax.getOrgangaincost()); } if (serviceFundtax.getOrganmaintaincost() != null){ wrappers.eq(ServiceFundtax::getOrganmaintaincost ,serviceFundtax.getOrganmaintaincost()); if (serviceFundtax.getOrganmaintaincost() != null) { wrappers.eq(ServiceFundtax::getOrganmaintaincost, serviceFundtax.getOrganmaintaincost()); } if (StringUtils.isNotBlank(serviceFundtax.getRemark())){ wrappers.eq(ServiceFundtax::getRemark ,serviceFundtax.getRemark()); if (StringUtils.isNotBlank(serviceFundtax.getRemark())) { wrappers.eq(ServiceFundtax::getRemark, serviceFundtax.getRemark()); } if (serviceFundtax.getRecordstatus() != null){ wrappers.eq(ServiceFundtax::getRecordstatus ,serviceFundtax.getRecordstatus()); if (serviceFundtax.getRecordstatus() != null) { wrappers.eq(ServiceFundtax::getRecordstatus, serviceFundtax.getRecordstatus()); } if (serviceFundtax.getCheckstatus() != null){ wrappers.eq(ServiceFundtax::getCheckstatus ,serviceFundtax.getCheckstatus()); if (serviceFundtax.getCheckstatus() != null) { wrappers.eq(ServiceFundtax::getCheckstatus, serviceFundtax.getCheckstatus()); } if (serviceFundtax.getFlowlevel() != null){ wrappers.eq(ServiceFundtax::getFlowlevel ,serviceFundtax.getFlowlevel()); if (serviceFundtax.getFlowlevel() != null) { wrappers.eq(ServiceFundtax::getFlowlevel, serviceFundtax.getFlowlevel()); } if (serviceFundtax.getBackflowlevel() != null){ wrappers.eq(ServiceFundtax::getBackflowlevel ,serviceFundtax.getBackflowlevel()); if (serviceFundtax.getBackflowlevel() != null) { wrappers.eq(ServiceFundtax::getBackflowlevel, serviceFundtax.getBackflowlevel()); } if (StringUtils.isNotBlank(serviceFundtax.getIsdistribute())){ wrappers.eq(ServiceFundtax::getIsdistribute ,serviceFundtax.getIsdistribute()); if (StringUtils.isNotBlank(serviceFundtax.getIsdistribute())) { wrappers.eq(ServiceFundtax::getIsdistribute, serviceFundtax.getIsdistribute()); } if (StringUtils.isNotBlank(serviceFundtax.getRiqi())){ wrappers.eq(ServiceFundtax::getRiqi ,serviceFundtax.getRiqi()); if (StringUtils.isNotBlank(serviceFundtax.getRiqi())) { wrappers.eq(ServiceFundtax::getRiqi, serviceFundtax.getRiqi()); } if (StringUtils.isNotBlank(serviceFundtax.getOpochecker())){ wrappers.eq(ServiceFundtax::getOpochecker ,serviceFundtax.getOpochecker()); if (StringUtils.isNotBlank(serviceFundtax.getOpochecker())) { wrappers.eq(ServiceFundtax::getOpochecker, serviceFundtax.getOpochecker()); } if (StringUtils.isNotBlank(serviceFundtax.getFinvicepresident())){ wrappers.eq(ServiceFundtax::getFinvicepresident ,serviceFundtax.getFinvicepresident()); if (StringUtils.isNotBlank(serviceFundtax.getFinvicepresident())) { wrappers.eq(ServiceFundtax::getFinvicepresident, serviceFundtax.getFinvicepresident()); } if (StringUtils.isNotBlank(serviceFundtax.getBusvicepresident())){ wrappers.eq(ServiceFundtax::getBusvicepresident ,serviceFundtax.getBusvicepresident()); if (StringUtils.isNotBlank(serviceFundtax.getBusvicepresident())) { wrappers.eq(ServiceFundtax::getBusvicepresident, serviceFundtax.getBusvicepresident()); } if (StringUtils.isNotBlank(serviceFundtax.getPresident())){ wrappers.eq(ServiceFundtax::getPresident ,serviceFundtax.getPresident()); if (StringUtils.isNotBlank(serviceFundtax.getPresident())) { wrappers.eq(ServiceFundtax::getPresident, serviceFundtax.getPresident()); } if (StringUtils.isNotBlank(serviceFundtax.getOfficedirector())){ wrappers.eq(ServiceFundtax::getOfficedirector ,serviceFundtax.getOfficedirector()); if (StringUtils.isNotBlank(serviceFundtax.getOfficedirector())) { wrappers.eq(ServiceFundtax::getOfficedirector, serviceFundtax.getOfficedirector()); } if (StringUtils.isNotBlank(serviceFundtax.getFinancedirector())){ wrappers.eq(ServiceFundtax::getFinancedirector ,serviceFundtax.getFinancedirector()); if (StringUtils.isNotBlank(serviceFundtax.getFinancedirector())) { wrappers.eq(ServiceFundtax::getFinancedirector, serviceFundtax.getFinancedirector()); } if (StringUtils.isNotBlank(serviceFundtax.getFinancechecher())){ wrappers.eq(ServiceFundtax::getFinancechecher ,serviceFundtax.getFinancechecher()); if (StringUtils.isNotBlank(serviceFundtax.getFinancechecher())) { wrappers.eq(ServiceFundtax::getFinancechecher, serviceFundtax.getFinancechecher()); } if (StringUtils.isNotBlank(serviceFundtax.getUploadflag())){ wrappers.eq(ServiceFundtax::getUploadflag ,serviceFundtax.getUploadflag()); if (StringUtils.isNotBlank(serviceFundtax.getUploadflag())) { wrappers.eq(ServiceFundtax::getUploadflag, serviceFundtax.getUploadflag()); } if (serviceFundtax.getUploadtime() != null){ wrappers.eq(ServiceFundtax::getUploadtime ,serviceFundtax.getUploadtime()); if (serviceFundtax.getUploadtime() != null) { wrappers.eq(ServiceFundtax::getUploadtime, serviceFundtax.getUploadtime()); } if (StringUtils.isNotBlank(serviceFundtax.getUpdownremark())){ wrappers.eq(ServiceFundtax::getUpdownremark ,serviceFundtax.getUpdownremark()); if (StringUtils.isNotBlank(serviceFundtax.getUpdownremark())) { wrappers.eq(ServiceFundtax::getUpdownremark, serviceFundtax.getUpdownremark()); } return this.list(wrappers); } @Override public Integer getMaxFundTaxId() { return serviceFundtaxMapper.getMaxFundTaxId(); } @Override @Transactional(rollbackFor = Exception.class) public Boolean batchFundTax(FundTaxVO fundTaxVO) { if (fundTaxVO.getFundTaxId() == null) { throw new BaseException("åæ¹ç®ç¨åºé®é¢äº,è¯·æ£æ¥ååè¿è¡è®¡ç®"); } if (fundTaxVO.getAddOrupdate() == 1) { Integer maxFundTaxId = serviceFundtaxMapper.getMaxFundTaxId(); if (fundTaxVO.getFundTaxId() != maxFundTaxId.longValue()) { throw new BaseException("è¯¥æ¹æ°æ®ä¸è½ç®ç¨"); } } ServiceFund serviceFund = new ServiceFund(); serviceFund.setFundTaxId(fundTaxVO.getFundTaxId()); serviceFund.setDel_flag(0); List<ServiceFund> serviceFunds = serviceFundService.selectServiceFundList(serviceFund); for (ServiceFund serviceFund1 : serviceFunds) { ServiceFunddetail serviceFunddetail = new ServiceFunddetail(); serviceFunddetail.setFundid(serviceFund1.getId()); List<ServiceFunddetail> serviceFunddetails = serviceFunddetailMapper.selectServiceFunddetailList(serviceFunddetail); serviceFunddetailService.calculateTax(serviceFunddetails); } return true; } } ruoyi-project/src/main/resources/mapper/project/ServiceFundMapper.xml
@@ -64,6 +64,7 @@ <result property="uploadStates" column="upload_states"/> <result property="notes" column="notes"/> <result property="jxrq" column="jxrq"/> <result property="fundTaxId" column="fund_tax_id"/> </resultMap> <sql id="selectServiceFundVo"> @@ -125,7 +126,8 @@ fundtaxtime, upload_states, jxrq, notes notes, fund_tax_id from service_fund </sql> @@ -135,6 +137,7 @@ where del_flag = '0' <if test="donorno != null and donorno != ''">and DonorNo = #{donorno}</if> <if test="fundTaxId != null ">and fund_tax_id = #{fundTaxId}</if> <if test="userno != null and userno != ''">and UserNo = #{userno}</if> <if test="username != null and username != ''">and UserName like concat('%', #{username}, '%')</if> <if test="applytype != null and applytype != ''">and ApplyType = #{applytype}</if> @@ -207,6 +210,7 @@ `service_fund`.`PretaxCost` AS `pretaxcost`, `service_fund`.`TaxedCost` AS `taxedcost`, `service_fund`.`jxrq` AS `jxrq`, `service_fund`.`fund_tax_id` AS `fundTaxId`, `service_funddetail`.`ID` AS `fdid`, `service_funddetail`.`fundID` AS `fundid`, `service_funddetail`.`BeneficiaryName` AS `beneficiaryname`, @@ -261,4 +265,9 @@ resultType="com.ruoyi.project.domain.vo.SpFinancialExpensesFundOut"> call SP_FINANCIAL_EXPENSES(#{PAUSERNO,mode=IN,jdbcType=VARCHAR},#{PAFUNDTYPE,mode=IN,jdbcType=INTEGER},#{PAAPPLICANT,mode=IN,jdbcType=VARCHAR},#{PAAPPLICATIONBEGTIME,mode=IN,jdbcType=VARCHAR},#{PAAPPLICATIONENDTIME,mode=IN,jdbcType=VARCHAR},#{PADEPARTMENT,mode=IN,jdbcType=VARCHAR},#{CHECKFLAG,mode=IN,jdbcType=INTEGER},#{APPLYTYPE,mode=IN,jdbcType=INTEGER},#{CHECKSTATUS,mode=IN,jdbcType=INTEGER},#{donorname,mode=IN,jdbcType=VARCHAR}) </select> <select id="getExpertfeeList" statementType="CALLABLE" resultType="com.ruoyi.project.domain.vo.SpFinancialExpensesFundOut"> call SP_SELECT_EXPERTFEE(#{PAAPPLYTYPE,mode=IN,jdbcType=INTEGER},#{DONORNAME,mode=IN,jdbcType=VARCHAR},#{PACHECKNO,mode=IN,jdbcType=VARCHAR},#{CHECKSTATUS,mode=IN,jdbcType=INTEGER},#{PADEPARTNO,mode=IN,jdbcType=VARCHAR},#{PAUSERNAME,mode=IN,jdbcType=VARCHAR}) </select> </mapper> ruoyi-project/src/main/resources/mapper/project/ServiceFundtaxMapper.xml
@@ -132,4 +132,10 @@ </where> </select> <select id="getMaxFundTaxId" resultType="integer"> select max(id) maxid from service_fund where del_flag = 0; </select> </mapper>