From 97972999a451bfbb7a97ae13be104930b9b63bdd Mon Sep 17 00:00:00 2001 From: "LAPTOP-0SF788NU\\admin" <3306174053@qq.com> Date: Tue, 10 Oct 2023 14:19:48 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E9=93=B6=E8=A1=8C=E5=9B=9E=E5=8D=95?= =?UTF-8?q?=E8=AE=A4=E6=AC=BE,=E9=93=B6=E8=A1=8C=E5=9B=9E=E5=8D=95?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=BD=AC=E7=A7=BB=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../accounting/enums/ErrorCodeConstants.java | 3 ++ .../admin/bankslip/BankSlipController.java | 46 +++++++++---------- .../admin/bankslip/vo/BankSlipBaseVO.java | 22 +++++---- .../bankslip/vo/BankSlipCreateReqVO.java | 8 ++-- .../admin/bankslip/vo/BankSlipExcelVO.java | 13 ++---- .../bankslip/vo/BankSlipExportReqVO.java | 9 ++-- .../admin/bankslip/vo/BankSlipPageReqVO.java | 10 ++-- .../admin/bankslip/vo/BankSlipRespVO.java | 7 ++- .../bankslip/vo/BankSlipUpdateReqVO.java | 10 ++-- .../convert/bankslip/BankSlipConvert.java | 13 ++++-- .../dal/dataobject/bankslip/BankSlipDO.java | 29 +++++++++--- .../dal/mysql/bankslip/BankSlipMapper.java | 13 +++--- .../service/bankslip/BankSlipService.java | 15 ++++-- .../service/bankslip/BankSlipServiceImpl.java | 25 +++++----- .../mapper/bankslip/BankSlipMapper.xml | 2 +- .../archives/enums/ErrorCodeConstants.java | 1 - 16 files changed, 129 insertions(+), 97 deletions(-) rename {yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives => yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting}/controller/admin/bankslip/BankSlipController.java (87%) rename {yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives => yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting}/controller/admin/bankslip/vo/BankSlipBaseVO.java (90%) rename {yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives => yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting}/controller/admin/bankslip/vo/BankSlipCreateReqVO.java (62%) rename {yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives => yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting}/controller/admin/bankslip/vo/BankSlipExcelVO.java (91%) rename {yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives => yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting}/controller/admin/bankslip/vo/BankSlipExportReqVO.java (95%) rename {yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives => yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting}/controller/admin/bankslip/vo/BankSlipPageReqVO.java (96%) rename {yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives => yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting}/controller/admin/bankslip/vo/BankSlipRespVO.java (75%) rename {yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives => yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting}/controller/admin/bankslip/vo/BankSlipUpdateReqVO.java (67%) rename {yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives => yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting}/convert/bankslip/BankSlipConvert.java (55%) rename {yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives => yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting}/dal/dataobject/bankslip/BankSlipDO.java (87%) rename {yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives => yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting}/dal/mysql/bankslip/BankSlipMapper.java (95%) rename {yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives => yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting}/service/bankslip/BankSlipService.java (72%) rename {yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives => yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting}/service/bankslip/BankSlipServiceImpl.java (77%) rename {yudao-module-archives/yudao-module-archives-biz => yudao-module-accounting/yudao-module-accounting-biz}/src/main/resources/mapper/bankslip/BankSlipMapper.xml (85%) diff --git a/yudao-module-accounting/yudao-module-accounting-api/src/main/java/cn/iocoder/yudao/module/accounting/enums/ErrorCodeConstants.java b/yudao-module-accounting/yudao-module-accounting-api/src/main/java/cn/iocoder/yudao/module/accounting/enums/ErrorCodeConstants.java index b920fe50..2695621b 100644 --- a/yudao-module-accounting/yudao-module-accounting-api/src/main/java/cn/iocoder/yudao/module/accounting/enums/ErrorCodeConstants.java +++ b/yudao-module-accounting/yudao-module-accounting-api/src/main/java/cn/iocoder/yudao/module/accounting/enums/ErrorCodeConstants.java @@ -12,4 +12,7 @@ public interface ErrorCodeConstants { ErrorCode ACCOUNTING_REPORT_NOT_EXISTS = new ErrorCode(500100, "会计报表不存在"); ErrorCode INVOICES_NOT_EXISTS = new ErrorCode(400100, "发票不存在"); + + ErrorCode BANK_SLIP_NOT_EXISTS = new ErrorCode(400500, "银行回单不存在"); + } \ No newline at end of file diff --git a/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/controller/admin/bankslip/BankSlipController.java b/yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/controller/admin/bankslip/BankSlipController.java similarity index 87% rename from yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/controller/admin/bankslip/BankSlipController.java rename to yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/controller/admin/bankslip/BankSlipController.java index a14bb713..37472a5d 100644 --- a/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/controller/admin/bankslip/BankSlipController.java +++ b/yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/controller/admin/bankslip/BankSlipController.java @@ -1,34 +1,30 @@ -package cn.iocoder.yudao.module.archives.controller.admin.bankslip; +package cn.iocoder.yudao.module.accounting.controller.admin.bankslip; +import cn.iocoder.yudao.framework.common.pojo.CommonResult; +import cn.iocoder.yudao.framework.common.pojo.PageResult; +import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils; +import cn.iocoder.yudao.framework.operatelog.core.annotations.OperateLog; +import cn.iocoder.yudao.module.accounting.controller.admin.bankslip.vo.*; +import cn.iocoder.yudao.module.accounting.convert.bankslip.BankSlipConvert; +import cn.iocoder.yudao.module.accounting.dal.dataobject.bankslip.BankSlipDO; +import cn.iocoder.yudao.module.accounting.service.bankslip.BankSlipService; import cn.iocoder.yudao.module.setting.service.passwords.PasswordsService; import com.alibaba.fastjson.JSONObject; +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.Parameter; +import io.swagger.v3.oas.annotations.tags.Tag; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; -import org.springframework.validation.annotation.Validated; -import org.springframework.security.access.prepost.PreAuthorize; -import io.swagger.v3.oas.annotations.tags.Tag; -import io.swagger.v3.oas.annotations.Parameter; -import io.swagger.v3.oas.annotations.Operation; - -import javax.validation.constraints.*; -import javax.validation.*; -import javax.servlet.http.*; -import java.util.*; +import javax.servlet.http.HttpServletResponse; +import javax.validation.Valid; import java.io.IOException; +import java.util.Collection; +import java.util.List; -import cn.iocoder.yudao.framework.common.pojo.PageResult; -import cn.iocoder.yudao.framework.common.pojo.CommonResult; import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success; - -import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils; - -import cn.iocoder.yudao.framework.operatelog.core.annotations.OperateLog; -import static cn.iocoder.yudao.framework.operatelog.core.enums.OperateTypeEnum.*; - -import cn.iocoder.yudao.module.archives.controller.admin.bankslip.vo.*; -import cn.iocoder.yudao.module.archives.dal.dataobject.bankslip.BankSlipDO; -import cn.iocoder.yudao.module.archives.convert.bankslip.BankSlipConvert; -import cn.iocoder.yudao.module.archives.service.bankslip.BankSlipService; +import static cn.iocoder.yudao.framework.operatelog.core.enums.OperateTypeEnum.EXPORT; @Tag(name = "管理后台 - 银行回单") @RestController @@ -50,7 +46,7 @@ public class BankSlipController { } @PutMapping("/update") - @Operation(summary = "更新银行回单") + @Operation(summary = "更新/认款银行回单") @PreAuthorize("@ss.hasPermission('archives:bank-slip:update')") public CommonResult updateBankSlip(@Valid @RequestBody BankSlipUpdateReqVO updateReqVO) { bankSlipService.updateBankSlip(updateReqVO); @@ -95,7 +91,7 @@ public class BankSlipController { @GetMapping("/downloadXml") @Operation(summary = "获得银行回单分页Xml") @PreAuthorize("@ss.hasPermission('accounting:invoices:query')") - public void downloadXml(@Valid BankSlipPageReqVO pageVO,HttpServletResponse response) throws IOException { + public void downloadXml(@Valid BankSlipPageReqVO pageVO, HttpServletResponse response) throws IOException { PageResult pageResult = bankSlipService.getBankSlipPage(pageVO); PageResult invoicesRespVOPageResult = BankSlipConvert.INSTANCE.convertPage(pageResult); String jsonString = JSONObject.toJSONString(invoicesRespVOPageResult); diff --git a/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/controller/admin/bankslip/vo/BankSlipBaseVO.java b/yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/controller/admin/bankslip/vo/BankSlipBaseVO.java similarity index 90% rename from yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/controller/admin/bankslip/vo/BankSlipBaseVO.java rename to yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/controller/admin/bankslip/vo/BankSlipBaseVO.java index 11085974..4f5da050 100644 --- a/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/controller/admin/bankslip/vo/BankSlipBaseVO.java +++ b/yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/controller/admin/bankslip/vo/BankSlipBaseVO.java @@ -1,15 +1,11 @@ -package cn.iocoder.yudao.module.archives.controller.admin.bankslip.vo; +package cn.iocoder.yudao.module.accounting.controller.admin.bankslip.vo; import io.swagger.v3.oas.annotations.media.Schema; -import lombok.*; -import java.util.*; -import java.time.LocalDateTime; -import java.time.LocalDateTime; -import java.time.LocalDateTime; -import java.time.LocalDateTime; -import javax.validation.constraints.*; +import lombok.Data; import org.springframework.format.annotation.DateTimeFormat; +import java.time.LocalDateTime; + import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; /** @@ -140,4 +136,14 @@ public class BankSlipBaseVO { @Schema(description = "密码") private String password; + @Schema(description = "认款员工id") + private String staffId; + + @Schema(description = "认款员工名称") + private String staffName; + + @Schema(description = "认款状态 0:未认款 1 已认款") + private String subscriptionStatus; + + } diff --git a/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/controller/admin/bankslip/vo/BankSlipCreateReqVO.java b/yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/controller/admin/bankslip/vo/BankSlipCreateReqVO.java similarity index 62% rename from yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/controller/admin/bankslip/vo/BankSlipCreateReqVO.java rename to yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/controller/admin/bankslip/vo/BankSlipCreateReqVO.java index ca083566..125e671b 100644 --- a/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/controller/admin/bankslip/vo/BankSlipCreateReqVO.java +++ b/yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/controller/admin/bankslip/vo/BankSlipCreateReqVO.java @@ -1,9 +1,9 @@ -package cn.iocoder.yudao.module.archives.controller.admin.bankslip.vo; +package cn.iocoder.yudao.module.accounting.controller.admin.bankslip.vo; -import lombok.*; -import java.util.*; import io.swagger.v3.oas.annotations.media.Schema; -import javax.validation.constraints.*; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; @Schema(description = "管理后台 - 银行回单创建 Request VO") @Data diff --git a/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/controller/admin/bankslip/vo/BankSlipExcelVO.java b/yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/controller/admin/bankslip/vo/BankSlipExcelVO.java similarity index 91% rename from yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/controller/admin/bankslip/vo/BankSlipExcelVO.java rename to yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/controller/admin/bankslip/vo/BankSlipExcelVO.java index acec90b0..e3b0e81e 100644 --- a/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/controller/admin/bankslip/vo/BankSlipExcelVO.java +++ b/yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/controller/admin/bankslip/vo/BankSlipExcelVO.java @@ -1,14 +1,9 @@ -package cn.iocoder.yudao.module.archives.controller.admin.bankslip.vo; - -import io.swagger.v3.oas.annotations.media.Schema; -import lombok.*; -import java.util.*; -import java.time.LocalDateTime; -import java.time.LocalDateTime; -import java.time.LocalDateTime; -import java.time.LocalDateTime; +package cn.iocoder.yudao.module.accounting.controller.admin.bankslip.vo; import com.alibaba.excel.annotation.ExcelProperty; +import lombok.Data; + +import java.time.LocalDateTime; /** * 银行回单 Excel VO diff --git a/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/controller/admin/bankslip/vo/BankSlipExportReqVO.java b/yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/controller/admin/bankslip/vo/BankSlipExportReqVO.java similarity index 95% rename from yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/controller/admin/bankslip/vo/BankSlipExportReqVO.java rename to yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/controller/admin/bankslip/vo/BankSlipExportReqVO.java index bcc36dbe..96e01429 100644 --- a/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/controller/admin/bankslip/vo/BankSlipExportReqVO.java +++ b/yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/controller/admin/bankslip/vo/BankSlipExportReqVO.java @@ -1,12 +1,11 @@ -package cn.iocoder.yudao.module.archives.controller.admin.bankslip.vo; +package cn.iocoder.yudao.module.accounting.controller.admin.bankslip.vo; -import lombok.*; -import java.util.*; import io.swagger.v3.oas.annotations.media.Schema; -import cn.iocoder.yudao.framework.common.pojo.PageParam; -import java.time.LocalDateTime; +import lombok.Data; import org.springframework.format.annotation.DateTimeFormat; +import java.time.LocalDateTime; + import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; @Schema(description = "管理后台 - 银行回单 Excel 导出 Request VO,参数和 BankSlipPageReqVO 是一致的") diff --git a/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/controller/admin/bankslip/vo/BankSlipPageReqVO.java b/yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/controller/admin/bankslip/vo/BankSlipPageReqVO.java similarity index 96% rename from yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/controller/admin/bankslip/vo/BankSlipPageReqVO.java rename to yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/controller/admin/bankslip/vo/BankSlipPageReqVO.java index 041701a3..45e0e28e 100644 --- a/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/controller/admin/bankslip/vo/BankSlipPageReqVO.java +++ b/yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/controller/admin/bankslip/vo/BankSlipPageReqVO.java @@ -1,10 +1,12 @@ -package cn.iocoder.yudao.module.archives.controller.admin.bankslip.vo; +package cn.iocoder.yudao.module.accounting.controller.admin.bankslip.vo; -import lombok.*; -import java.util.*; -import io.swagger.v3.oas.annotations.media.Schema; import cn.iocoder.yudao.framework.common.pojo.PageParam; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; import org.springframework.format.annotation.DateTimeFormat; + import java.time.LocalDateTime; import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; diff --git a/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/controller/admin/bankslip/vo/BankSlipRespVO.java b/yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/controller/admin/bankslip/vo/BankSlipRespVO.java similarity index 75% rename from yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/controller/admin/bankslip/vo/BankSlipRespVO.java rename to yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/controller/admin/bankslip/vo/BankSlipRespVO.java index 29360c8c..d440a353 100644 --- a/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/controller/admin/bankslip/vo/BankSlipRespVO.java +++ b/yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/controller/admin/bankslip/vo/BankSlipRespVO.java @@ -1,7 +1,10 @@ -package cn.iocoder.yudao.module.archives.controller.admin.bankslip.vo; +package cn.iocoder.yudao.module.accounting.controller.admin.bankslip.vo; import io.swagger.v3.oas.annotations.media.Schema; -import lombok.*; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; + import java.time.LocalDateTime; @Schema(description = "管理后台 - 银行回单 Response VO") diff --git a/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/controller/admin/bankslip/vo/BankSlipUpdateReqVO.java b/yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/controller/admin/bankslip/vo/BankSlipUpdateReqVO.java similarity index 67% rename from yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/controller/admin/bankslip/vo/BankSlipUpdateReqVO.java rename to yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/controller/admin/bankslip/vo/BankSlipUpdateReqVO.java index a5e7a9eb..d5c691a1 100644 --- a/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/controller/admin/bankslip/vo/BankSlipUpdateReqVO.java +++ b/yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/controller/admin/bankslip/vo/BankSlipUpdateReqVO.java @@ -1,9 +1,11 @@ -package cn.iocoder.yudao.module.archives.controller.admin.bankslip.vo; +package cn.iocoder.yudao.module.accounting.controller.admin.bankslip.vo; import io.swagger.v3.oas.annotations.media.Schema; -import lombok.*; -import java.util.*; -import javax.validation.constraints.*; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; + +import javax.validation.constraints.NotNull; @Schema(description = "管理后台 - 银行回单更新 Request VO") @Data diff --git a/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/convert/bankslip/BankSlipConvert.java b/yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/convert/bankslip/BankSlipConvert.java similarity index 55% rename from yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/convert/bankslip/BankSlipConvert.java rename to yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/convert/bankslip/BankSlipConvert.java index d15e7150..b304f3b8 100644 --- a/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/convert/bankslip/BankSlipConvert.java +++ b/yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/convert/bankslip/BankSlipConvert.java @@ -1,13 +1,16 @@ -package cn.iocoder.yudao.module.archives.convert.bankslip; +package cn.iocoder.yudao.module.accounting.convert.bankslip; -import java.util.*; import cn.iocoder.yudao.framework.common.pojo.PageResult; - +import cn.iocoder.yudao.module.accounting.controller.admin.bankslip.vo.BankSlipCreateReqVO; +import cn.iocoder.yudao.module.accounting.controller.admin.bankslip.vo.BankSlipExcelVO; +import cn.iocoder.yudao.module.accounting.controller.admin.bankslip.vo.BankSlipRespVO; +import cn.iocoder.yudao.module.accounting.controller.admin.bankslip.vo.BankSlipUpdateReqVO; +import cn.iocoder.yudao.module.accounting.dal.dataobject.bankslip.BankSlipDO; import org.mapstruct.Mapper; import org.mapstruct.factory.Mappers; -import cn.iocoder.yudao.module.archives.controller.admin.bankslip.vo.*; -import cn.iocoder.yudao.module.archives.dal.dataobject.bankslip.BankSlipDO; + +import java.util.List; /** * 银行回单 Convert diff --git a/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/dal/dataobject/bankslip/BankSlipDO.java b/yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/dal/dataobject/bankslip/BankSlipDO.java similarity index 87% rename from yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/dal/dataobject/bankslip/BankSlipDO.java rename to yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/dal/dataobject/bankslip/BankSlipDO.java index 6b78e6f3..460518a7 100644 --- a/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/dal/dataobject/bankslip/BankSlipDO.java +++ b/yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/dal/dataobject/bankslip/BankSlipDO.java @@ -1,13 +1,12 @@ -package cn.iocoder.yudao.module.archives.dal.dataobject.bankslip; +package cn.iocoder.yudao.module.accounting.dal.dataobject.bankslip; +import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO; +import com.baomidou.mybatisplus.annotation.KeySequence; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; import lombok.*; -import java.util.*; -import java.time.LocalDateTime; -import java.time.LocalDateTime; -import java.time.LocalDateTime; + import java.time.LocalDateTime; -import com.baomidou.mybatisplus.annotation.*; -import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO; /** * 银行回单 DO @@ -190,4 +189,20 @@ public class BankSlipDO extends BaseDO { */ private String password; + /** + * 认款员工id + */ + private String staffId; + + /** + * 认款员工名称 + */ + private String staffName; + + /** + * 认款状态 0:未认款 1 已认款 + */ + private String subscriptionStatus; + + } diff --git a/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/dal/mysql/bankslip/BankSlipMapper.java b/yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/dal/mysql/bankslip/BankSlipMapper.java similarity index 95% rename from yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/dal/mysql/bankslip/BankSlipMapper.java rename to yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/dal/mysql/bankslip/BankSlipMapper.java index 388b0bbf..85b5af36 100644 --- a/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/dal/mysql/bankslip/BankSlipMapper.java +++ b/yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/dal/mysql/bankslip/BankSlipMapper.java @@ -1,13 +1,14 @@ -package cn.iocoder.yudao.module.archives.dal.mysql.bankslip; - -import java.util.*; +package cn.iocoder.yudao.module.accounting.dal.mysql.bankslip; import cn.iocoder.yudao.framework.common.pojo.PageResult; -import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX; import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX; -import cn.iocoder.yudao.module.archives.dal.dataobject.bankslip.BankSlipDO; +import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX; +import cn.iocoder.yudao.module.accounting.controller.admin.bankslip.vo.BankSlipExportReqVO; +import cn.iocoder.yudao.module.accounting.controller.admin.bankslip.vo.BankSlipPageReqVO; +import cn.iocoder.yudao.module.accounting.dal.dataobject.bankslip.BankSlipDO; import org.apache.ibatis.annotations.Mapper; -import cn.iocoder.yudao.module.archives.controller.admin.bankslip.vo.*; + +import java.util.List; /** * 银行回单 Mapper diff --git a/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/service/bankslip/BankSlipService.java b/yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/service/bankslip/BankSlipService.java similarity index 72% rename from yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/service/bankslip/BankSlipService.java rename to yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/service/bankslip/BankSlipService.java index b9570820..b0356834 100644 --- a/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/service/bankslip/BankSlipService.java +++ b/yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/service/bankslip/BankSlipService.java @@ -1,10 +1,15 @@ -package cn.iocoder.yudao.module.archives.service.bankslip; +package cn.iocoder.yudao.module.accounting.service.bankslip; -import java.util.*; -import javax.validation.*; -import cn.iocoder.yudao.module.archives.controller.admin.bankslip.vo.*; -import cn.iocoder.yudao.module.archives.dal.dataobject.bankslip.BankSlipDO; import cn.iocoder.yudao.framework.common.pojo.PageResult; +import cn.iocoder.yudao.module.accounting.controller.admin.bankslip.vo.BankSlipCreateReqVO; +import cn.iocoder.yudao.module.accounting.controller.admin.bankslip.vo.BankSlipExportReqVO; +import cn.iocoder.yudao.module.accounting.controller.admin.bankslip.vo.BankSlipPageReqVO; +import cn.iocoder.yudao.module.accounting.controller.admin.bankslip.vo.BankSlipUpdateReqVO; +import cn.iocoder.yudao.module.accounting.dal.dataobject.bankslip.BankSlipDO; + +import javax.validation.Valid; +import java.util.Collection; +import java.util.List; /** * 银行回单 Service 接口 diff --git a/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/service/bankslip/BankSlipServiceImpl.java b/yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/service/bankslip/BankSlipServiceImpl.java similarity index 77% rename from yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/service/bankslip/BankSlipServiceImpl.java rename to yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/service/bankslip/BankSlipServiceImpl.java index 0a2ef405..f6eeb33c 100644 --- a/yudao-module-archives/yudao-module-archives-biz/src/main/java/cn/iocoder/yudao/module/archives/service/bankslip/BankSlipServiceImpl.java +++ b/yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/service/bankslip/BankSlipServiceImpl.java @@ -1,21 +1,24 @@ -package cn.iocoder.yudao.module.archives.service.bankslip; +package cn.iocoder.yudao.module.accounting.service.bankslip; +import cn.iocoder.yudao.framework.common.pojo.PageResult; +import cn.iocoder.yudao.module.accounting.controller.admin.bankslip.vo.BankSlipCreateReqVO; +import cn.iocoder.yudao.module.accounting.controller.admin.bankslip.vo.BankSlipExportReqVO; +import cn.iocoder.yudao.module.accounting.controller.admin.bankslip.vo.BankSlipPageReqVO; +import cn.iocoder.yudao.module.accounting.controller.admin.bankslip.vo.BankSlipUpdateReqVO; +import cn.iocoder.yudao.module.accounting.convert.bankslip.BankSlipConvert; +import cn.iocoder.yudao.module.accounting.dal.dataobject.bankslip.BankSlipDO; +import cn.iocoder.yudao.module.accounting.dal.mysql.bankslip.BankSlipMapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import org.springframework.stereotype.Service; -import javax.annotation.Resource; import org.springframework.validation.annotation.Validated; - +import javax.annotation.Resource; import java.time.LocalDateTime; -import java.util.*; -import cn.iocoder.yudao.module.archives.controller.admin.bankslip.vo.*; -import cn.iocoder.yudao.module.archives.dal.dataobject.bankslip.BankSlipDO; -import cn.iocoder.yudao.framework.common.pojo.PageResult; - -import cn.iocoder.yudao.module.archives.convert.bankslip.BankSlipConvert; -import cn.iocoder.yudao.module.archives.dal.mysql.bankslip.BankSlipMapper; +import java.util.Collection; +import java.util.List; import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception; -import static cn.iocoder.yudao.module.archives.enums.ErrorCodeConstants.*; +import static cn.iocoder.yudao.module.accounting.enums.ErrorCodeConstants.BANK_SLIP_NOT_EXISTS; + /** * 银行回单 Service 实现类 diff --git a/yudao-module-archives/yudao-module-archives-biz/src/main/resources/mapper/bankslip/BankSlipMapper.xml b/yudao-module-accounting/yudao-module-accounting-biz/src/main/resources/mapper/bankslip/BankSlipMapper.xml similarity index 85% rename from yudao-module-archives/yudao-module-archives-biz/src/main/resources/mapper/bankslip/BankSlipMapper.xml rename to yudao-module-accounting/yudao-module-accounting-biz/src/main/resources/mapper/bankslip/BankSlipMapper.xml index 6b7b98f3..ae39a1d6 100644 --- a/yudao-module-archives/yudao-module-archives-biz/src/main/resources/mapper/bankslip/BankSlipMapper.xml +++ b/yudao-module-accounting/yudao-module-accounting-biz/src/main/resources/mapper/bankslip/BankSlipMapper.xml @@ -1,6 +1,6 @@ - +