fix(重构后台代码)
commit
e045d01c50
|
@ -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 如果对象具有受支持的类型并且为空或null,则为true,否则为false
|
||||
*/
|
||||
public static boolean notNull(Object o){
|
||||
return ObjectUtils.isNotEmpty(o);
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断long类型不为0
|
||||
* @param val 值
|
||||
* @return 返回值不为0
|
||||
*/
|
||||
public static boolean notNull(Long val){
|
||||
return ObjectUtils.isNotEmpty(val) && val != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断Integer类型不为0
|
||||
* @param val 值
|
||||
* @return 返回值不为0
|
||||
*/
|
||||
public static boolean notNull(Integer val){
|
||||
return ObjectUtils.isNotEmpty(val) && val != 0;
|
||||
}
|
||||
/**
|
||||
* 判断BigDecimal类型不为0
|
||||
* @param val 值
|
||||
* @return 返回值不为0
|
||||
*/
|
||||
public static boolean notNull(BigDecimal val){
|
||||
return ObjectUtils.isNotEmpty(val) && val.doubleValue() == 0.00;
|
||||
}
|
||||
/**
|
||||
* 判断BigDecimal类型不为0
|
||||
* @param val 值
|
||||
* @return 返回值不为0
|
||||
*/
|
||||
public static boolean notChildNull(Object[] val){
|
||||
for (Object o : val) {
|
||||
if (!notNull(o)){
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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;
|
||||
}
|
|
@ -1,22 +1,27 @@
|
|||
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.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.AllArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
import java.util.Date;
|
||||
import io.swagger.annotations.*;
|
||||
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
|
||||
* @date 2024-05-26
|
||||
* @date 2024-05-29
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
|
@ -24,65 +29,153 @@ import java.util.Date;
|
|||
@AllArgsConstructor
|
||||
@TableName("company")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class Company extends BaseEntity
|
||||
{
|
||||
@ApiModel(value = "Company", description = "企业")
|
||||
public class Company 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 companyName;
|
||||
/**
|
||||
* 法定代理人
|
||||
*/
|
||||
|
||||
/** 法定代理人 */
|
||||
@Excel(name = "法定代理人")
|
||||
@ApiModelProperty(name = "法定代理人", value = "法定代理人")
|
||||
private String legalRepresentative;
|
||||
/**
|
||||
* 企业注册时获得的合法经营凭证号码
|
||||
*/
|
||||
|
||||
/** 企业注册时获得的合法经营凭证号码 */
|
||||
@Excel(name = "企业注册时获得的合法经营凭证号码")
|
||||
@ApiModelProperty(name = "企业注册时获得的合法经营凭证号码", value = "企业注册时获得的合法经营凭证号码")
|
||||
private String businessLicenseNumber;
|
||||
/**
|
||||
* 企业成立的日期
|
||||
*/
|
||||
|
||||
/** 企业成立的日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "企业成立的日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@ApiModelProperty(name = "企业成立的日期", value = "企业成立的日期")
|
||||
private Date companyTime;
|
||||
/**
|
||||
* 经营范围
|
||||
*/
|
||||
|
||||
/** 经营范围 */
|
||||
@Excel(name = "经营范围")
|
||||
@ApiModelProperty(name = "经营范围", value = "经营范围")
|
||||
private String sphereOfBusiness;
|
||||
/**
|
||||
* 注册地址
|
||||
*/
|
||||
|
||||
/** 注册地址 */
|
||||
@Excel(name = "注册地址")
|
||||
@ApiModelProperty(name = "注册地址", value = "注册地址")
|
||||
private String registeredAddress;
|
||||
/**
|
||||
* 负责人电话
|
||||
*/
|
||||
|
||||
/** 负责人电话 */
|
||||
@Excel(name = "负责人电话")
|
||||
@ApiModelProperty(name = "负责人电话", value = "负责人电话")
|
||||
private String companyPhone;
|
||||
/**
|
||||
* 负责人邮箱
|
||||
*/
|
||||
|
||||
/** 负责人邮箱 */
|
||||
@Excel(name = "负责人邮箱")
|
||||
@ApiModelProperty(name = "负责人邮箱", value = "负责人邮箱")
|
||||
private String companyMailbox;
|
||||
/**
|
||||
* 企业当前的状态,如正常状态,暂停,注销
|
||||
*/
|
||||
|
||||
/** 企业当前的状态,如正常状态,暂停,注销 */
|
||||
@Excel(name = "企业当前的状态,如正常状态,暂停,注销")
|
||||
@ApiModelProperty(name = "企业当前的状态,如正常状态,暂停,注销", value = "企业当前的状态,如正常状态,暂停,注销")
|
||||
private String companyStatus;
|
||||
/**
|
||||
* 企业入驻时间
|
||||
*/
|
||||
|
||||
/** 企业入驻时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "企业入驻时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@ApiModelProperty(name = "企业入驻时间", value = "企业入驻时间")
|
||||
private Date enterTime;
|
||||
/**
|
||||
* 企业认证主键
|
||||
*/
|
||||
|
||||
/** 企业认证主键 */
|
||||
@Excel(name = "企业认证主键")
|
||||
@ApiModelProperty(name = "企业认证主键", value = "企业认证主键")
|
||||
private Long authenticationId;
|
||||
/**
|
||||
* 开通服务主键
|
||||
*/
|
||||
|
||||
/** 开通服务主键 */
|
||||
@Excel(name = "开通服务主键")
|
||||
@ApiModelProperty(name = "开通服务主键", value = "开通服务主键")
|
||||
private Long liberalServiceId;
|
||||
/**
|
||||
* 增值服务主键
|
||||
*/
|
||||
|
||||
/** 增值服务主键 */
|
||||
@Excel(name = "增值服务主键")
|
||||
@ApiModelProperty(name = "增值服务主键", value = "增值服务主键")
|
||||
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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
|
@ -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;
|
||||
}
|
|
@ -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;
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -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;
|
||||
|
||||
}
|
|
@ -91,6 +91,11 @@
|
|||
<version>3.6.3</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>muyu-common-core</artifactId>
|
||||
<version>3.6.3</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
</dependencies>
|
||||
|
|
|
@ -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.EnableMyFeignClients;
|
|
@ -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));
|
||||
}
|
||||
}
|
|
@ -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));
|
||||
}
|
||||
}
|
|
@ -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));
|
||||
}
|
||||
}
|
|
@ -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));
|
||||
}
|
||||
}
|
|
@ -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));
|
||||
}
|
||||
}
|
|
@ -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> {
|
||||
|
||||
}
|
|
@ -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> {
|
||||
|
||||
}
|
|
@ -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> {
|
||||
|
||||
}
|
|
@ -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> {
|
||||
|
||||
}
|
|
@ -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> {
|
||||
|
||||
}
|
|
@ -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);
|
||||
|
||||
}
|
|
@ -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);
|
||||
|
||||
}
|
|
@ -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);
|
||||
|
||||
}
|
|
@ -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);
|
||||
|
||||
}
|
|
@ -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);
|
||||
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
Loading…
Reference in New Issue