liusheng
2024-02-26 b891387422e8af819a59dafa3c650cd4e3dc43dc
ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ServiceFundController.java
@@ -537,8 +537,8 @@
                    //说明是财务退回再提交的.需要出纳再看一遍,没问题之后,往分享表里新增
//                    serviceFundService.addFundSharedInfo(serviceFund.getId());
                    serviceFund.setFlowlevel(serviceFundflowrules.get(0).getTotallevel().longValue());
                    serviceFund.setFlowlevel(100L);
                    serviceFund.setRecordstatus(99);
                    serviceFund.setUploadStates(0);
                    serviceFundService.updateById(serviceFund);
                    //保存审批流程表
@@ -646,22 +646,19 @@
    @Log(title = "费用上报", businessType = BusinessType.UPDATE)
    @PostMapping("/fundEdit")
    @RepeatSubmit
    public AjaxResult fundEdit(@RequestBody ServiceFund serviceFund) {
    public AjaxResult fundEdit(@RequestBody ServiceFundVO serviceFundVO) {
        ServiceFund serviceFund = DtoConversionUtils.sourceToTarget(serviceFundVO, ServiceFund.class);
        log.info("修改费用申请入参:{}", serviceFund);
        List<ServiceFund> infoByInfoIdList = serviceFundService.queryInfoById(serviceFund);
        log.info("修改费用申请,通过入参查询 serviceFundService.queryInfoById数据为空,入参:{}", infoByInfoIdList.size());
        if (CollectionUtils.isEmpty(infoByInfoIdList)) {
            return toAjax(false);
            Long id = serviceFundService.addOrUpdateNew(serviceFundVO);
            serviceFund.setId(id);
        }
        Long flowLavel = null;
        LoginUser loginUser = getLoginUser();
//        SysUser user = loginUser.getUser();
//        //查询当前用户的组长
//        SysDept sysDept = new SysDept();
//        sysDept.setDeptId(loginUser.getDeptId());
//        List<SysDept> sysDepts = sysDeptService.selectDeptList(sysDept);
        //查询必审人
        ServiceFundflowrule serviceFundflowrule = new ServiceFundflowrule();