| New file |
| | |
| | | package com.by4cloud.platformx.business.dto; |
| | | |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class CurrentOverdueQueryDTO { |
| | | |
| | | private String contractName; |
| | | |
| | | private String busGuestName; |
| | | |
| | | } |
| | |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.by4cloud.platformx.common.data.mybatis.BaseModel; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import jakarta.persistence.Column; |
| | | import jakarta.persistence.Entity; |
| | | import jakarta.persistence.Table; |
| | | import jakarta.persistence.Transient; |
| | | import lombok.Data; |
| | | import org.hibernate.annotations.Table; |
| | | |
| | | import javax.persistence.Transient; |
| | | import java.math.BigDecimal; |
| | | |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.ToString; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author cd |
| | | * @description |
| | | * @description 合同管理 |
| | | * @date 2026/4/29 10:51 |
| | | **/ |
| | | @Data |
| | | @Entity |
| | | @Table(appliesTo = "contract", comment = "合同管理") |
| | | @Table(name = "contract") |
| | | @ToString(callSuper = true) |
| | | @EqualsAndHashCode(callSuper = true) |
| | | public class Contract extends BaseModel<Contract> { |
| | | |
| | | |
| | |
| | | private String partyA; |
| | | |
| | | @Schema(description = "乙方id") |
| | | @Column(columnDefinition = "VARCHAR(100) comment '乙方id'") |
| | | private String partyBId; |
| | | @Column(columnDefinition = "bigint comment '乙方id'") |
| | | private Long partyBId; |
| | | |
| | | @Schema(description = "乙方名称") |
| | | @Column(columnDefinition = "VARCHAR(100) comment '乙方名称'") |
| | |
| | | @Schema(description = "合同类型(0-生成式 1-备案式)") |
| | | @Column(columnDefinition = "tinyint(2) default 0 comment '合同类型'") |
| | | private Integer contractType; |
| | | |
| | | @Schema(description = "供应属性 0-成品 1-备件 2-大修 3-其他") |
| | | @Column(columnDefinition = "tinyint(2) default 0 comment '供应属性 0-成品 1-备件 2-大修 3-其他'") |
| | | private Integer supplyAttribute; |
| | | |
| | | @Schema(description = "合同状态(0-草稿 1-已生效 2-已终止 3-已过期)") |
| | | @Column(columnDefinition = "tinyint(2) default 0 comment '合同状态'") |
| | |
| | | @Transient |
| | | @TableField(exist = false) |
| | | private String approverName; |
| | | /** |
| | | * 标的物 |
| | | */ |
| | | @Transient |
| | | @TableField(exist = false) |
| | | private List<ContractSubjectMatter> contractSubjectMatterList; |
| | | |
| | | |
| | | /** |
| | | * 收款阶段 |
| | | */ |
| | | @Transient |
| | | @TableField(exist = false) |
| | | private List<ContractPaymentSchedule> contractPaymentScheduleList; |
| | | |
| | | /** |
| | | * 临时字段 - 合同剩余天数 |
| | | */ |
| | | @Transient |
| | | @TableField(exist = false) |
| | | @Schema(description = "合同剩余天数(临时字段)") |
| | | private Long remainingDays; |
| | | } |
| | |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import jakarta.persistence.Column; |
| | | import jakarta.persistence.Entity; |
| | | import jakarta.persistence.Table; |
| | | import jakarta.persistence.Transient; |
| | | import lombok.Data; |
| | | import org.hibernate.annotations.Table; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.ToString; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 合同收款计划/履约节点实体类 |
| | |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(appliesTo = "contract_payment_schedule", comment = "合同收款计划/履约节点表") |
| | | @Table(name = "contract_payment_schedule") |
| | | @ToString(callSuper = true) |
| | | @EqualsAndHashCode(callSuper = true) |
| | | public class ContractPaymentSchedule extends BaseModel<ContractPaymentSchedule> { |
| | | |
| | | // ==================== 关联信息 ==================== |
| | |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import jakarta.persistence.Column; |
| | | import jakarta.persistence.Entity; |
| | | import jakarta.persistence.Table; |
| | | import jakarta.persistence.Transient; |
| | | import lombok.Data; |
| | | import org.hibernate.annotations.Table; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.ToString; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 合同标的物明细实体类 |
| | |
| | | */ |
| | | @Data |
| | | @Entity |
| | | @Table(appliesTo = "contract_subject_matter", comment = "合同标的物明细表") |
| | | @Table(name = "contract_subject_matter") |
| | | @ToString(callSuper = true) |
| | | @EqualsAndHashCode(callSuper = true) |
| | | public class ContractSubjectMatter extends BaseModel<ContractSubjectMatter> { |
| | | |
| | | @Schema(description = "关联合同ID") |
| | |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm") |
| | | @Schema(description = "计划交付日期") |
| | | @Column(columnDefinition = "datetime comment '计划交付日期'") |
| | | private Date plannedDeliveryDate; |
| | | @Column(columnDefinition = "VARCHAR(64) comment '计划交付日期'") |
| | | private String plannedDeliveryDate; |
| | | |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm") |
| | | @Schema(description = "实际交付日期") |
| | | @Column(columnDefinition = "datetime comment '实际交付日期'") |
| | | private Date actualDeliveryDate; |
| | | @Column(columnDefinition = "VARCHAR(64) comment '实际交付日期'") |
| | | private String actualDeliveryDate; |
| | | |
| | | @Schema(description = "交付状态(0-未交付 1-部分交付 2-已交付 3-逾期)") |
| | | @Column(columnDefinition = "tinyint(2) default 0 comment '交付状态'") |
| | |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm") |
| | | @Schema(description = "验收时间") |
| | | @Column(columnDefinition = "datetime comment '验收时间'") |
| | | private Date acceptTime; |
| | | @Column(columnDefinition = "VARCHAR(64) comment '验收时间'") |
| | | private String acceptTime; |
| | | |
| | | |
| | | /** |
| | |
| | | @Transient |
| | | @TableField(exist = false) |
| | | @Schema(description = "已交付数量(临时字段)") |
| | | private BigDecimal deliveredQuantity; |
| | | private Double deliveredQuantity; |
| | | } |
| New file |
| | |
| | | package com.by4cloud.platformx.business.entity; |
| | | |
| | | import com.by4cloud.platformx.common.data.mybatis.BaseModel; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import jakarta.persistence.Column; |
| | | import jakarta.persistence.Entity; |
| | | import lombok.Data; |
| | | import org.hibernate.annotations.Table; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 2026年4月29日 10:46:07 |
| | | * syt |
| | | */ |
| | | @Data |
| | | @Entity//加了才能自动生成表 |
| | | @Table(appliesTo="current_overdue",comment = "未关闭合同(当前逾期)")//给表加注释 |
| | | @jakarta.persistence.Table(name = "current_overdue")//数据库创建的表明 |
| | | public class CurrentOverdue extends BaseModel<CurrentOverdue> { |
| | | |
| | | @Schema(description = "客商名称") |
| | | @Column(columnDefinition="VARCHAR(64) comment '客商名称'") |
| | | private String busGuestName; |
| | | |
| | | @Schema(description = "客商ID") |
| | | @Column(columnDefinition="bigint comment '客商ID'") |
| | | private Long busGuestId; |
| | | |
| | | @Schema(description = "合同名称") |
| | | @Column(columnDefinition="VARCHAR(64) comment '合同名称'") |
| | | private String contractName; |
| | | |
| | | @Schema(description = "合同ID") |
| | | @Column(columnDefinition="bigint comment '合同ID'") |
| | | private Long contractId; |
| | | |
| | | @Schema(description = "应收金额") |
| | | @Column(columnDefinition="decimal(10,2) comment '应收金额 /元 两位小数'") |
| | | private BigDecimal receivableAmount; |
| | | |
| | | @Schema(description = "合同到期时间") |
| | | @Column(columnDefinition="datetime comment '合同到期时间'") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date contractExpirTime; |
| | | |
| | | @Schema(description = "逾期时长") |
| | | @Column(columnDefinition="decimal(10,0) comment '逾期时长 /天'") |
| | | private BigDecimal overdueDuration; |
| | | |
| | | } |
| New file |
| | |
| | | package com.by4cloud.platformx.business.entity; |
| | | |
| | | import com.by4cloud.platformx.common.data.mybatis.BaseModel; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import jakarta.persistence.Column; |
| | | import jakarta.persistence.Entity; |
| | | import lombok.Data; |
| | | import org.hibernate.annotations.Table; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 2026年4月29日 10:46:07 |
| | | * syt |
| | | */ |
| | | @Data |
| | | @Entity//加了才能自动生成表 |
| | | @Table(appliesTo="history_overdue",comment = "历史逾期")//给表加注释 |
| | | @jakarta.persistence.Table(name = "history_overdue")//数据库创建的表明 |
| | | public class HistoryOverdue extends BaseModel<HistoryOverdue> { |
| | | |
| | | @Schema(description = "客商名称") |
| | | @Column(columnDefinition="VARCHAR(64) comment '客商名称'") |
| | | private String busGuestName; |
| | | |
| | | @Schema(description = "客商ID") |
| | | @Column(columnDefinition="bigint comment '客商ID'") |
| | | private Long busGuestId; |
| | | |
| | | @Schema(description = "合同名称") |
| | | @Column(columnDefinition="VARCHAR(64) comment '合同名称'") |
| | | private String contractName; |
| | | |
| | | @Schema(description = "合同ID") |
| | | @Column(columnDefinition="bigint comment '合同ID'") |
| | | private Long contractId; |
| | | |
| | | @Schema(description = "应收金额") |
| | | @Column(columnDefinition="decimal(10,2) comment '应收金额 /元 两位小数'") |
| | | private BigDecimal receivableAmount; |
| | | |
| | | @Schema(description = "合同到期时间") |
| | | @Column(columnDefinition="datetime comment '合同到期时间'") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date contractExpirTime; |
| | | |
| | | @Schema(description = "付款时间") |
| | | @Column(columnDefinition="datetime comment '付款时间'") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date paymentTime; |
| | | |
| | | @Schema(description = "逾期时长") |
| | | @Column(columnDefinition="decimal(10,0) comment '逾期时长 /天'") |
| | | private BigDecimal overdueDuration; |
| | | |
| | | } |
| New file |
| | |
| | | package com.by4cloud.platformx.business.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.by4cloud.platformx.common.data.mybatis.BaseModel; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import jakarta.persistence.Column; |
| | | import jakarta.persistence.Entity; |
| | | import jakarta.persistence.Transient; |
| | | import lombok.Data; |
| | | import org.hibernate.annotations.Table; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 2026年4月29日 10:46:07 |
| | | * syt |
| | | */ |
| | | @Data |
| | | @Entity//加了才能自动生成表 |
| | | @Table(appliesTo="out_bound",comment = "EPR出库记录")//给表加注释 |
| | | @jakarta.persistence.Table(name = "out_bound")//数据库创建的表明 |
| | | public class OutBound extends BaseModel<OutBound> { |
| | | |
| | | @Schema(description = "客商名称") |
| | | @Column(columnDefinition="VARCHAR(64) comment '客商名称'") |
| | | private String busGuestName; |
| | | |
| | | @Schema(description = "客商ID") |
| | | @Column(columnDefinition="bigint comment '客商ID'") |
| | | private Long busGuestId; |
| | | |
| | | @Schema(description = "标的物名称") |
| | | @Column(columnDefinition="VARCHAR(64) comment '标的物名称'") |
| | | private String subjectMatterName; |
| | | |
| | | @Schema(description = "标的物编码") |
| | | @Column(columnDefinition="VARCHAR(64) comment '标的物编码'") |
| | | private String subjectMatterCode; |
| | | |
| | | @Schema(description = "出库数量") |
| | | @Column(columnDefinition="decimal(10,0) comment '出库数量'") |
| | | private BigDecimal outBoundNum; |
| | | |
| | | @Schema(description = "出库时间") |
| | | @Column(columnDefinition="datetime comment '出库时间'") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date outBoundTime; |
| | | |
| | | @Schema(description = "单据名称") |
| | | @Column(columnDefinition="text comment '单据名称'") |
| | | private String outBoundAttNames; |
| | | |
| | | @Schema(description = "单据路径") |
| | | @Column(columnDefinition="text comment '单据路径'") |
| | | private String outBoundAttPaths; |
| | | } |
| New file |
| | |
| | | package com.by4cloud.platformx.business.entity; |
| | | |
| | | import com.by4cloud.platformx.common.data.mybatis.BaseModel; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import jakarta.persistence.Column; |
| | | import jakarta.persistence.Entity; |
| | | import lombok.Data; |
| | | import org.hibernate.annotations.Table; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 2026年4月29日 10:46:07 |
| | | * syt |
| | | */ |
| | | @Data |
| | | @Entity//加了才能自动生成表 |
| | | @Table(appliesTo="payment_confirm",comment = "收款确认")//给表加注释 |
| | | @jakarta.persistence.Table(name = "payment_confirm")//数据库创建的表明 |
| | | public class PaymentConfirm extends BaseModel<PaymentConfirm> { |
| | | |
| | | @Schema(description = "客商名称") |
| | | @Column(columnDefinition="VARCHAR(64) comment '客商名称'") |
| | | private String busGuestName; |
| | | |
| | | @Schema(description = "客商ID") |
| | | @Column(columnDefinition="bigint comment '客商ID'") |
| | | private Long busGuestId; |
| | | |
| | | @Schema(description = "合同名称") |
| | | @Column(columnDefinition="VARCHAR(64) comment '合同名称'") |
| | | private String contractName; |
| | | |
| | | @Schema(description = "合同ID") |
| | | @Column(columnDefinition="bigint comment '合同ID'") |
| | | private Long contractId; |
| | | |
| | | @Schema(description = "收到总公司通知时间") |
| | | @Column(columnDefinition="datetime comment '收到总公司通知时间'") |
| | | private Date confirmTime; |
| | | |
| | | @Schema(description = "业务类型") |
| | | @Column(columnDefinition="VARCHAR(255) comment '业务类型'") |
| | | private String businessType; |
| | | |
| | | @Schema(description = "发生金额") |
| | | @Column(columnDefinition="decimal(10,2) comment '发生金额 /元 两位小数'") |
| | | private BigDecimal transationAmount; |
| | | |
| | | @Schema(description = "预收金额") |
| | | @Column(columnDefinition="decimal(10,2) comment '预收金额 /元 两位小数'") |
| | | private BigDecimal advanceAmount; |
| | | |
| | | @Schema(description = "应收金额") |
| | | @Column(columnDefinition="decimal(10,2) comment '应收金额 /元 两位小数'") |
| | | private BigDecimal receivableAmount; |
| | | |
| | | @Schema(description = "逾期金额") |
| | | @Column(columnDefinition="decimal(10,2) comment '逾期金额 /元 两位小数'") |
| | | private BigDecimal overdueAmount; |
| | | |
| | | @Schema(description = "总额") |
| | | @Column(columnDefinition="decimal(10,2) comment '总额 /元 两位小数'") |
| | | private BigDecimal totalAmount; |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.by4cloud.platformx.business.entity.Contract; |
| | | import com.by4cloud.platformx.common.core.util.R; |
| | | import com.by4cloud.platformx.common.data.mybatis.BaseModel; |
| | | import com.by4cloud.platformx.common.log.annotation.SysLog; |
| | | import com.by4cloud.platformx.business.service.ContractService; |
| | | import com.by4cloud.platformx.common.security.util.SecurityUtils; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import com.by4cloud.platformx.common.excel.annotation.ResponseExcel; |
| | | import io.swagger.v3.oas.annotations.security.SecurityRequirement; |
| | |
| | | @PreAuthorize("@pms.hasPermission('business_contract_view')" ) |
| | | public R getContractPage(@ParameterObject Page page, @ParameterObject Contract contract) { |
| | | LambdaQueryWrapper<Contract> wrapper = Wrappers.lambdaQuery(); |
| | | return R.ok(contractService.page(page, wrapper)); |
| | | wrapper.like(StringUtils.isNotBlank(contract.getContractName()),Contract::getContractName,contract.getContractName()); |
| | | wrapper.like(StringUtils.isNotBlank(contract.getPartyA()),Contract::getPartyA,contract.getPartyA()); |
| | | wrapper.orderByDesc(BaseModel::getCreateTime); |
| | | return R.ok(contractService.pageByScope(page, wrapper)); |
| | | } |
| | | |
| | | |
| | |
| | | @PostMapping |
| | | @PreAuthorize("@pms.hasPermission('business_contract_add')" ) |
| | | public R save(@RequestBody Contract contract) { |
| | | Long compId = SecurityUtils.getUser().getCompId(); |
| | | contract.setPartyBId(contract.getCompId()); |
| | | contract.setPartyB(contract.getCompName()); |
| | | return R.ok(contractService.save(contract)); |
| | | } |
| | | |
| New file |
| | |
| | | package com.by4cloud.platformx.business.controller; |
| | | |
| | | import cn.hutool.core.util.ArrayUtil; |
| | | import cn.hutool.core.collection.CollUtil; |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.by4cloud.platformx.business.dto.CurrentOverdueQueryDTO; |
| | | import com.by4cloud.platformx.business.entity.HistoryOverdue; |
| | | import com.by4cloud.platformx.common.core.util.R; |
| | | import com.by4cloud.platformx.common.log.annotation.SysLog; |
| | | import com.by4cloud.platformx.business.entity.CurrentOverdue; |
| | | import com.by4cloud.platformx.business.service.CurrentOverdueService; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import com.by4cloud.platformx.common.excel.annotation.ResponseExcel; |
| | | import io.swagger.v3.oas.annotations.security.SecurityRequirement; |
| | | import org.springdoc.core.annotations.ParameterObject; |
| | | import org.springframework.http.HttpHeaders; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * 未关闭合同(当前逾期) |
| | | * |
| | | * @author syt |
| | | * @date 2026-04-29 11:30:20 |
| | | */ |
| | | @RestController |
| | | @RequiredArgsConstructor |
| | | @RequestMapping("/currentOverdue" ) |
| | | @Tag(description = "currentOverdue" , name = "未关闭合同(当前逾期)管理" ) |
| | | @SecurityRequirement(name = HttpHeaders.AUTHORIZATION) |
| | | public class CurrentOverdueController { |
| | | |
| | | private final CurrentOverdueService currentOverdueService; |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * @param page 分页对象 |
| | | * @param currentOverdue 未关闭合同(当前逾期) |
| | | * @return |
| | | */ |
| | | @Operation(summary = "分页查询" , description = "分页查询" ) |
| | | @GetMapping("/page" ) |
| | | @PreAuthorize("@pms.hasPermission('business_currentOverdue_view')" ) |
| | | public R getCurrentOverduePage(@ParameterObject Page page, @ParameterObject CurrentOverdue currentOverdue) { |
| | | LambdaQueryWrapper<CurrentOverdue> wrapper = Wrappers.lambdaQuery(); |
| | | wrapper.like(StrUtil.isNotBlank(currentOverdue.getBusGuestName()),CurrentOverdue::getBusGuestName,currentOverdue.getBusGuestName()); |
| | | wrapper.like(StrUtil.isNotBlank(currentOverdue.getContractName()),CurrentOverdue::getContractName,currentOverdue.getContractName()); |
| | | wrapper.orderByDesc(CurrentOverdue::getCreateTime); |
| | | return R.ok(currentOverdueService.page(page, wrapper)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 通过id查询未关闭合同(当前逾期) |
| | | * @param id id |
| | | * @return R |
| | | */ |
| | | @Operation(summary = "通过id查询" , description = "通过id查询" ) |
| | | @GetMapping("/{id}" ) |
| | | @PreAuthorize("@pms.hasPermission('business_currentOverdue_view')" ) |
| | | public R getById(@PathVariable("id" ) Long id) { |
| | | return R.ok(currentOverdueService.getById(id)); |
| | | } |
| | | |
| | | /** |
| | | * 新增未关闭合同(当前逾期) |
| | | * @param currentOverdue 未关闭合同(当前逾期) |
| | | * @return R |
| | | */ |
| | | @Operation(summary = "新增未关闭合同(当前逾期)" , description = "新增未关闭合同(当前逾期)" ) |
| | | @SysLog("新增未关闭合同(当前逾期)" ) |
| | | @PostMapping |
| | | @PreAuthorize("@pms.hasPermission('business_currentOverdue_add')" ) |
| | | public R save(@RequestBody CurrentOverdue currentOverdue) { |
| | | return R.ok(currentOverdueService.save(currentOverdue)); |
| | | } |
| | | |
| | | /** |
| | | * 修改未关闭合同(当前逾期) |
| | | * @param currentOverdue 未关闭合同(当前逾期) |
| | | * @return R |
| | | */ |
| | | @Operation(summary = "修改未关闭合同(当前逾期)" , description = "修改未关闭合同(当前逾期)" ) |
| | | @SysLog("修改未关闭合同(当前逾期)" ) |
| | | @PutMapping |
| | | @PreAuthorize("@pms.hasPermission('business_currentOverdue_edit')" ) |
| | | public R updateById(@RequestBody CurrentOverdue currentOverdue) { |
| | | return R.ok(currentOverdueService.updateById(currentOverdue)); |
| | | } |
| | | |
| | | /** |
| | | * 通过id删除未关闭合同(当前逾期) |
| | | * @param ids id列表 |
| | | * @return R |
| | | */ |
| | | @Operation(summary = "通过id删除未关闭合同(当前逾期)" , description = "通过id删除未关闭合同(当前逾期)" ) |
| | | @SysLog("通过id删除未关闭合同(当前逾期)" ) |
| | | @DeleteMapping |
| | | @PreAuthorize("@pms.hasPermission('business_currentOverdue_del')" ) |
| | | public R removeById(@RequestBody Long[] ids) { |
| | | return R.ok(currentOverdueService.removeBatchByIds(CollUtil.toList(ids))); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 导出excel 表格 |
| | | * @param currentOverdue 查询条件 |
| | | * @param ids 导出指定ID |
| | | * @return excel 文件流 |
| | | */ |
| | | @ResponseExcel |
| | | @GetMapping("/export") |
| | | @PreAuthorize("@pms.hasPermission('business_currentOverdue_export')" ) |
| | | public List<CurrentOverdue> export(CurrentOverdue currentOverdue,Long[] ids) { |
| | | return currentOverdueService.list(Wrappers.lambdaQuery(currentOverdue).in(ArrayUtil.isNotEmpty(ids), CurrentOverdue::getId, ids)); |
| | | } |
| | | } |
| New file |
| | |
| | | package com.by4cloud.platformx.business.controller; |
| | | |
| | | import cn.hutool.core.util.StrUtil; |
| | | import cn.hutool.core.util.ArrayUtil; |
| | | import cn.hutool.core.collection.CollUtil; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.by4cloud.platformx.common.core.util.R; |
| | | import com.by4cloud.platformx.common.log.annotation.SysLog; |
| | | import com.by4cloud.platformx.business.entity.HistoryOverdue; |
| | | import com.by4cloud.platformx.business.service.HistoryOverdueService; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import com.by4cloud.platformx.common.excel.annotation.ResponseExcel; |
| | | import io.swagger.v3.oas.annotations.security.SecurityRequirement; |
| | | import org.springdoc.core.annotations.ParameterObject; |
| | | import org.springframework.http.HttpHeaders; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * 历史逾期 |
| | | * |
| | | * @author syt |
| | | * @date 2026-04-29 11:31:18 |
| | | */ |
| | | @RestController |
| | | @RequiredArgsConstructor |
| | | @RequestMapping("/historyOverdue" ) |
| | | @Tag(description = "historyOverdue" , name = "历史逾期管理" ) |
| | | @SecurityRequirement(name = HttpHeaders.AUTHORIZATION) |
| | | public class HistoryOverdueController { |
| | | |
| | | private final HistoryOverdueService historyOverdueService; |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * @param page 分页对象 |
| | | * @param historyOverdue 历史逾期 |
| | | * @return |
| | | */ |
| | | @Operation(summary = "分页查询" , description = "分页查询" ) |
| | | @GetMapping("/page" ) |
| | | @PreAuthorize("@pms.hasPermission('business_historyOverdue_view')" ) |
| | | public R getHistoryOverduePage(@ParameterObject Page page, @ParameterObject HistoryOverdue historyOverdue) { |
| | | LambdaQueryWrapper<HistoryOverdue> wrapper = Wrappers.lambdaQuery(); |
| | | wrapper.like(StrUtil.isNotBlank(historyOverdue.getBusGuestName()),HistoryOverdue::getBusGuestName,historyOverdue.getBusGuestName()); |
| | | wrapper.like(StrUtil.isNotBlank(historyOverdue.getContractName()),HistoryOverdue::getContractName,historyOverdue.getContractName()); |
| | | wrapper.orderByDesc(HistoryOverdue::getCreateTime); |
| | | return R.ok(historyOverdueService.page(page, wrapper)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 通过id查询历史逾期 |
| | | * @param id id |
| | | * @return R |
| | | */ |
| | | @Operation(summary = "通过id查询" , description = "通过id查询" ) |
| | | @GetMapping("/{id}" ) |
| | | @PreAuthorize("@pms.hasPermission('business_historyOverdue_view')" ) |
| | | public R getById(@PathVariable("id" ) Long id) { |
| | | return R.ok(historyOverdueService.getById(id)); |
| | | } |
| | | |
| | | /** |
| | | * 新增历史逾期 |
| | | * @param historyOverdue 历史逾期 |
| | | * @return R |
| | | */ |
| | | @Operation(summary = "新增历史逾期" , description = "新增历史逾期" ) |
| | | @SysLog("新增历史逾期" ) |
| | | @PostMapping |
| | | @PreAuthorize("@pms.hasPermission('business_historyOverdue_add')" ) |
| | | public R save(@RequestBody HistoryOverdue historyOverdue) { |
| | | return R.ok(historyOverdueService.save(historyOverdue)); |
| | | } |
| | | |
| | | /** |
| | | * 修改历史逾期 |
| | | * @param historyOverdue 历史逾期 |
| | | * @return R |
| | | */ |
| | | @Operation(summary = "修改历史逾期" , description = "修改历史逾期" ) |
| | | @SysLog("修改历史逾期" ) |
| | | @PutMapping |
| | | @PreAuthorize("@pms.hasPermission('business_historyOverdue_edit')" ) |
| | | public R updateById(@RequestBody HistoryOverdue historyOverdue) { |
| | | return R.ok(historyOverdueService.updateById(historyOverdue)); |
| | | } |
| | | |
| | | /** |
| | | * 通过id删除历史逾期 |
| | | * @param ids id列表 |
| | | * @return R |
| | | */ |
| | | @Operation(summary = "通过id删除历史逾期" , description = "通过id删除历史逾期" ) |
| | | @SysLog("通过id删除历史逾期" ) |
| | | @DeleteMapping |
| | | @PreAuthorize("@pms.hasPermission('business_historyOverdue_del')" ) |
| | | public R removeById(@RequestBody Long[] ids) { |
| | | return R.ok(historyOverdueService.removeBatchByIds(CollUtil.toList(ids))); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 导出excel 表格 |
| | | * @param historyOverdue 查询条件 |
| | | * @param ids 导出指定ID |
| | | * @return excel 文件流 |
| | | */ |
| | | @ResponseExcel |
| | | @GetMapping("/export") |
| | | @PreAuthorize("@pms.hasPermission('business_historyOverdue_export')" ) |
| | | public List<HistoryOverdue> export(HistoryOverdue historyOverdue,Long[] ids) { |
| | | return historyOverdueService.list(Wrappers.lambdaQuery(historyOverdue).in(ArrayUtil.isNotEmpty(ids), HistoryOverdue::getId, ids)); |
| | | } |
| | | } |
| New file |
| | |
| | | package com.by4cloud.platformx.business.controller; |
| | | |
| | | import cn.hutool.core.util.StrUtil; |
| | | import cn.hutool.core.util.ArrayUtil; |
| | | import cn.hutool.core.collection.CollUtil; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.by4cloud.platformx.common.core.util.R; |
| | | import com.by4cloud.platformx.common.log.annotation.SysLog; |
| | | import com.by4cloud.platformx.business.entity.OutBound; |
| | | import com.by4cloud.platformx.business.service.OutBoundService; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import com.by4cloud.platformx.common.excel.annotation.ResponseExcel; |
| | | import io.swagger.v3.oas.annotations.security.SecurityRequirement; |
| | | import org.springdoc.core.annotations.ParameterObject; |
| | | import org.springframework.http.HttpHeaders; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * EPR出库记录 |
| | | * |
| | | * @author syt |
| | | * @date 2026-04-29 11:32:05 |
| | | */ |
| | | @RestController |
| | | @RequiredArgsConstructor |
| | | @RequestMapping("/outBound" ) |
| | | @Tag(description = "outBound" , name = "EPR出库记录管理" ) |
| | | @SecurityRequirement(name = HttpHeaders.AUTHORIZATION) |
| | | public class OutBoundController { |
| | | |
| | | private final OutBoundService outBoundService; |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * @param page 分页对象 |
| | | * @param outBound EPR出库记录 |
| | | * @return |
| | | */ |
| | | @Operation(summary = "分页查询" , description = "分页查询" ) |
| | | @GetMapping("/page" ) |
| | | @PreAuthorize("@pms.hasPermission('business_outBound_view')" ) |
| | | public R getOutBoundPage(@ParameterObject Page page, @ParameterObject OutBound outBound) { |
| | | LambdaQueryWrapper<OutBound> wrapper = Wrappers.lambdaQuery(); |
| | | wrapper.like(StrUtil.isNotBlank(outBound.getBusGuestName()),OutBound::getBusGuestName,outBound.getBusGuestName()); |
| | | wrapper.like(StrUtil.isNotBlank(outBound.getSubjectMatterName()),OutBound::getSubjectMatterName,outBound.getSubjectMatterName()); |
| | | wrapper.orderByDesc(OutBound::getCreateTime); |
| | | return R.ok(outBoundService.page(page, wrapper)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 通过id查询EPR出库记录 |
| | | * @param id id |
| | | * @return R |
| | | */ |
| | | @Operation(summary = "通过id查询" , description = "通过id查询" ) |
| | | @GetMapping("/{id}" ) |
| | | @PreAuthorize("@pms.hasPermission('business_outBound_view')" ) |
| | | public R getById(@PathVariable("id" ) Long id) { |
| | | return R.ok(outBoundService.getById(id)); |
| | | } |
| | | |
| | | /** |
| | | * 新增EPR出库记录 |
| | | * @param outBound EPR出库记录 |
| | | * @return R |
| | | */ |
| | | @Operation(summary = "新增EPR出库记录" , description = "新增EPR出库记录" ) |
| | | @SysLog("新增EPR出库记录" ) |
| | | @PostMapping |
| | | @PreAuthorize("@pms.hasPermission('business_outBound_add')" ) |
| | | public R save(@RequestBody OutBound outBound) { |
| | | return R.ok(outBoundService.save(outBound)); |
| | | } |
| | | |
| | | /** |
| | | * 修改EPR出库记录 |
| | | * @param outBound EPR出库记录 |
| | | * @return R |
| | | */ |
| | | @Operation(summary = "修改EPR出库记录" , description = "修改EPR出库记录" ) |
| | | @SysLog("修改EPR出库记录" ) |
| | | @PutMapping |
| | | @PreAuthorize("@pms.hasPermission('business_outBound_edit')" ) |
| | | public R updateById(@RequestBody OutBound outBound) { |
| | | return R.ok(outBoundService.updateById(outBound)); |
| | | } |
| | | |
| | | /** |
| | | * 通过id删除EPR出库记录 |
| | | * @param ids id列表 |
| | | * @return R |
| | | */ |
| | | @Operation(summary = "通过id删除EPR出库记录" , description = "通过id删除EPR出库记录" ) |
| | | @SysLog("通过id删除EPR出库记录" ) |
| | | @DeleteMapping |
| | | @PreAuthorize("@pms.hasPermission('business_outBound_del')" ) |
| | | public R removeById(@RequestBody Long[] ids) { |
| | | return R.ok(outBoundService.removeBatchByIds(CollUtil.toList(ids))); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 导出excel 表格 |
| | | * @param outBound 查询条件 |
| | | * @param ids 导出指定ID |
| | | * @return excel 文件流 |
| | | */ |
| | | @ResponseExcel |
| | | @GetMapping("/export") |
| | | @PreAuthorize("@pms.hasPermission('business_outBound_export')" ) |
| | | public List<OutBound> export(OutBound outBound,Long[] ids) { |
| | | return outBoundService.list(Wrappers.lambdaQuery(outBound).in(ArrayUtil.isNotEmpty(ids), OutBound::getId, ids)); |
| | | } |
| | | } |
| New file |
| | |
| | | package com.by4cloud.platformx.business.controller; |
| | | |
| | | import cn.hutool.core.util.StrUtil; |
| | | import cn.hutool.core.util.ArrayUtil; |
| | | import cn.hutool.core.collection.CollUtil; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.by4cloud.platformx.common.core.util.R; |
| | | import com.by4cloud.platformx.common.log.annotation.SysLog; |
| | | import com.by4cloud.platformx.business.entity.PaymentConfirm; |
| | | import com.by4cloud.platformx.business.service.PaymentConfirmService; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import com.by4cloud.platformx.common.excel.annotation.ResponseExcel; |
| | | import io.swagger.v3.oas.annotations.security.SecurityRequirement; |
| | | import org.springdoc.core.annotations.ParameterObject; |
| | | import org.springframework.http.HttpHeaders; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * 收款确认 |
| | | * |
| | | * @author syt |
| | | * @date 2026-04-29 11:33:26 |
| | | */ |
| | | @RestController |
| | | @RequiredArgsConstructor |
| | | @RequestMapping("/paymentConfirm" ) |
| | | @Tag(description = "paymentConfirm" , name = "收款确认管理" ) |
| | | @SecurityRequirement(name = HttpHeaders.AUTHORIZATION) |
| | | public class PaymentConfirmController { |
| | | |
| | | private final PaymentConfirmService paymentConfirmService; |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * @param page 分页对象 |
| | | * @param paymentConfirm 收款确认 |
| | | * @return |
| | | */ |
| | | @Operation(summary = "分页查询" , description = "分页查询" ) |
| | | @GetMapping("/page" ) |
| | | @PreAuthorize("@pms.hasPermission('business_paymentConfirm_view')" ) |
| | | public R getPaymentConfirmPage(@ParameterObject Page page, @ParameterObject PaymentConfirm paymentConfirm) { |
| | | LambdaQueryWrapper<PaymentConfirm> wrapper = Wrappers.lambdaQuery(); |
| | | wrapper.like(StrUtil.isNotBlank(paymentConfirm.getBusGuestName()),PaymentConfirm::getBusGuestName,paymentConfirm.getBusGuestName()); |
| | | wrapper.like(StrUtil.isNotBlank(paymentConfirm.getContractName()),PaymentConfirm::getContractName,paymentConfirm.getContractName()); |
| | | wrapper.orderByDesc(PaymentConfirm::getCreateTime); |
| | | return R.ok(paymentConfirmService.page(page, wrapper)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 通过id查询收款确认 |
| | | * @param id id |
| | | * @return R |
| | | */ |
| | | @Operation(summary = "通过id查询" , description = "通过id查询" ) |
| | | @GetMapping("/{id}" ) |
| | | @PreAuthorize("@pms.hasPermission('business_paymentConfirm_view')" ) |
| | | public R getById(@PathVariable("id" ) Long id) { |
| | | return R.ok(paymentConfirmService.getById(id)); |
| | | } |
| | | |
| | | /** |
| | | * 新增收款确认 |
| | | * @param paymentConfirm 收款确认 |
| | | * @return R |
| | | */ |
| | | @Operation(summary = "新增收款确认" , description = "新增收款确认" ) |
| | | @SysLog("新增收款确认" ) |
| | | @PostMapping |
| | | @PreAuthorize("@pms.hasPermission('business_paymentConfirm_add')" ) |
| | | public R save(@RequestBody PaymentConfirm paymentConfirm) { |
| | | return R.ok(paymentConfirmService.save(paymentConfirm)); |
| | | } |
| | | |
| | | /** |
| | | * 修改收款确认 |
| | | * @param paymentConfirm 收款确认 |
| | | * @return R |
| | | */ |
| | | @Operation(summary = "修改收款确认" , description = "修改收款确认" ) |
| | | @SysLog("修改收款确认" ) |
| | | @PutMapping |
| | | @PreAuthorize("@pms.hasPermission('business_paymentConfirm_edit')" ) |
| | | public R updateById(@RequestBody PaymentConfirm paymentConfirm) { |
| | | return R.ok(paymentConfirmService.updateById(paymentConfirm)); |
| | | } |
| | | |
| | | /** |
| | | * 通过id删除收款确认 |
| | | * @param ids id列表 |
| | | * @return R |
| | | */ |
| | | @Operation(summary = "通过id删除收款确认" , description = "通过id删除收款确认" ) |
| | | @SysLog("通过id删除收款确认" ) |
| | | @DeleteMapping |
| | | @PreAuthorize("@pms.hasPermission('business_paymentConfirm_del')" ) |
| | | public R removeById(@RequestBody Long[] ids) { |
| | | return R.ok(paymentConfirmService.removeBatchByIds(CollUtil.toList(ids))); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 导出excel 表格 |
| | | * @param paymentConfirm 查询条件 |
| | | * @param ids 导出指定ID |
| | | * @return excel 文件流 |
| | | */ |
| | | @ResponseExcel |
| | | @GetMapping("/export") |
| | | @PreAuthorize("@pms.hasPermission('business_paymentConfirm_export')" ) |
| | | public List<PaymentConfirm> export(PaymentConfirm paymentConfirm,Long[] ids) { |
| | | return paymentConfirmService.list(Wrappers.lambdaQuery(paymentConfirm).in(ArrayUtil.isNotEmpty(ids), PaymentConfirm::getId, ids)); |
| | | } |
| | | } |
| New file |
| | |
| | | package com.by4cloud.platformx.business.controller; |
| | | |
| | | import com.by4cloud.platformx.common.core.util.R; |
| | | import com.by4cloud.platformx.common.security.annotation.Inner; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | @RestController |
| | | @RequestMapping("/test") |
| | | public class TestController { |
| | | |
| | | @Inner(value = false) |
| | | @GetMapping("/test") |
| | | public R test() { |
| | | return R.ok(); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | package com.by4cloud.platformx.business.mapper; |
| | | |
| | | import com.by4cloud.platformx.common.data.datascope.PlatformxBaseMapper; |
| | | import com.by4cloud.platformx.business.entity.CurrentOverdue; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | @Mapper |
| | | public interface CurrentOverdueMapper extends PlatformxBaseMapper<CurrentOverdue> { |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.by4cloud.platformx.business.mapper; |
| | | |
| | | import com.by4cloud.platformx.common.data.datascope.PlatformxBaseMapper; |
| | | import com.by4cloud.platformx.business.entity.HistoryOverdue; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | @Mapper |
| | | public interface HistoryOverdueMapper extends PlatformxBaseMapper<HistoryOverdue> { |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.by4cloud.platformx.business.mapper; |
| | | |
| | | import com.by4cloud.platformx.common.data.datascope.PlatformxBaseMapper; |
| | | import com.by4cloud.platformx.business.entity.OutBound; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | @Mapper |
| | | public interface OutBoundMapper extends PlatformxBaseMapper<OutBound> { |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.by4cloud.platformx.business.mapper; |
| | | |
| | | import com.by4cloud.platformx.common.data.datascope.PlatformxBaseMapper; |
| | | import com.by4cloud.platformx.business.entity.PaymentConfirm; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | @Mapper |
| | | public interface PaymentConfirmMapper extends PlatformxBaseMapper<PaymentConfirm> { |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.by4cloud.platformx.business.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.by4cloud.platformx.business.entity.CurrentOverdue; |
| | | |
| | | public interface CurrentOverdueService extends IService<CurrentOverdue> { |
| | | |
| | | } |
| New file |
| | |
| | | package com.by4cloud.platformx.business.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.by4cloud.platformx.business.entity.HistoryOverdue; |
| | | |
| | | public interface HistoryOverdueService extends IService<HistoryOverdue> { |
| | | |
| | | } |
| New file |
| | |
| | | package com.by4cloud.platformx.business.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.by4cloud.platformx.business.entity.OutBound; |
| | | |
| | | public interface OutBoundService extends IService<OutBound> { |
| | | |
| | | } |
| New file |
| | |
| | | package com.by4cloud.platformx.business.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.by4cloud.platformx.business.entity.PaymentConfirm; |
| | | |
| | | public interface PaymentConfirmService extends IService<PaymentConfirm> { |
| | | |
| | | } |
| New file |
| | |
| | | package com.by4cloud.platformx.business.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.by4cloud.platformx.business.entity.CurrentOverdue; |
| | | import com.by4cloud.platformx.business.mapper.CurrentOverdueMapper; |
| | | import com.by4cloud.platformx.business.service.CurrentOverdueService; |
| | | import org.springframework.stereotype.Service; |
| | | /** |
| | | * 未关闭合同(当前逾期) |
| | | * |
| | | * @author syt |
| | | * @date 2026-04-29 11:30:20 |
| | | */ |
| | | @Service |
| | | public class CurrentOverdueServiceImpl extends ServiceImpl<CurrentOverdueMapper, CurrentOverdue> implements CurrentOverdueService { |
| | | |
| | | @Override |
| | | public boolean save(CurrentOverdue entity) { |
| | | return super.save(entity); |
| | | } |
| | | } |
| New file |
| | |
| | | package com.by4cloud.platformx.business.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.by4cloud.platformx.business.entity.HistoryOverdue; |
| | | import com.by4cloud.platformx.business.mapper.HistoryOverdueMapper; |
| | | import com.by4cloud.platformx.business.service.HistoryOverdueService; |
| | | import org.springframework.stereotype.Service; |
| | | /** |
| | | * 历史逾期 |
| | | * |
| | | * @author syt |
| | | * @date 2026-04-29 11:31:18 |
| | | */ |
| | | @Service |
| | | public class HistoryOverdueServiceImpl extends ServiceImpl<HistoryOverdueMapper, HistoryOverdue> implements HistoryOverdueService { |
| | | } |
| New file |
| | |
| | | package com.by4cloud.platformx.business.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.by4cloud.platformx.business.entity.OutBound; |
| | | import com.by4cloud.platformx.business.mapper.OutBoundMapper; |
| | | import com.by4cloud.platformx.business.service.OutBoundService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * EPR出库记录 |
| | | * |
| | | * @author syt |
| | | * @date 2026-04-29 11:32:05 |
| | | */ |
| | | @Service |
| | | public class OutBoundServiceImpl extends ServiceImpl<OutBoundMapper, OutBound> implements OutBoundService { |
| | | |
| | | @Override |
| | | public boolean save(OutBound entity) { |
| | | entity.setOutBoundTime(new Date()); |
| | | return super.save(entity); |
| | | } |
| | | } |
| New file |
| | |
| | | package com.by4cloud.platformx.business.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.by4cloud.platformx.business.entity.PaymentConfirm; |
| | | import com.by4cloud.platformx.business.mapper.PaymentConfirmMapper; |
| | | import com.by4cloud.platformx.business.service.PaymentConfirmService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 收款确认 |
| | | * |
| | | * @author syt |
| | | * @date 2026-04-29 11:33:26 |
| | | */ |
| | | @Service |
| | | public class PaymentConfirmServiceImpl extends ServiceImpl<PaymentConfirmMapper, PaymentConfirm> implements PaymentConfirmService { |
| | | |
| | | @Override |
| | | public boolean save(PaymentConfirm entity) { |
| | | entity.setConfirmTime(new Date()); |
| | | return super.save(entity); |
| | | } |
| | | } |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.by4cloud.platformx.business.mapper.CurrentOverdueMapper"> |
| | | |
| | | <resultMap id="currentOverdueMap" type="com.by4cloud.platformx.business.entity.CurrentOverdue"> |
| | | <id property="id" column="id"/> |
| | | <result property="compId" column="comp_id"/> |
| | | <result property="busGuestId" column="bus_guest_id"/> |
| | | <result property="busGuestName" column="bus_guest_name"/> |
| | | <result property="contractExpirTime" column="contract_expir_time"/> |
| | | <result property="contractId" column="contract_id"/> |
| | | <result property="contractName" column="contract_name"/> |
| | | <result property="overdueDuration" column="overdue_duration"/> |
| | | <result property="receivableAmount" column="receivable_amount"/> |
| | | <result property="createBy" column="create_by"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="updateBy" column="update_by"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | </resultMap> |
| | | </mapper> |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.by4cloud.platformx.business.mapper.HistoryOverdueMapper"> |
| | | |
| | | <resultMap id="historyOverdueMap" type="com.by4cloud.platformx.business.entity.HistoryOverdue"> |
| | | <id property="id" column="id"/> |
| | | <result property="compId" column="comp_id"/> |
| | | <result property="busGuestId" column="bus_guest_id"/> |
| | | <result property="busGuestName" column="bus_guest_name"/> |
| | | <result property="contractExpirTime" column="contract_expir_time"/> |
| | | <result property="contractId" column="contract_id"/> |
| | | <result property="contractName" column="contract_name"/> |
| | | <result property="overdueDuration" column="overdue_duration"/> |
| | | <result property="paymentTime" column="payment_time"/> |
| | | <result property="receivableAmount" column="receivable_amount"/> |
| | | <result property="createBy" column="create_by"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="updateBy" column="update_by"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | </resultMap> |
| | | </mapper> |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.by4cloud.platformx.business.mapper.OutBoundMapper"> |
| | | |
| | | <resultMap id="outBoundMap" type="com.by4cloud.platformx.business.entity.OutBound"> |
| | | <id property="id" column="id"/> |
| | | <result property="compId" column="comp_id"/> |
| | | <result property="busGuestId" column="bus_guest_id"/> |
| | | <result property="busGuestName" column="bus_guest_name"/> |
| | | <result property="outBoundNum" column="out_bound_num"/> |
| | | <result property="outBoundTime" column="out_bound_time"/> |
| | | <result property="subjectMatterCode" column="subject_matter_code"/> |
| | | <result property="subjectMatterName" column="subject_matter_name"/> |
| | | <result property="createBy" column="create_by"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="updateBy" column="update_by"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | </resultMap> |
| | | </mapper> |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | |
| | | <mapper namespace="com.by4cloud.platformx.business.mapper.PaymentConfirmMapper"> |
| | | |
| | | <resultMap id="paymentConfirmMap" type="com.by4cloud.platformx.business.entity.PaymentConfirm"> |
| | | <id property="id" column="id"/> |
| | | <result property="compId" column="comp_id"/> |
| | | <result property="advanceAmount" column="advance_amount"/> |
| | | <result property="busGuestId" column="bus_guest_id"/> |
| | | <result property="busGuestName" column="bus_guest_name"/> |
| | | <result property="businessType" column="business_type"/> |
| | | <result property="confirmTime" column="confirm_time"/> |
| | | <result property="contractId" column="contract_id"/> |
| | | <result property="contractName" column="contract_name"/> |
| | | <result property="overdueAmount" column="overdue_amount"/> |
| | | <result property="receivableAmount" column="receivable_amount"/> |
| | | <result property="totalAmount" column="total_amount"/> |
| | | <result property="transationAmount" column="transation_amount"/> |
| | | <result property="createBy" column="create_by"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="updateBy" column="update_by"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | </resultMap> |
| | | </mapper> |