liusheng
2023-08-07 4b6e55140537e4932f4ea46f6c62c72af1ddb40e
ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFundController.java
@@ -27,6 +27,7 @@
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.Options;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.CollectionUtils;
import org.springframework.web.bind.annotation.*;
import java.io.*;
@@ -582,15 +583,19 @@
    /**
     * 修改费用申请主
     * 修改费用申请
     */
    @ApiOperation("修改费用申请主")
    @ApiOperation("修改费用申请")
    //@PreAuthorize("@ss.hasPermi('project:fund:edit')")
    @Log(title = "费用申请主", businessType = BusinessType.UPDATE)
    @PutMapping
    @RepeatSubmit
    public AjaxResult edit(@RequestBody ServiceFund serviceFund) {
        List<ServiceFund> infoByInfoIdList = serviceFundService.queryInfoById(serviceFund);
        if (CollectionUtils.isEmpty(infoByInfoIdList)) {
            log.info("修改费用申请,通过入参查询 serviceFundService.queryInfoById数据为空,入参:{}", serviceFund);
            return toAjax(false);
        }
        for (ServiceFund sf : infoByInfoIdList) {
            //如果等于100,说明已经走到医院财务那边了;财务那边取数据是从分享表取,所以,这里直接往分享表里添加数据就行了
            if (sf.getBackflowlevel() == 100 || sf.getBackflowlevel() == 199) {