yupeng
2025-04-03 f625ae7edfa835f5c72967a8bcc1584df8ab61ec
ruoyi-applet/src/main/java/com/ruoyi/web/controller/api/IndexController.java
@@ -295,10 +295,11 @@
        // 添加验收记录
        dto.setCheckPerson(tokenService.getLoginUser().getUser().getNickName());
        checkAcceptRecordService.updateById(dto);
        TContract contract = contractService.getById(dto.getContractId());
        TCheckAcceptRecord checkAcceptRecord = checkAcceptRecordService.getById(dto.getId());
        TContract contract = contractService.getById(checkAcceptRecord.getContractId());
        // 添加账单
        TBill tBill = new TBill();
        tBill.setContractId(dto.getContractId());
        tBill.setContractId(checkAcceptRecord.getContractId());
        tBill.setContractNumber(contract.getContractNumber());
        tBill.setPayableFeesMoney(dto.getCheckMoney());
        tBill.setPayableFeesTime(LocalDate.now());