fix(重构后台代码)

master
031026 2024-05-28 22:36:39 +08:00
commit e045d01c50
52 changed files with 2385 additions and 227 deletions

View File

@ -0,0 +1,65 @@
package com.muyu.common.core.utils;
import org.apache.commons.lang3.ObjectUtils;
import java.math.BigDecimal;
/**
* @author DongZl
* @description:
* @Date 2023-10-9 04:56
*/
public class ObjUtils {
/**
*
* CharSequence:
* Array:
* Collection:
* Map:
* @param o
* @return nulltruefalse
*/
public static boolean notNull(Object o){
return ObjectUtils.isNotEmpty(o);
}
/**
* long0
* @param val
* @return 0
*/
public static boolean notNull(Long val){
return ObjectUtils.isNotEmpty(val) && val != 0;
}
/**
* Integer0
* @param val
* @return 0
*/
public static boolean notNull(Integer val){
return ObjectUtils.isNotEmpty(val) && val != 0;
}
/**
* BigDecimal0
* @param val
* @return 0
*/
public static boolean notNull(BigDecimal val){
return ObjectUtils.isNotEmpty(val) && val.doubleValue() == 0.00;
}
/**
* BigDecimal0
* @param val
* @return 0
*/
public static boolean notChildNull(Object[] val){
for (Object o : val) {
if (!notNull(o)){
return false;
}
}
return true;
}
}

View File

@ -0,0 +1,89 @@
package com.muyu.authentication.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.annotation.Excel;
import com.muyu.authentication.domain.req.AuthenticationQueryReq;
import com.muyu.authentication.domain.req.AuthenticationSaveReq;
import com.muyu.authentication.domain.req.AuthenticationEditReq;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* authentication
*
* @author wan
* @date 2024-05-29
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@TableName("authentication")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Authentication", description = "认证")
public class Authentication extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 企业认证主键 */
@TableId(value = "id",type = IdType.AUTO)
@ApiModelProperty(name = "企业认证主键", value = "企业认证主键")
private Long id;
/** 审核报告人 */
@Excel(name = "审核报告人")
@ApiModelProperty(name = "审核报告人", value = "审核报告人")
private String auditor;
/** 待审核,已通过,未通过 */
@Excel(name = "待审核,已通过,未通过")
@ApiModelProperty(name = "待审核,已通过,未通过", value = "待审核,已通过,未通过")
private String stat;
/** 审核报告 */
@Excel(name = "审核报告")
@ApiModelProperty(name = "审核报告", value = "审核报告")
private String auditReason;
/**
*
*/
public static Authentication queryBuild( AuthenticationQueryReq authenticationQueryReq){
return Authentication.builder()
.auditor(authenticationQueryReq.getAuditor())
.stat(authenticationQueryReq.getStat())
.auditReason(authenticationQueryReq.getAuditReason())
.build();
}
/**
*
*/
public static Authentication saveBuild(AuthenticationSaveReq authenticationSaveReq){
return Authentication.builder()
.auditor(authenticationSaveReq.getAuditor())
.stat(authenticationSaveReq.getStat())
.auditReason(authenticationSaveReq.getAuditReason())
.build();
}
/**
*
*/
public static Authentication editBuild(Long id, AuthenticationEditReq authenticationEditReq){
return Authentication.builder()
.id(id)
.auditor(authenticationEditReq.getAuditor())
.stat(authenticationEditReq.getStat())
.auditReason(authenticationEditReq.getAuditReason())
.build();
}
}

View File

@ -0,0 +1,38 @@
package com.muyu.authentication.domain.req;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* authentication
*
* @author wan
* @date 2024-05-29
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "AuthenticationEditReq", description = "认证")
public class AuthenticationEditReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 审核报告人 */
@ApiModelProperty(name = "审核报告人", value = "审核报告人")
private String auditor;
/** 待审核,已通过,未通过 */
@ApiModelProperty(name = "待审核,已通过,未通过", value = "待审核,已通过,未通过")
private String stat;
/** 审核报告 */
@ApiModelProperty(name = "审核报告", value = "审核报告")
private String auditReason;
}

View File

@ -0,0 +1,38 @@
package com.muyu.authentication.domain.req;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* authentication
*
* @author wan
* @date 2024-05-29
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "AuthenticationQueryReq", description = "认证")
public class AuthenticationQueryReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 审核报告人 */
@ApiModelProperty(name = "审核报告人", value = "审核报告人")
private String auditor;
/** 待审核,已通过,未通过 */
@ApiModelProperty(name = "待审核,已通过,未通过", value = "待审核,已通过,未通过")
private String stat;
/** 审核报告 */
@ApiModelProperty(name = "审核报告", value = "审核报告")
private String auditReason;
}

View File

@ -0,0 +1,46 @@
package com.muyu.authentication.domain.req;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* authentication
*
* @author wan
* @date 2024-05-29
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "AuthenticationSaveReq", description = "认证")
public class AuthenticationSaveReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 企业认证主键 */
@ApiModelProperty(name = "企业认证主键", value = "企业认证主键")
private Long id;
/** 审核报告人 */
@ApiModelProperty(name = "审核报告人", value = "审核报告人")
private String auditor;
/** 待审核,已通过,未通过 */
@ApiModelProperty(name = "待审核,已通过,未通过", value = "待审核,已通过,未通过")
private String stat;
/** 审核报告 */
@ApiModelProperty(name = "审核报告", value = "审核报告")
private String auditReason;
}

View File

@ -1,48 +0,0 @@
package com.muyu.company.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
*
*
* @ClassName Authentication
* @Author AnNan.Wang
* @Date 2024/5/28 21:12
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@TableName("authentication")
@EqualsAndHashCode(callSuper = true)
public class Authentication extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId(value = "id",type = IdType.AUTO)
private Long id;
/**
*
*/
private String auditor;
/**
* ,,
*/
private String stat;
/**
*
*/
private String auditReason;
}

View File

@ -1,22 +1,27 @@
package com.muyu.company.domain; package com.muyu.company.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder; import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import java.util.Date; import com.muyu.common.core.annotation.Excel;
import com.muyu.company.domain.req.CompanyQueryReq;
import com.muyu.company.domain.req.CompanySaveReq;
import com.muyu.company.domain.req.CompanyEditReq;
import com.muyu.common.core.web.domain.BaseEntity;
/** /**
* company company * company
* *
* @author wan * @author wan
* @date 2024-05-26 * @date 2024-05-29
*/ */
@Data @Data
@SuperBuilder @SuperBuilder
@ -24,65 +29,153 @@ import java.util.Date;
@AllArgsConstructor @AllArgsConstructor
@TableName("company") @TableName("company")
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)
public class Company extends BaseEntity @ApiModel(value = "Company", description = "企业")
{ public class Company extends BaseEntity {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /** 主键 */
*
*/
@TableId(value = "id",type = IdType.AUTO) @TableId(value = "id",type = IdType.AUTO)
@ApiModelProperty(name = "主键", value = "主键")
private Long id; private Long id;
/**
* /** 企业名称 */
*/ @Excel(name = "企业名称")
@ApiModelProperty(name = "企业名称", value = "企业名称")
private String companyName; private String companyName;
/**
* /** 法定代理人 */
*/ @Excel(name = "法定代理人")
@ApiModelProperty(name = "法定代理人", value = "法定代理人")
private String legalRepresentative; private String legalRepresentative;
/**
* /** 企业注册时获得的合法经营凭证号码 */
*/ @Excel(name = "企业注册时获得的合法经营凭证号码")
@ApiModelProperty(name = "企业注册时获得的合法经营凭证号码", value = "企业注册时获得的合法经营凭证号码")
private String businessLicenseNumber; private String businessLicenseNumber;
/**
* /** 企业成立的日期 */
*/ @JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "企业成立的日期", width = 30, dateFormat = "yyyy-MM-dd")
@ApiModelProperty(name = "企业成立的日期", value = "企业成立的日期")
private Date companyTime; private Date companyTime;
/**
* /** 经营范围 */
*/ @Excel(name = "经营范围")
@ApiModelProperty(name = "经营范围", value = "经营范围")
private String sphereOfBusiness; private String sphereOfBusiness;
/**
* /** 注册地址 */
*/ @Excel(name = "注册地址")
@ApiModelProperty(name = "注册地址", value = "注册地址")
private String registeredAddress; private String registeredAddress;
/**
* /** 负责人电话 */
*/ @Excel(name = "负责人电话")
@ApiModelProperty(name = "负责人电话", value = "负责人电话")
private String companyPhone; private String companyPhone;
/**
* /** 负责人邮箱 */
*/ @Excel(name = "负责人邮箱")
@ApiModelProperty(name = "负责人邮箱", value = "负责人邮箱")
private String companyMailbox; private String companyMailbox;
/**
* ,,, /** 企业当前的状态,如正常状态,暂停,注销 */
*/ @Excel(name = "企业当前的状态,如正常状态,暂停,注销")
@ApiModelProperty(name = "企业当前的状态,如正常状态,暂停,注销", value = "企业当前的状态,如正常状态,暂停,注销")
private String companyStatus; private String companyStatus;
/**
* /** 企业入驻时间 */
*/ @JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "企业入驻时间", width = 30, dateFormat = "yyyy-MM-dd")
@ApiModelProperty(name = "企业入驻时间", value = "企业入驻时间")
private Date enterTime; private Date enterTime;
/**
* /** 企业认证主键 */
*/ @Excel(name = "企业认证主键")
@ApiModelProperty(name = "企业认证主键", value = "企业认证主键")
private Long authenticationId; private Long authenticationId;
/**
* /** 开通服务主键 */
*/ @Excel(name = "开通服务主键")
@ApiModelProperty(name = "开通服务主键", value = "开通服务主键")
private Long liberalServiceId; private Long liberalServiceId;
/**
* /** 增值服务主键 */
*/ @Excel(name = "增值服务主键")
@ApiModelProperty(name = "增值服务主键", value = "增值服务主键")
private Long appreciationServiceId; private Long appreciationServiceId;
/** 用户ID */
@Excel(name = "用户ID")
@ApiModelProperty(name = "用户ID", value = "用户ID")
private Long userId;
/**
*
*/
public static Company queryBuild( CompanyQueryReq companyQueryReq){
return Company.builder()
.companyName(companyQueryReq.getCompanyName())
.legalRepresentative(companyQueryReq.getLegalRepresentative())
.businessLicenseNumber(companyQueryReq.getBusinessLicenseNumber())
.companyTime(companyQueryReq.getCompanyTime())
.sphereOfBusiness(companyQueryReq.getSphereOfBusiness())
.registeredAddress(companyQueryReq.getRegisteredAddress())
.companyPhone(companyQueryReq.getCompanyPhone())
.companyMailbox(companyQueryReq.getCompanyMailbox())
.companyStatus(companyQueryReq.getCompanyStatus())
.enterTime(companyQueryReq.getEnterTime())
.authenticationId(companyQueryReq.getAuthenticationId())
.liberalServiceId(companyQueryReq.getLiberalServiceId())
.appreciationServiceId(companyQueryReq.getAppreciationServiceId())
.userId(companyQueryReq.getUserId())
.build();
}
/**
*
*/
public static Company saveBuild(CompanySaveReq companySaveReq){
return Company.builder()
.companyName(companySaveReq.getCompanyName())
.legalRepresentative(companySaveReq.getLegalRepresentative())
.businessLicenseNumber(companySaveReq.getBusinessLicenseNumber())
.companyTime(companySaveReq.getCompanyTime())
.sphereOfBusiness(companySaveReq.getSphereOfBusiness())
.registeredAddress(companySaveReq.getRegisteredAddress())
.companyPhone(companySaveReq.getCompanyPhone())
.companyMailbox(companySaveReq.getCompanyMailbox())
.companyStatus(companySaveReq.getCompanyStatus())
.enterTime(companySaveReq.getEnterTime())
.authenticationId(companySaveReq.getAuthenticationId())
.liberalServiceId(companySaveReq.getLiberalServiceId())
.appreciationServiceId(companySaveReq.getAppreciationServiceId())
.userId(companySaveReq.getUserId())
.build();
}
/**
*
*/
public static Company editBuild(Long id, CompanyEditReq companyEditReq){
return Company.builder()
.id(id)
.companyName(companyEditReq.getCompanyName())
.legalRepresentative(companyEditReq.getLegalRepresentative())
.businessLicenseNumber(companyEditReq.getBusinessLicenseNumber())
.companyTime(companyEditReq.getCompanyTime())
.sphereOfBusiness(companyEditReq.getSphereOfBusiness())
.registeredAddress(companyEditReq.getRegisteredAddress())
.companyPhone(companyEditReq.getCompanyPhone())
.companyMailbox(companyEditReq.getCompanyMailbox())
.companyStatus(companyEditReq.getCompanyStatus())
.enterTime(companyEditReq.getEnterTime())
.authenticationId(companyEditReq.getAuthenticationId())
.liberalServiceId(companyEditReq.getLiberalServiceId())
.appreciationServiceId(companyEditReq.getAppreciationServiceId())
.userId(companyEditReq.getUserId())
.build();
}
} }

View File

@ -1,41 +0,0 @@
package com.muyu.company.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
*
*
* @ClassName Liberal
* @Author AnNan.Wang
* @Date 2024/5/28 21:31
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@TableName("liberal")
@EqualsAndHashCode(callSuper = true)
public class Liberal extends BaseEntity {
private static final long serialVersionUID =1L;
/**
*
*/
@TableId(value = "id",type = IdType.AUTO)
private Long id;
/**
* 1 2
*/
private String activateTheService;
}

View File

@ -1,48 +0,0 @@
package com.muyu.company.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
*
*
* @ClassName Pay
* @Author AnNan.Wang
* @Date 2024/5/28 21:33
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@TableName("pay")
@EqualsAndHashCode(callSuper = true)
public class Pay extends BaseEntity {
private static final long serialVersionUID =1L;
/**
*
*/
@TableId(value = "id",type = IdType.AUTO)
private Long id;
/**
*
*/
private Long companyId;
/**
*
*/
private Long paymentId;
/**
*
*/
private Double appreciationDecimal;
}

View File

@ -1,39 +0,0 @@
package com.muyu.company.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.muyu.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
/**
*
*
* @ClassName Payment
* @Author AnNan.Wang
* @Date 2024/5/28 21:51
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@TableName("payment")
@EqualsAndHashCode(callSuper = true)
public class Payment extends BaseEntity {
private static final long serialVersionUID =1L;
/**
*
*/
@TableId(value = "id",type = IdType.AUTO)
private Long id;
/**
*
*/
private String payment;
}

View File

@ -0,0 +1,86 @@
package com.muyu.company.domain.req;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* company
*
* @author wan
* @date 2024-05-29
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "CompanyEditReq", description = "企业")
public class CompanyEditReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 企业名称 */
@ApiModelProperty(name = "企业名称", value = "企业名称")
private String companyName;
/** 法定代理人 */
@ApiModelProperty(name = "法定代理人", value = "法定代理人")
private String legalRepresentative;
/** 企业注册时获得的合法经营凭证号码 */
@ApiModelProperty(name = "企业注册时获得的合法经营凭证号码", value = "企业注册时获得的合法经营凭证号码")
private String businessLicenseNumber;
/** 企业成立的日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@ApiModelProperty(name = "企业成立的日期", value = "企业成立的日期")
private Date companyTime;
/** 经营范围 */
@ApiModelProperty(name = "经营范围", value = "经营范围")
private String sphereOfBusiness;
/** 注册地址 */
@ApiModelProperty(name = "注册地址", value = "注册地址")
private String registeredAddress;
/** 负责人电话 */
@ApiModelProperty(name = "负责人电话", value = "负责人电话")
private String companyPhone;
/** 负责人邮箱 */
@ApiModelProperty(name = "负责人邮箱", value = "负责人邮箱")
private String companyMailbox;
/** 企业当前的状态,如正常状态,暂停,注销 */
@ApiModelProperty(name = "企业当前的状态,如正常状态,暂停,注销", value = "企业当前的状态,如正常状态,暂停,注销")
private String companyStatus;
/** 企业入驻时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@ApiModelProperty(name = "企业入驻时间", value = "企业入驻时间")
private Date enterTime;
/** 企业认证主键 */
@ApiModelProperty(name = "企业认证主键", value = "企业认证主键")
private Long authenticationId;
/** 开通服务主键 */
@ApiModelProperty(name = "开通服务主键", value = "开通服务主键")
private Long liberalServiceId;
/** 增值服务主键 */
@ApiModelProperty(name = "增值服务主键", value = "增值服务主键")
private Long appreciationServiceId;
/** 用户ID */
@ApiModelProperty(name = "用户ID", value = "用户ID")
private Long userId;
}

View File

@ -0,0 +1,86 @@
package com.muyu.company.domain.req;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* company
*
* @author wan
* @date 2024-05-29
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "CompanyQueryReq", description = "企业")
public class CompanyQueryReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 企业名称 */
@ApiModelProperty(name = "企业名称", value = "企业名称")
private String companyName;
/** 法定代理人 */
@ApiModelProperty(name = "法定代理人", value = "法定代理人")
private String legalRepresentative;
/** 企业注册时获得的合法经营凭证号码 */
@ApiModelProperty(name = "企业注册时获得的合法经营凭证号码", value = "企业注册时获得的合法经营凭证号码")
private String businessLicenseNumber;
/** 企业成立的日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@ApiModelProperty(name = "企业成立的日期", value = "企业成立的日期")
private Date companyTime;
/** 经营范围 */
@ApiModelProperty(name = "经营范围", value = "经营范围")
private String sphereOfBusiness;
/** 注册地址 */
@ApiModelProperty(name = "注册地址", value = "注册地址")
private String registeredAddress;
/** 负责人电话 */
@ApiModelProperty(name = "负责人电话", value = "负责人电话")
private String companyPhone;
/** 负责人邮箱 */
@ApiModelProperty(name = "负责人邮箱", value = "负责人邮箱")
private String companyMailbox;
/** 企业当前的状态,如正常状态,暂停,注销 */
@ApiModelProperty(name = "企业当前的状态,如正常状态,暂停,注销", value = "企业当前的状态,如正常状态,暂停,注销")
private String companyStatus;
/** 企业入驻时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@ApiModelProperty(name = "企业入驻时间", value = "企业入驻时间")
private Date enterTime;
/** 企业认证主键 */
@ApiModelProperty(name = "企业认证主键", value = "企业认证主键")
private Long authenticationId;
/** 开通服务主键 */
@ApiModelProperty(name = "开通服务主键", value = "开通服务主键")
private Long liberalServiceId;
/** 增值服务主键 */
@ApiModelProperty(name = "增值服务主键", value = "增值服务主键")
private Long appreciationServiceId;
/** 用户ID */
@ApiModelProperty(name = "用户ID", value = "用户ID")
private Long userId;
}

View File

@ -0,0 +1,105 @@
package com.muyu.company.domain.req;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* company
*
* @author wan
* @date 2024-05-29
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "CompanySaveReq", description = "企业")
public class CompanySaveReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 主键 */
@ApiModelProperty(name = "主键", value = "主键")
private Long id;
/** 企业名称 */
@ApiModelProperty(name = "企业名称", value = "企业名称")
private String companyName;
/** 法定代理人 */
@ApiModelProperty(name = "法定代理人", value = "法定代理人")
private String legalRepresentative;
/** 企业注册时获得的合法经营凭证号码 */
@ApiModelProperty(name = "企业注册时获得的合法经营凭证号码", value = "企业注册时获得的合法经营凭证号码")
private String businessLicenseNumber;
/** 企业成立的日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@ApiModelProperty(name = "企业成立的日期", value = "企业成立的日期")
private Date companyTime;
/** 经营范围 */
@ApiModelProperty(name = "经营范围", value = "经营范围")
private String sphereOfBusiness;
/** 注册地址 */
@ApiModelProperty(name = "注册地址", value = "注册地址")
private String registeredAddress;
/** 负责人电话 */
@ApiModelProperty(name = "负责人电话", value = "负责人电话")
private String companyPhone;
/** 负责人邮箱 */
@ApiModelProperty(name = "负责人邮箱", value = "负责人邮箱")
private String companyMailbox;
/** 企业当前的状态,如正常状态,暂停,注销 */
@ApiModelProperty(name = "企业当前的状态,如正常状态,暂停,注销", value = "企业当前的状态,如正常状态,暂停,注销")
private String companyStatus;
/** 企业入驻时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@ApiModelProperty(name = "企业入驻时间", value = "企业入驻时间")
private Date enterTime;
/** 企业认证主键 */
@ApiModelProperty(name = "企业认证主键", value = "企业认证主键")
private Long authenticationId;
/** 开通服务主键 */
@ApiModelProperty(name = "开通服务主键", value = "开通服务主键")
private Long liberalServiceId;
/** 增值服务主键 */
@ApiModelProperty(name = "增值服务主键", value = "增值服务主键")
private Long appreciationServiceId;
/** 用户ID */
@ApiModelProperty(name = "用户ID", value = "用户ID")
private Long userId;
}

View File

@ -0,0 +1,73 @@
package com.muyu.liberal.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.annotation.Excel;
import com.muyu.liberal.domain.req.LiberalQueryReq;
import com.muyu.liberal.domain.req.LiberalSaveReq;
import com.muyu.liberal.domain.req.LiberalEditReq;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* liberal
*
* @author wan
* @date 2024-05-29
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@TableName("liberal")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Liberal", description = "开通服务")
public class Liberal extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 开通主键 */
@TableId(value = "id",type = IdType.AUTO)
@ApiModelProperty(name = "开通主键", value = "开通主键")
private Long id;
/** 1开通 2未开通 */
@Excel(name = "1开通 2未开通")
@ApiModelProperty(name = "1开通 2未开通", value = "1开通 2未开通")
private String activateTheService;
/**
*
*/
public static Liberal queryBuild( LiberalQueryReq liberalQueryReq){
return Liberal.builder()
.activateTheService(liberalQueryReq.getActivateTheService())
.build();
}
/**
*
*/
public static Liberal saveBuild(LiberalSaveReq liberalSaveReq){
return Liberal.builder()
.activateTheService(liberalSaveReq.getActivateTheService())
.build();
}
/**
*
*/
public static Liberal editBuild(Long id, LiberalEditReq liberalEditReq){
return Liberal.builder()
.id(id)
.activateTheService(liberalEditReq.getActivateTheService())
.build();
}
}

View File

@ -0,0 +1,30 @@
package com.muyu.liberal.domain.req;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* liberal
*
* @author wan
* @date 2024-05-29
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "LiberalEditReq", description = "开通服务")
public class LiberalEditReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 1开通 2未开通 */
@ApiModelProperty(name = "1开通 2未开通", value = "1开通 2未开通")
private String activateTheService;
}

View File

@ -0,0 +1,30 @@
package com.muyu.liberal.domain.req;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* liberal
*
* @author wan
* @date 2024-05-29
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "LiberalQueryReq", description = "开通服务")
public class LiberalQueryReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 1开通 2未开通 */
@ApiModelProperty(name = "1开通 2未开通", value = "1开通 2未开通")
private String activateTheService;
}

View File

@ -0,0 +1,36 @@
package com.muyu.liberal.domain.req;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* liberal
*
* @author wan
* @date 2024-05-29
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "LiberalSaveReq", description = "开通服务")
public class LiberalSaveReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 开通主键 */
@ApiModelProperty(name = "开通主键", value = "开通主键")
private Long id;
/** 1开通 2未开通 */
@ApiModelProperty(name = "1开通 2未开通", value = "1开通 2未开通")
private String activateTheService;
}

View File

@ -0,0 +1,90 @@
package com.muyu.pay.domain;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.annotation.Excel;
import com.muyu.pay.domain.req.PayQueryReq;
import com.muyu.pay.domain.req.PaySaveReq;
import com.muyu.pay.domain.req.PayEditReq;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* pay
*
* @author wan
* @date 2024-05-29
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@TableName("pay")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Pay", description = "支付")
public class Pay extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 支付主键 */
@TableId(value = "id",type = IdType.AUTO)
@ApiModelProperty(name = "支付主键", value = "支付主键")
private Long id;
/** 企业主键 */
@Excel(name = "企业主键")
@ApiModelProperty(name = "企业主键", value = "企业主键")
private Long companyId;
/** 支付方式主键 */
@Excel(name = "支付方式主键")
@ApiModelProperty(name = "支付方式主键", value = "支付方式主键")
private Long paymentId;
/** 增值需要支付的价格 */
@Excel(name = "增值需要支付的价格")
@ApiModelProperty(name = "增值需要支付的价格", value = "增值需要支付的价格")
private BigDecimal appreciationDecimal;
/**
*
*/
public static Pay queryBuild( PayQueryReq payQueryReq){
return Pay.builder()
.companyId(payQueryReq.getCompanyId())
.paymentId(payQueryReq.getPaymentId())
.appreciationDecimal(payQueryReq.getAppreciationDecimal())
.build();
}
/**
*
*/
public static Pay saveBuild(PaySaveReq paySaveReq){
return Pay.builder()
.companyId(paySaveReq.getCompanyId())
.paymentId(paySaveReq.getPaymentId())
.appreciationDecimal(paySaveReq.getAppreciationDecimal())
.build();
}
/**
*
*/
public static Pay editBuild(Long id, PayEditReq payEditReq){
return Pay.builder()
.id(id)
.companyId(payEditReq.getCompanyId())
.paymentId(payEditReq.getPaymentId())
.appreciationDecimal(payEditReq.getAppreciationDecimal())
.build();
}
}

View File

@ -0,0 +1,39 @@
package com.muyu.pay.domain.req;
import java.math.BigDecimal;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* pay
*
* @author wan
* @date 2024-05-29
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "PayEditReq", description = "支付")
public class PayEditReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 企业主键 */
@ApiModelProperty(name = "企业主键", value = "企业主键")
private Long companyId;
/** 支付方式主键 */
@ApiModelProperty(name = "支付方式主键", value = "支付方式主键")
private Long paymentId;
/** 增值需要支付的价格 */
@ApiModelProperty(name = "增值需要支付的价格", value = "增值需要支付的价格")
private BigDecimal appreciationDecimal;
}

View File

@ -0,0 +1,39 @@
package com.muyu.pay.domain.req;
import java.math.BigDecimal;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* pay
*
* @author wan
* @date 2024-05-29
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "PayQueryReq", description = "支付")
public class PayQueryReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 企业主键 */
@ApiModelProperty(name = "企业主键", value = "企业主键")
private Long companyId;
/** 支付方式主键 */
@ApiModelProperty(name = "支付方式主键", value = "支付方式主键")
private Long paymentId;
/** 增值需要支付的价格 */
@ApiModelProperty(name = "增值需要支付的价格", value = "增值需要支付的价格")
private BigDecimal appreciationDecimal;
}

View File

@ -0,0 +1,47 @@
package com.muyu.pay.domain.req;
import java.math.BigDecimal;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* pay
*
* @author wan
* @date 2024-05-29
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "PaySaveReq", description = "支付")
public class PaySaveReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 支付主键 */
@ApiModelProperty(name = "支付主键", value = "支付主键")
private Long id;
/** 企业主键 */
@ApiModelProperty(name = "企业主键", value = "企业主键")
private Long companyId;
/** 支付方式主键 */
@ApiModelProperty(name = "支付方式主键", value = "支付方式主键")
private Long paymentId;
/** 增值需要支付的价格 */
@ApiModelProperty(name = "增值需要支付的价格", value = "增值需要支付的价格")
private BigDecimal appreciationDecimal;
}

View File

@ -0,0 +1,73 @@
package com.muyu.payment.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.annotation.Excel;
import com.muyu.payment.domain.req.PaymentQueryReq;
import com.muyu.payment.domain.req.PaymentSaveReq;
import com.muyu.payment.domain.req.PaymentEditReq;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* payment
*
* @author wan
* @date 2024-05-29
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@TableName("payment")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Payment", description = "支付方式")
public class Payment extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 支付方式主键 */
@TableId(value = "id",type = IdType.AUTO)
@ApiModelProperty(name = "支付方式主键", value = "支付方式主键")
private Long id;
/** 支付方式 */
@Excel(name = "支付方式")
@ApiModelProperty(name = "支付方式", value = "支付方式")
private String payment;
/**
*
*/
public static Payment queryBuild( PaymentQueryReq paymentQueryReq){
return Payment.builder()
.payment(paymentQueryReq.getPayment())
.build();
}
/**
*
*/
public static Payment saveBuild(PaymentSaveReq paymentSaveReq){
return Payment.builder()
.payment(paymentSaveReq.getPayment())
.build();
}
/**
*
*/
public static Payment editBuild(Long id, PaymentEditReq paymentEditReq){
return Payment.builder()
.id(id)
.payment(paymentEditReq.getPayment())
.build();
}
}

View File

@ -0,0 +1,30 @@
package com.muyu.payment.domain.req;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* payment
*
* @author wan
* @date 2024-05-29
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "PaymentEditReq", description = "支付方式")
public class PaymentEditReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 支付方式 */
@ApiModelProperty(name = "支付方式", value = "支付方式")
private String payment;
}

View File

@ -0,0 +1,30 @@
package com.muyu.payment.domain.req;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* payment
*
* @author wan
* @date 2024-05-29
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "PaymentQueryReq", description = "支付方式")
public class PaymentQueryReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 支付方式 */
@ApiModelProperty(name = "支付方式", value = "支付方式")
private String payment;
}

View File

@ -0,0 +1,36 @@
package com.muyu.payment.domain.req;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.annotations.*;
import com.muyu.common.core.web.domain.BaseEntity;
/**
* payment
*
* @author wan
* @date 2024-05-29
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "PaymentSaveReq", description = "支付方式")
public class PaymentSaveReq extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 支付方式主键 */
@ApiModelProperty(name = "支付方式主键", value = "支付方式主键")
private Long id;
/** 支付方式 */
@ApiModelProperty(name = "支付方式", value = "支付方式")
private String payment;
}

View File

@ -91,6 +91,11 @@
<version>3.6.3</version> <version>3.6.3</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency>
<groupId>com.muyu</groupId>
<artifactId>muyu-common-core</artifactId>
<version>3.6.3</version>
</dependency>
</dependencies> </dependencies>

View File

@ -1,4 +1,4 @@
package com.muyu.company; package com.muyu.authentication;
import com.muyu.common.security.annotation.EnableCustomConfig; import com.muyu.common.security.annotation.EnableCustomConfig;
import com.muyu.common.security.annotation.EnableMyFeignClients; import com.muyu.common.security.annotation.EnableMyFeignClients;

View File

@ -0,0 +1,106 @@
package com.muyu.authentication.controller;
import com.muyu.authentication.domain.Authentication;
import com.muyu.authentication.domain.req.AuthenticationEditReq;
import com.muyu.authentication.domain.req.AuthenticationQueryReq;
import com.muyu.authentication.domain.req.AuthenticationSaveReq;
import com.muyu.authentication.service.AuthenticationService;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.utils.poi.ExcelUtil;
import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.core.web.page.TableDataInfo;
import com.muyu.common.log.annotation.Log;
import com.muyu.common.log.enums.BusinessType;
import com.muyu.common.security.annotation.RequiresPermissions;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* Controller
*
* @author wan
* @date 2024-05-29
*/
@Api(tags = "认证")
@RestController
@RequestMapping("/authentication")
public class AuthenticationController extends BaseController {
@Autowired
private AuthenticationService authenticationService;
/**
*
*/
@ApiOperation("获取认证列表")
@RequiresPermissions("authentication:authentication:list")
@GetMapping("/list")
public Result<TableDataInfo<Authentication>> list(AuthenticationQueryReq authenticationQueryReq) {
startPage();
List<Authentication> list = authenticationService.list(Authentication.queryBuild(authenticationQueryReq));
return getDataTable(list);
}
/**
*
*/
@ApiOperation("导出认证列表")
@RequiresPermissions("authentication:authentication:export")
@Log(title = "认证", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, Authentication authentication) {
List<Authentication> list = authenticationService.list(authentication);
ExcelUtil<Authentication> util = new ExcelUtil<Authentication>(Authentication.class);
util.exportExcel(response, list, "认证数据");
}
/**
*
*/
@ApiOperation("获取认证详细信息")
@RequiresPermissions("authentication:authentication:query")
@GetMapping(value = "/{id}")
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = Long.class)
public Result<Authentication> getInfo(@PathVariable("id") Long id) {
return Result.success(authenticationService.getById(id));
}
/**
*
*/
@RequiresPermissions("authentication:authentication:add")
@Log(title = "认证", businessType = BusinessType.INSERT)
@PostMapping
@ApiOperation("新增认证")
public Result<String> add(@RequestBody AuthenticationSaveReq authenticationSaveReq) {
return toAjax(authenticationService.save(Authentication.saveBuild(authenticationSaveReq)));
}
/**
*
*/
@RequiresPermissions("authentication:authentication:edit")
@Log(title = "认证", businessType = BusinessType.UPDATE)
@PutMapping("/{id}")
@ApiOperation("修改认证")
public Result<String> edit(@PathVariable Long id, @RequestBody AuthenticationEditReq authenticationEditReq) {
return toAjax(authenticationService.updateById(Authentication.editBuild(id,authenticationEditReq)));
}
/**
*
*/
@RequiresPermissions("authentication:authentication:remove")
@Log(title = "认证", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
@ApiOperation("删除认证")
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = String.class, example = "1,2,3,4")
public Result<String> remove(@PathVariable List<Long> ids) {
return toAjax(authenticationService.removeBatchByIds(ids));
}
}

View File

@ -0,0 +1,111 @@
package com.muyu.authentication.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.muyu.authentication.service.CompanyService;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.utils.poi.ExcelUtil;
import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.log.annotation.Log;
import com.muyu.common.log.enums.BusinessType;
import com.muyu.common.security.annotation.RequiresPermissions;
import com.muyu.company.domain.Company;
import com.muyu.company.domain.req.CompanyQueryReq;
import com.muyu.company.domain.req.CompanySaveReq;
import com.muyu.company.domain.req.CompanyEditReq;
import com.muyu.common.core.web.page.TableDataInfo;
/**
* Controller
*
* @author wan
* @date 2024-05-29
*/
@Api(tags = "企业")
@RestController
@RequestMapping("/company")
public class CompanyController extends BaseController {
@Autowired
private CompanyService companyService;
/**
*
*/
@ApiOperation("获取企业列表")
@RequiresPermissions("authentication:company:list")
@GetMapping("/list")
public Result<TableDataInfo<Company>> list(CompanyQueryReq companyQueryReq) {
startPage();
List<Company> list = companyService.list(Company.queryBuild(companyQueryReq));
return getDataTable(list);
}
/**
*
*/
@ApiOperation("导出企业列表")
@RequiresPermissions("authentication:company:export")
@Log(title = "企业", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, Company company) {
List<Company> list = companyService.list(company);
ExcelUtil<Company> util = new ExcelUtil<Company>(Company.class);
util.exportExcel(response, list, "企业数据");
}
/**
*
*/
@ApiOperation("获取企业详细信息")
@RequiresPermissions("authentication:company:query")
@GetMapping(value = "/{id}")
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = Long.class)
public Result<Company> getInfo(@PathVariable("id") Long id) {
return Result.success(companyService.getById(id));
}
/**
*
*/
@RequiresPermissions("authentication:company:add")
@Log(title = "企业", businessType = BusinessType.INSERT)
@PostMapping
@ApiOperation("新增企业")
public Result<String> add(@RequestBody CompanySaveReq companySaveReq) {
return toAjax(companyService.save(Company.saveBuild(companySaveReq)));
}
/**
*
*/
@RequiresPermissions("authentication:company:edit")
@Log(title = "企业", businessType = BusinessType.UPDATE)
@PutMapping("/{id}")
@ApiOperation("修改企业")
public Result<String> edit(@PathVariable Long id, @RequestBody CompanyEditReq companyEditReq) {
return toAjax(companyService.updateById(Company.editBuild(id,companyEditReq)));
}
/**
*
*/
@RequiresPermissions("authentication:company:remove")
@Log(title = "企业", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
@ApiOperation("删除企业")
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = String.class, example = "1,2,3,4")
public Result<String> remove(@PathVariable List<Long> ids) {
return toAjax(companyService.removeBatchByIds(ids));
}
}

View File

@ -0,0 +1,107 @@
package com.muyu.authentication.controller;
import com.muyu.authentication.service.LiberalService;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.utils.poi.ExcelUtil;
import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.core.web.page.TableDataInfo;
import com.muyu.common.log.annotation.Log;
import com.muyu.common.log.enums.BusinessType;
import com.muyu.common.security.annotation.RequiresPermissions;
import com.muyu.liberal.domain.Liberal;
import com.muyu.liberal.domain.req.LiberalEditReq;
import com.muyu.liberal.domain.req.LiberalQueryReq;
import com.muyu.liberal.domain.req.LiberalSaveReq;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* Controller
*
* @author wan
* @date 2024-05-29
*/
@Api(tags = "开通服务")
@RestController
@RequestMapping("/liberal")
public class LiberalController extends BaseController {
@Autowired
private LiberalService liberalService;
/**
*
*/
@ApiOperation("获取开通服务列表")
@RequiresPermissions("authentication:liberal:list")
@GetMapping("/list")
public Result<TableDataInfo<Liberal>> list(LiberalQueryReq liberalQueryReq) {
startPage();
List<Liberal> list = liberalService.list(Liberal.queryBuild(liberalQueryReq));
return getDataTable(list);
}
/**
*
*/
@ApiOperation("导出开通服务列表")
@RequiresPermissions("authentication:liberal:export")
@Log(title = "开通服务", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, Liberal liberal) {
List<Liberal> list = liberalService.list(liberal);
ExcelUtil<Liberal> util = new ExcelUtil<Liberal>(Liberal.class);
util.exportExcel(response, list, "开通服务数据");
}
/**
*
*/
@ApiOperation("获取开通服务详细信息")
@RequiresPermissions("authentication:liberal:query")
@GetMapping(value = "/{id}")
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = Long.class)
public Result<Liberal> getInfo(@PathVariable("id") Long id) {
return Result.success(liberalService.getById(id));
}
/**
*
*/
@RequiresPermissions("authentication:liberal:add")
@Log(title = "开通服务", businessType = BusinessType.INSERT)
@PostMapping
@ApiOperation("新增开通服务")
public Result<String> add(@RequestBody LiberalSaveReq liberalSaveReq) {
return toAjax(liberalService.save(Liberal.saveBuild(liberalSaveReq)));
}
/**
*
*/
@RequiresPermissions("authentication:liberal:edit")
@Log(title = "开通服务", businessType = BusinessType.UPDATE)
@PutMapping("/{id}")
@ApiOperation("修改开通服务")
public Result<String> edit(@PathVariable Long id, @RequestBody LiberalEditReq liberalEditReq) {
return toAjax(liberalService.updateById(Liberal.editBuild(id,liberalEditReq)));
}
/**
*
*/
@RequiresPermissions("authentication:liberal:remove")
@Log(title = "开通服务", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
@ApiOperation("删除开通服务")
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = String.class, example = "1,2,3,4")
public Result<String> remove(@PathVariable List<Long> ids) {
return toAjax(liberalService.removeBatchByIds(ids));
}
}

View File

@ -0,0 +1,106 @@
package com.muyu.authentication.controller;
import com.muyu.authentication.service.PayService;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.utils.poi.ExcelUtil;
import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.core.web.page.TableDataInfo;
import com.muyu.common.log.annotation.Log;
import com.muyu.common.log.enums.BusinessType;
import com.muyu.common.security.annotation.RequiresPermissions;
import com.muyu.pay.domain.Pay;
import com.muyu.pay.domain.req.PayEditReq;
import com.muyu.pay.domain.req.PayQueryReq;
import com.muyu.pay.domain.req.PaySaveReq;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* Controller
*
* @author wan
* @date 2024-05-29
*/
@Api(tags = "支付")
@RestController
@RequestMapping("/pay")
public class PayController extends BaseController {
@Autowired
private PayService payService;
/**
*
*/
@ApiOperation("获取支付列表")
@RequiresPermissions("authentication:pay:list")
@GetMapping("/list")
public Result<TableDataInfo<Pay>> list(PayQueryReq payQueryReq) {
startPage();
List<Pay> list = payService.list(Pay.queryBuild(payQueryReq));
return getDataTable(list);
}
/**
*
*/
@ApiOperation("导出支付列表")
@RequiresPermissions("authentication:pay:export")
@Log(title = "支付", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, Pay pay) {
List<Pay> list = payService.list(pay);
ExcelUtil<Pay> util = new ExcelUtil<Pay>(Pay.class);
util.exportExcel(response, list, "支付数据");
}
/**
*
*/
@ApiOperation("获取支付详细信息")
@RequiresPermissions("authentication:pay:query")
@GetMapping(value = "/{id}")
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = Long.class)
public Result<Pay> getInfo(@PathVariable("id") Long id) {
return Result.success(payService.getById(id));
}
/**
*
*/
@RequiresPermissions("authentication:pay:add")
@Log(title = "支付", businessType = BusinessType.INSERT)
@PostMapping
@ApiOperation("新增支付")
public Result<String> add(@RequestBody PaySaveReq paySaveReq) {
return toAjax(payService.save(Pay.saveBuild(paySaveReq)));
}
/**
*
*/
@RequiresPermissions("authentication:pay:edit")
@Log(title = "支付", businessType = BusinessType.UPDATE)
@PutMapping("/{id}")
@ApiOperation("修改支付")
public Result<String> edit(@PathVariable Long id, @RequestBody PayEditReq payEditReq) {
return toAjax(payService.updateById(Pay.editBuild(id,payEditReq)));
}
/**
*
*/
@RequiresPermissions("authentication:pay:remove")
@Log(title = "支付", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
@ApiOperation("删除支付")
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = String.class, example = "1,2,3,4")
public Result<String> remove(@PathVariable List<Long> ids) {
return toAjax(payService.removeBatchByIds(ids));
}
}

View File

@ -0,0 +1,106 @@
package com.muyu.authentication.controller;
import com.muyu.authentication.service.PaymentService;
import com.muyu.common.core.domain.Result;
import com.muyu.common.core.utils.poi.ExcelUtil;
import com.muyu.common.core.web.controller.BaseController;
import com.muyu.common.core.web.page.TableDataInfo;
import com.muyu.common.log.annotation.Log;
import com.muyu.common.log.enums.BusinessType;
import com.muyu.common.security.annotation.RequiresPermissions;
import com.muyu.payment.domain.Payment;
import com.muyu.payment.domain.req.PaymentEditReq;
import com.muyu.payment.domain.req.PaymentQueryReq;
import com.muyu.payment.domain.req.PaymentSaveReq;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* Controller
*
* @author wan
* @date 2024-05-29
*/
@Api(tags = "支付方式")
@RestController
@RequestMapping("/payment")
public class PaymentController extends BaseController {
@Autowired
private PaymentService paymentService;
/**
*
*/
@ApiOperation("获取支付方式列表")
@RequiresPermissions("authentication:payment:list")
@GetMapping("/list")
public Result<TableDataInfo<Payment>> list(PaymentQueryReq paymentQueryReq) {
startPage();
List<Payment> list = paymentService.list(Payment.queryBuild(paymentQueryReq));
return getDataTable(list);
}
/**
*
*/
@ApiOperation("导出支付方式列表")
@RequiresPermissions("authentication:payment:export")
@Log(title = "支付方式", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, Payment payment) {
List<Payment> list = paymentService.list(payment);
ExcelUtil<Payment> util = new ExcelUtil<Payment>(Payment.class);
util.exportExcel(response, list, "支付方式数据");
}
/**
*
*/
@ApiOperation("获取支付方式详细信息")
@RequiresPermissions("authentication:payment:query")
@GetMapping(value = "/{id}")
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = Long.class)
public Result<Payment> getInfo(@PathVariable("id") Long id) {
return Result.success(paymentService.getById(id));
}
/**
*
*/
@RequiresPermissions("authentication:payment:add")
@Log(title = "支付方式", businessType = BusinessType.INSERT)
@PostMapping
@ApiOperation("新增支付方式")
public Result<String> add(@RequestBody PaymentSaveReq paymentSaveReq) {
return toAjax(paymentService.save(Payment.saveBuild(paymentSaveReq)));
}
/**
*
*/
@RequiresPermissions("authentication:payment:edit")
@Log(title = "支付方式", businessType = BusinessType.UPDATE)
@PutMapping("/{id}")
@ApiOperation("修改支付方式")
public Result<String> edit(@PathVariable Long id, @RequestBody PaymentEditReq paymentEditReq) {
return toAjax(paymentService.updateById(Payment.editBuild(id,paymentEditReq)));
}
/**
*
*/
@RequiresPermissions("authentication:payment:remove")
@Log(title = "支付方式", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
@ApiOperation("删除支付方式")
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = String.class, example = "1,2,3,4")
public Result<String> remove(@PathVariable List<Long> ids) {
return toAjax(paymentService.removeBatchByIds(ids));
}
}

View File

@ -0,0 +1,14 @@
package com.muyu.authentication.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.authentication.domain.Authentication;
/**
* Mapper
*
* @author wan
* @date 2024-05-29
*/
public interface AuthenticationMapper extends BaseMapper<Authentication> {
}

View File

@ -0,0 +1,15 @@
package com.muyu.authentication.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.company.domain.Company;
/**
* Mapper
*
* @author wan
* @date 2024-05-29
*/
public interface CompanyMapper extends BaseMapper<Company> {
}

View File

@ -0,0 +1,14 @@
package com.muyu.authentication.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.liberal.domain.Liberal;
/**
* Mapper
*
* @author wan
* @date 2024-05-29
*/
public interface LiberalMapper extends BaseMapper<Liberal> {
}

View File

@ -0,0 +1,14 @@
package com.muyu.authentication.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.pay.domain.Pay;
/**
* Mapper
*
* @author wan
* @date 2024-05-29
*/
public interface PayMapper extends BaseMapper<Pay> {
}

View File

@ -0,0 +1,14 @@
package com.muyu.authentication.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.payment.domain.Payment;
/**
* Mapper
*
* @author wan
* @date 2024-05-29
*/
public interface PaymentMapper extends BaseMapper<Payment> {
}

View File

@ -0,0 +1,23 @@
package com.muyu.authentication.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.muyu.authentication.domain.Authentication;
import java.util.List;
/**
* Service
*
* @author wan
* @date 2024-05-29
*/
public interface AuthenticationService extends IService<Authentication> {
/**
*
*
* @param authentication
* @return
*/
public List<Authentication> list(Authentication authentication);
}

View File

@ -0,0 +1,22 @@
package com.muyu.authentication.service;
import java.util.List;
import com.muyu.company.domain.Company;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* Service
*
* @author wan
* @date 2024-05-29
*/
public interface CompanyService extends IService<Company> {
/**
*
*
* @param company
* @return
*/
public List<Company> list(Company company);
}

View File

@ -0,0 +1,23 @@
package com.muyu.authentication.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.muyu.liberal.domain.Liberal;
import java.util.List;
/**
* Service
*
* @author wan
* @date 2024-05-29
*/
public interface LiberalService extends IService<Liberal> {
/**
*
*
* @param liberal
* @return
*/
public List<Liberal> list(Liberal liberal);
}

View File

@ -0,0 +1,23 @@
package com.muyu.authentication.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.muyu.pay.domain.Pay;
import java.util.List;
/**
* Service
*
* @author wan
* @date 2024-05-29
*/
public interface PayService extends IService<Pay> {
/**
*
*
* @param pay
* @return
*/
public List<Pay> list(Pay pay);
}

View File

@ -0,0 +1,23 @@
package com.muyu.authentication.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.muyu.payment.domain.Payment;
import java.util.List;
/**
* Service
*
* @author wan
* @date 2024-05-29
*/
public interface PaymentService extends IService<Payment> {
/**
*
*
* @param payment
* @return
*/
public List<Payment> list(Payment payment);
}

View File

@ -0,0 +1,52 @@
package com.muyu.authentication.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.muyu.authentication.domain.Authentication;
import com.muyu.authentication.mapper.AuthenticationMapper;
import com.muyu.authentication.service.AuthenticationService;
import com.muyu.common.core.utils.ObjUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* Service
*
* @author wan
* @date 2024-05-29
*/
@Slf4j
@Service
public class AuthenticationServiceImpl extends ServiceImpl<AuthenticationMapper, Authentication> implements AuthenticationService {
/**
*
*
* @param authentication
* @return
*/
@Override
public List<Authentication> list(Authentication authentication) {
LambdaQueryWrapper<Authentication> queryWrapper = new LambdaQueryWrapper<>();
if (ObjUtils.notNull(authentication.getAuditor())){
queryWrapper.eq(Authentication::getAuditor, authentication.getAuditor());
}
if (ObjUtils.notNull(authentication.getStat())){
queryWrapper.eq(Authentication::getStat, authentication.getStat());
}
if (ObjUtils.notNull(authentication.getAuditReason())){
queryWrapper.eq(Authentication::getAuditReason, authentication.getAuditReason());
}
return list(queryWrapper);
}
}

View File

@ -0,0 +1,97 @@
package com.muyu.authentication.service.impl;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.muyu.authentication.mapper.CompanyMapper;
import com.muyu.authentication.service.CompanyService;
import com.muyu.common.core.utils.ObjUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import com.muyu.company.domain.Company;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
/**
* Service
*
* @author wan
* @date 2024-05-29
*/
@Slf4j
@Service
public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> implements CompanyService {
/**
*
*
* @param company
* @return
*/
@Override
public List<Company> list(Company company) {
LambdaQueryWrapper<Company> queryWrapper = new LambdaQueryWrapper<>();
if (ObjUtils.notNull(company.getCompanyName())){
queryWrapper.like(Company::getCompanyName, company.getCompanyName());
}
if (ObjUtils.notNull(company.getLegalRepresentative())){
queryWrapper.eq(Company::getLegalRepresentative, company.getLegalRepresentative());
}
if (ObjUtils.notNull(company.getBusinessLicenseNumber())){
queryWrapper.eq(Company::getBusinessLicenseNumber, company.getBusinessLicenseNumber());
}
if (ObjUtils.notNull(company.getCompanyTime())){
queryWrapper.eq(Company::getCompanyTime, company.getCompanyTime());
}
if (ObjUtils.notNull(company.getSphereOfBusiness())){
queryWrapper.eq(Company::getSphereOfBusiness, company.getSphereOfBusiness());
}
if (ObjUtils.notNull(company.getRegisteredAddress())){
queryWrapper.eq(Company::getRegisteredAddress, company.getRegisteredAddress());
}
if (ObjUtils.notNull(company.getCompanyPhone())){
queryWrapper.eq(Company::getCompanyPhone, company.getCompanyPhone());
}
if (ObjUtils.notNull(company.getCompanyMailbox())){
queryWrapper.eq(Company::getCompanyMailbox, company.getCompanyMailbox());
}
if (ObjUtils.notNull(company.getCompanyStatus())){
queryWrapper.eq(Company::getCompanyStatus, company.getCompanyStatus());
}
if (ObjUtils.notNull(company.getEnterTime())){
queryWrapper.eq(Company::getEnterTime, company.getEnterTime());
}
if (ObjUtils.notNull(company.getAuthenticationId())){
queryWrapper.eq(Company::getAuthenticationId, company.getAuthenticationId());
}
if (ObjUtils.notNull(company.getLiberalServiceId())){
queryWrapper.eq(Company::getLiberalServiceId, company.getLiberalServiceId());
}
if (ObjUtils.notNull(company.getAppreciationServiceId())){
queryWrapper.eq(Company::getAppreciationServiceId, company.getAppreciationServiceId());
}
if (ObjUtils.notNull(company.getUserId())){
queryWrapper.eq(Company::getUserId, company.getUserId());
}
return list(queryWrapper);
}
}

View File

@ -0,0 +1,45 @@
package com.muyu.authentication.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.muyu.authentication.mapper.LiberalMapper;
import com.muyu.authentication.service.LiberalService;
import com.muyu.common.core.utils.ObjUtils;
import com.muyu.liberal.domain.Liberal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* Service
*
* @author wan
* @date 2024-05-29
*/
@Slf4j
@Service
public class LiberalServiceImpl extends ServiceImpl<LiberalMapper, Liberal> implements LiberalService {
/**
*
*
* @param liberal
* @return
*/
@Override
public List<Liberal> list(Liberal liberal) {
LambdaQueryWrapper<Liberal> queryWrapper = new LambdaQueryWrapper<>();
if (ObjUtils.notNull(liberal.getActivateTheService())){
queryWrapper.eq(Liberal::getActivateTheService, liberal.getActivateTheService());
}
return list(queryWrapper);
}
}

View File

@ -0,0 +1,53 @@
package com.muyu.authentication.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.muyu.authentication.mapper.PayMapper;
import com.muyu.authentication.service.PayService;
import com.muyu.common.core.utils.ObjUtils;
import com.muyu.pay.domain.Pay;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* Service
*
* @author wan
* @date 2024-05-29
*/
@Slf4j
@Service
public class PayServiceImpl extends ServiceImpl<PayMapper, Pay> implements PayService {
/**
*
*
* @param pay
* @return
*/
@Override
public List<Pay> list(Pay pay) {
LambdaQueryWrapper<Pay> queryWrapper = new LambdaQueryWrapper<>();
if (ObjUtils.notNull(pay.getCompanyId())){
queryWrapper.eq(Pay::getCompanyId, pay.getCompanyId());
}
if (ObjUtils.notNull(pay.getPaymentId())){
queryWrapper.eq(Pay::getPaymentId, pay.getPaymentId());
}
if (ObjUtils.notNull(pay.getAppreciationDecimal())){
queryWrapper.eq(Pay::getAppreciationDecimal, pay.getAppreciationDecimal());
}
return list(queryWrapper);
}
}

View File

@ -0,0 +1,45 @@
package com.muyu.authentication.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.muyu.authentication.mapper.PaymentMapper;
import com.muyu.authentication.service.PaymentService;
import com.muyu.common.core.utils.ObjUtils;
import com.muyu.payment.domain.Payment;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* Service
*
* @author wan
* @date 2024-05-29
*/
@Slf4j
@Service
public class PaymentServiceImpl extends ServiceImpl<PaymentMapper, Payment> implements PaymentService {
/**
*
*
* @param payment
* @return
*/
@Override
public List<Payment> list(Payment payment) {
LambdaQueryWrapper<Payment> queryWrapper = new LambdaQueryWrapper<>();
if (ObjUtils.notNull(payment.getPayment())){
queryWrapper.eq(Payment::getPayment, payment.getPayment());
}
return list(queryWrapper);
}
}

View File

@ -0,0 +1,22 @@
<?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.muyu.authentication.mapper.AuthenticationMapper">
<resultMap type="com.muyu.authentication.domain.Authentication" id="AuthenticationResult">
<result property="id" column="id" />
<result property="auditor" column="auditor" />
<result property="stat" column="stat" />
<result property="auditReason" column="audit_reason" />
<result property="remark" column="remark" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectAuthenticationVo">
select id, auditor, stat, audit_reason, remark, create_by, create_time, update_by, update_time from authentication
</sql>
</mapper>

View File

@ -0,0 +1,33 @@
<?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.muyu.company.mapper.CompanyMapper">
<resultMap type="com.muyu.company.domain.Company" id="CompanyResult">
<result property="id" column="id" />
<result property="companyName" column="company_name" />
<result property="legalRepresentative" column="legal_representative" />
<result property="businessLicenseNumber" column="business_license_number" />
<result property="companyTime" column="company_time" />
<result property="sphereOfBusiness" column="sphere_of_business" />
<result property="registeredAddress" column="registered_address" />
<result property="companyPhone" column="company_phone" />
<result property="companyMailbox" column="company_mailbox" />
<result property="companyStatus" column="company_status" />
<result property="enterTime" column="enter_time" />
<result property="authenticationId" column="authentication_id" />
<result property="liberalServiceId" column="liberal_service_id" />
<result property="appreciationServiceId" column="appreciation_service_id" />
<result property="userId" column="user_id" />
<result property="remark" column="remark" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectCompanyVo">
select id, company_name, legal_representative, business_license_number, company_time, sphere_of_business, registered_address, company_phone, company_mailbox, company_status, enter_time, authentication_id, liberal_service_id, appreciation_service_id, user_id, remark, create_by, create_time, update_by, update_time from company
</sql>
</mapper>

View File

@ -0,0 +1,20 @@
<?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.muyu.liberal.mapper.LiberalMapper">
<resultMap type="com.muyu.liberal.domain.Liberal" id="LiberalResult">
<result property="id" column="id" />
<result property="activateTheService" column="activate_the_service" />
<result property="remark" column="remark" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectLiberalVo">
select id, activate_the_service, remark, create_by, create_time, update_by, update_time from liberal
</sql>
</mapper>

View File

@ -0,0 +1,22 @@
<?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.muyu.pay.mapper.PayMapper">
<resultMap type="com.muyu.pay.domain.Pay" id="PayResult">
<result property="id" column="id" />
<result property="companyId" column="company_id" />
<result property="paymentId" column="payment_id" />
<result property="appreciationDecimal" column="appreciation_decimal" />
<result property="remark" column="remark" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectPayVo">
select id, company_id, payment_id, appreciation_decimal, remark, create_by, create_time, update_by, update_time from pay
</sql>
</mapper>

View File

@ -0,0 +1,20 @@
<?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.muyu.payment.mapper.PaymentMapper">
<resultMap type="com.muyu.payment.domain.Payment" id="PaymentResult">
<result property="id" column="id" />
<result property="payment" column="payment" />
<result property="remark" column="remark" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectPaymentVo">
select id, payment, remark, create_by, create_time, update_by, update_time from payment
</sql>
</mapper>