更新数据库表字段
parent
2799bb7fb2
commit
11f819e4ba
|
@ -1,44 +0,0 @@
|
||||||
package com.muyu.market.domian;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
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;
|
|
||||||
/**
|
|
||||||
* @Author:ChenYan
|
|
||||||
* @Description 接口调用
|
|
||||||
* @Date:2024/8/20 11:17
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
@SuperBuilder
|
|
||||||
@NoArgsConstructor
|
|
||||||
@AllArgsConstructor
|
|
||||||
@EqualsAndHashCode(callSuper = true)
|
|
||||||
@TableName(value = "call", autoResultMap = true)
|
|
||||||
public class Call extends BaseEntity {
|
|
||||||
|
|
||||||
@TableId(value = "call_id" ,type = IdType.AUTO)
|
|
||||||
private Long callId;
|
|
||||||
/** 接口名称 */
|
|
||||||
private String callName ;
|
|
||||||
/** 接口使用量 */
|
|
||||||
private Integer callUsage ;
|
|
||||||
/** 接口失败次数 */
|
|
||||||
private Integer callFailNum ;
|
|
||||||
/** 接口成功次数 */
|
|
||||||
private Integer callSucceedNum ;
|
|
||||||
/** 接口平均响应时间(毫秒) */
|
|
||||||
private Double callMeanTime ;
|
|
||||||
/** 项目数量 */
|
|
||||||
private Integer callItemNum ;
|
|
||||||
/** 所属项目 */
|
|
||||||
private String callProject ;
|
|
||||||
}
|
|
|
@ -1,44 +0,0 @@
|
||||||
package com.muyu.market.domian;
|
|
||||||
|
|
||||||
|
|
||||||
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;
|
|
||||||
import org.springframework.beans.BeanUtils;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
@SuperBuilder
|
|
||||||
@NoArgsConstructor
|
|
||||||
@AllArgsConstructor
|
|
||||||
/**
|
|
||||||
* @Author:ChenYan
|
|
||||||
* @Description 接口配置
|
|
||||||
* @Date:2024/8/20 11:17
|
|
||||||
*/
|
|
||||||
public class Configuration extends BaseEntity {
|
|
||||||
|
|
||||||
@TableId(value = "config_id" ,type = IdType.AUTO)
|
|
||||||
private Long configId ;
|
|
||||||
/** 接口名称 */
|
|
||||||
private String configName ;
|
|
||||||
/** 接口描述 */
|
|
||||||
private String configDescribe ;
|
|
||||||
/** 接口规则 */
|
|
||||||
private Long configRuleId ;
|
|
||||||
/** 主接口 */
|
|
||||||
private String configMain ;
|
|
||||||
/** 从接口 */
|
|
||||||
private String configSlave ;
|
|
||||||
/** 辅接口 */
|
|
||||||
private String configAuxiliary ;
|
|
||||||
/** 应急联系组 */
|
|
||||||
private String configTeam ;
|
|
||||||
/** 状态 */
|
|
||||||
private Integer state ;
|
|
||||||
}
|
|
|
@ -0,0 +1,44 @@
|
||||||
|
package com.muyu.market.domian;
|
||||||
|
|
||||||
|
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;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@SuperBuilder
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@TableName(value = "rule", autoResultMap = true)
|
||||||
|
public class Connertor extends BaseEntity {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
|
@TableId(value = "connector_id" ,type = IdType.AUTO)
|
||||||
|
private Long connectorId;
|
||||||
|
/**
|
||||||
|
* 接口名称
|
||||||
|
*/
|
||||||
|
private String connectorName;
|
||||||
|
/**
|
||||||
|
* 接口描述
|
||||||
|
*/
|
||||||
|
private String connectorDescription;
|
||||||
|
/**
|
||||||
|
* 接口使用量
|
||||||
|
*/
|
||||||
|
private Integer connectorNum;
|
||||||
|
/**
|
||||||
|
* 状态
|
||||||
|
*/
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -28,30 +28,47 @@ import java.util.Date;
|
||||||
@TableName(value = "defined", autoResultMap = true)
|
@TableName(value = "defined", autoResultMap = true)
|
||||||
public class Defined extends BaseEntity {
|
public class Defined extends BaseEntity {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
@TableId(value = "defined_id" ,type = IdType.AUTO)
|
@TableId(value = "defined_id" ,type = IdType.AUTO)
|
||||||
private Long definedId ;
|
private Long definedId ;
|
||||||
/** 定义名称 */
|
/**
|
||||||
|
* 定义名称
|
||||||
|
*/
|
||||||
private String definedName ;
|
private String definedName ;
|
||||||
/** 描述 */
|
/**
|
||||||
|
* 描述
|
||||||
|
*/
|
||||||
private String definedDescription ;
|
private String definedDescription ;
|
||||||
/** 接口分配 */
|
/**
|
||||||
|
* 接口分配
|
||||||
|
*/
|
||||||
private String definedAllot ;
|
private String definedAllot ;
|
||||||
/** 有效期(天) */
|
/**
|
||||||
private Date definedDateValidity ;
|
* 有效期(天)
|
||||||
/** 接口类型 */
|
*/
|
||||||
private Long definedTypeId ;
|
private Integer definedDateValidity ;
|
||||||
/** 接口使用量 */
|
/**
|
||||||
|
* 接口类型
|
||||||
|
*/
|
||||||
|
private Integer typeId ;
|
||||||
|
/**
|
||||||
|
* 接口使用量
|
||||||
|
*/
|
||||||
private Integer interfaceNum ;
|
private Integer interfaceNum ;
|
||||||
/** 接口来源 */
|
/**
|
||||||
|
* 接口来源
|
||||||
|
*/
|
||||||
private String definedSource ;
|
private String definedSource ;
|
||||||
/** 使用模板 */
|
/**
|
||||||
private String definedStencil ;
|
* 开发人员
|
||||||
/** 开发人员 */
|
*/
|
||||||
private String definedManpower ;
|
private String definedPeople;
|
||||||
/** 状态 */
|
/**
|
||||||
private String state ;
|
* 状态
|
||||||
|
*/
|
||||||
|
private Integer status ;
|
||||||
|
|
||||||
|
|
||||||
public Defined getDefinedName(Defined defined) {
|
|
||||||
return defined;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,29 +0,0 @@
|
||||||
package com.muyu.market.domian;
|
|
||||||
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import lombok.AllArgsConstructor;
|
|
||||||
import lombok.Data;
|
|
||||||
import lombok.EqualsAndHashCode;
|
|
||||||
import lombok.NoArgsConstructor;
|
|
||||||
import lombok.experimental.SuperBuilder;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
@SuperBuilder
|
|
||||||
@NoArgsConstructor
|
|
||||||
@AllArgsConstructor
|
|
||||||
@EqualsAndHashCode(callSuper = false)
|
|
||||||
@TableName(value = "interface", autoResultMap = true)
|
|
||||||
public class Interface {
|
|
||||||
|
|
||||||
@TableId(value = "interface_id" ,type = IdType.AUTO)
|
|
||||||
private Integer interfaceId ;
|
|
||||||
/** 接口编码 */
|
|
||||||
private String interfaceNumber ;
|
|
||||||
/** 调用次数 */
|
|
||||||
private Integer interfaceNum ;
|
|
||||||
/** 启用状态 */
|
|
||||||
private Integer interfaceStatus ;
|
|
||||||
}
|
|
|
@ -1,29 +0,0 @@
|
||||||
package com.muyu.market.domian;
|
|
||||||
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import lombok.AllArgsConstructor;
|
|
||||||
import lombok.Data;
|
|
||||||
import lombok.EqualsAndHashCode;
|
|
||||||
import lombok.NoArgsConstructor;
|
|
||||||
import lombok.experimental.SuperBuilder;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
@SuperBuilder
|
|
||||||
@NoArgsConstructor
|
|
||||||
@AllArgsConstructor
|
|
||||||
@EqualsAndHashCode(callSuper = false)
|
|
||||||
@TableName(value = "interfaceType", autoResultMap = true)
|
|
||||||
public class InterfaceType {
|
|
||||||
|
|
||||||
@TableId(value = "type_id" ,type = IdType.AUTO)
|
|
||||||
private Integer typeId ;
|
|
||||||
/** 类型编码 */
|
|
||||||
private String typeNumber ;
|
|
||||||
/** 类型名称 */
|
|
||||||
private String typeDescribe ;
|
|
||||||
/** 启用状态 */
|
|
||||||
private Integer typeStatus ;
|
|
||||||
}
|
|
|
@ -1,37 +0,0 @@
|
||||||
package com.muyu.market.domian;
|
|
||||||
|
|
||||||
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;
|
|
||||||
/**
|
|
||||||
* @Author:ChenYan
|
|
||||||
* @Description 项目统计
|
|
||||||
* @Date:2024/8/20 11:17
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
@SuperBuilder
|
|
||||||
@NoArgsConstructor
|
|
||||||
@AllArgsConstructor
|
|
||||||
@EqualsAndHashCode(callSuper = true)
|
|
||||||
@TableName(value = "item", autoResultMap = true)
|
|
||||||
public class Item extends BaseEntity {
|
|
||||||
|
|
||||||
@TableId(value = "item_id" ,type = IdType.AUTO)
|
|
||||||
private Long itemId ;
|
|
||||||
/** 项目名称 */
|
|
||||||
private String itemName ;
|
|
||||||
/** 接口使用配置数 */
|
|
||||||
private Integer itemAllocationNum ;
|
|
||||||
/** 接口调用失败(主) */
|
|
||||||
private Integer itemFailedMain ;
|
|
||||||
/** 接口调用成功(主) */
|
|
||||||
private Integer itemSuccessMain ;
|
|
||||||
/** 接口调用成功(总) */
|
|
||||||
private Integer itemSuccess ;
|
|
||||||
}
|
|
|
@ -1,54 +0,0 @@
|
||||||
package com.muyu.market.domian;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
||||||
import lombok.AllArgsConstructor;
|
|
||||||
import lombok.Data;
|
|
||||||
import lombok.EqualsAndHashCode;
|
|
||||||
import lombok.NoArgsConstructor;
|
|
||||||
import lombok.experimental.SuperBuilder;
|
|
||||||
import org.springframework.format.annotation.DateTimeFormat;
|
|
||||||
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
@SuperBuilder
|
|
||||||
@NoArgsConstructor
|
|
||||||
@AllArgsConstructor
|
|
||||||
@EqualsAndHashCode(callSuper = false)
|
|
||||||
@TableName(value = "log", autoResultMap = true)
|
|
||||||
public class Log {
|
|
||||||
|
|
||||||
@TableId(value = "log_id" ,type = IdType.AUTO)
|
|
||||||
private Long logId;
|
|
||||||
/** 登录人ID */
|
|
||||||
private Integer userId ;
|
|
||||||
/** 操作人ID */
|
|
||||||
private Integer staffId ;
|
|
||||||
/** 登录时间 */
|
|
||||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
||||||
private Date logTime ;
|
|
||||||
/** 登录IP */
|
|
||||||
private String logIp ;
|
|
||||||
/** 登录城市 */
|
|
||||||
private String logAddress ;
|
|
||||||
/** 状态 */
|
|
||||||
private Integer logStatus ;
|
|
||||||
/** 租户号 */
|
|
||||||
private String tenantId ;
|
|
||||||
/** 乐观锁 */
|
|
||||||
private Integer revision ;
|
|
||||||
/** 创建人 */
|
|
||||||
private String createdBy ;
|
|
||||||
/** 创建时间 */
|
|
||||||
private Date createdTime ;
|
|
||||||
/** 更新人 */
|
|
||||||
private String updatedBy ;
|
|
||||||
/** 更新时间 */
|
|
||||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
||||||
private Date updatedTime ;
|
|
||||||
}
|
|
|
@ -0,0 +1,43 @@
|
||||||
|
package com.muyu.market.domian;
|
||||||
|
|
||||||
|
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;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@SuperBuilder
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@TableName(value = "rule", autoResultMap = true)
|
||||||
|
public class Logs extends BaseEntity {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
|
@TableId(value = "logs_id" ,type = IdType.AUTO)
|
||||||
|
private Long logsId;
|
||||||
|
/**
|
||||||
|
* 用户名id
|
||||||
|
*/
|
||||||
|
private Integer userId;
|
||||||
|
/**
|
||||||
|
* 类型id
|
||||||
|
*/
|
||||||
|
private Integer typeId;
|
||||||
|
/**
|
||||||
|
* 操作时间
|
||||||
|
*/
|
||||||
|
private Date logsTime;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -1,42 +0,0 @@
|
||||||
package com.muyu.market.domian;
|
|
||||||
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
||||||
import lombok.AllArgsConstructor;
|
|
||||||
import lombok.Data;
|
|
||||||
import lombok.EqualsAndHashCode;
|
|
||||||
import lombok.NoArgsConstructor;
|
|
||||||
import lombok.experimental.SuperBuilder;
|
|
||||||
import org.springframework.format.annotation.DateTimeFormat;
|
|
||||||
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
@SuperBuilder
|
|
||||||
@NoArgsConstructor
|
|
||||||
@AllArgsConstructor
|
|
||||||
@EqualsAndHashCode(callSuper = false)
|
|
||||||
@TableName(value = "operate", autoResultMap = true)
|
|
||||||
public class Operate {
|
|
||||||
|
|
||||||
@TableId(value = "operate_id" ,type = IdType.AUTO)
|
|
||||||
private Long operateId ;
|
|
||||||
/** 登录人ID */
|
|
||||||
private Integer userId ;
|
|
||||||
/** 操作人ID */
|
|
||||||
private Integer staffId ;
|
|
||||||
/** 操作日期 */
|
|
||||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
||||||
private Date operateTime ;
|
|
||||||
/** 操作内容 */
|
|
||||||
private String operateContent ;
|
|
||||||
/** 状态 */
|
|
||||||
private Integer operateStatus ;
|
|
||||||
/** 租户号 */
|
|
||||||
private String tenantId ;
|
|
||||||
|
|
||||||
}
|
|
|
@ -0,0 +1,45 @@
|
||||||
|
package com.muyu.market.domian;
|
||||||
|
|
||||||
|
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;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@SuperBuilder
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@TableName(value = "pay", autoResultMap = true)
|
||||||
|
public class Pay extends BaseEntity {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
|
@TableId(value = "pay_id" ,type = IdType.AUTO)
|
||||||
|
private Long payId;
|
||||||
|
/**
|
||||||
|
* 支付类型
|
||||||
|
*/
|
||||||
|
private Integer payType;
|
||||||
|
/**
|
||||||
|
* 支付状态
|
||||||
|
*/
|
||||||
|
private Integer payStatus;
|
||||||
|
/**
|
||||||
|
* 登录人员
|
||||||
|
*/
|
||||||
|
private Integer userId;
|
||||||
|
/**
|
||||||
|
* 支付时间
|
||||||
|
*/
|
||||||
|
private Date payTime;
|
||||||
|
|
||||||
|
}
|
|
@ -30,9 +30,9 @@ public class Rule extends BaseEntity {
|
||||||
/** 规则代码 */
|
/** 规则代码 */
|
||||||
private String ruleCode ;
|
private String ruleCode ;
|
||||||
/** 规则描述 */
|
/** 规则描述 */
|
||||||
private String ruleDescribe ;
|
private String ruleDescription ;
|
||||||
/** 规则状态 */
|
/** 规则状态 */
|
||||||
private Integer state ;
|
private Integer status ;
|
||||||
/** 使用次数 */
|
/** 使用次数 */
|
||||||
private Integer ruleNum ;
|
private Integer ruleNum ;
|
||||||
|
|
||||||
|
|
|
@ -1,35 +0,0 @@
|
||||||
package com.muyu.market.domian;
|
|
||||||
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import lombok.AllArgsConstructor;
|
|
||||||
import lombok.Data;
|
|
||||||
import lombok.EqualsAndHashCode;
|
|
||||||
import lombok.NoArgsConstructor;
|
|
||||||
import lombok.experimental.SuperBuilder;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
@SuperBuilder
|
|
||||||
@NoArgsConstructor
|
|
||||||
@AllArgsConstructor
|
|
||||||
@EqualsAndHashCode(callSuper = false)
|
|
||||||
@TableName(value = "staff", autoResultMap = true)
|
|
||||||
public class Staff {
|
|
||||||
|
|
||||||
@TableId(value = "staff_id" ,type = IdType.AUTO)
|
|
||||||
private String staffId ;
|
|
||||||
/** 员工姓名 */
|
|
||||||
private String staffName ;
|
|
||||||
/** 员工电话 */
|
|
||||||
private String staffTel ;
|
|
||||||
/** 员工密码 */
|
|
||||||
private String staffPwd ;
|
|
||||||
/** 所属部门 */
|
|
||||||
private String deptId ;
|
|
||||||
/** 状态 */
|
|
||||||
private String staffStatus ;
|
|
||||||
/** 租户号 */
|
|
||||||
private String tenantId ;
|
|
||||||
}
|
|
|
@ -23,16 +23,32 @@ import lombok.experimental.SuperBuilder;
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
@TableName(value = "type", autoResultMap = true)
|
@TableName(value = "type", autoResultMap = true)
|
||||||
public class Type extends BaseEntity {
|
public class Type extends BaseEntity {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
@TableId(value = "type_id" ,type = IdType.AUTO)
|
@TableId(value = "type_id" ,type = IdType.AUTO)
|
||||||
private Long typeId ;
|
private Long typeId;
|
||||||
/** 类型名称 */
|
/**
|
||||||
private String typeName ;
|
* 类型名称
|
||||||
/** 接口列 */
|
*/
|
||||||
private String typeBar ;
|
private String typeName;
|
||||||
/** 类型描述 */
|
/**
|
||||||
private String typeSpecification ;
|
* 描述
|
||||||
/** 接口数量 */
|
*/
|
||||||
private Integer typeNum ;
|
private String typeDescription;
|
||||||
/** 调用次数 */
|
/**
|
||||||
private Integer typeNumber ;
|
* 使用数量
|
||||||
|
*/
|
||||||
|
private Integer typeNum;
|
||||||
|
/**
|
||||||
|
* 调用次数
|
||||||
|
*/
|
||||||
|
private Integer typeNumber;
|
||||||
|
|
||||||
|
// private String createBy;
|
||||||
|
// private String createTime;
|
||||||
|
// private String updateBy;
|
||||||
|
// private String updateTime;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,44 +0,0 @@
|
||||||
package com.muyu.market.domian;
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
||||||
import lombok.AllArgsConstructor;
|
|
||||||
import lombok.Data;
|
|
||||||
import lombok.EqualsAndHashCode;
|
|
||||||
import lombok.NoArgsConstructor;
|
|
||||||
import lombok.experimental.SuperBuilder;
|
|
||||||
import org.springframework.format.annotation.DateTimeFormat;
|
|
||||||
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
@SuperBuilder
|
|
||||||
@NoArgsConstructor
|
|
||||||
@AllArgsConstructor
|
|
||||||
@EqualsAndHashCode(callSuper = false)
|
|
||||||
@TableName(value = "user", autoResultMap = true)
|
|
||||||
public class User {
|
|
||||||
|
|
||||||
@TableId(value = "user_id" ,type = IdType.AUTO)
|
|
||||||
private Long userId ;
|
|
||||||
/** 用户编码 */
|
|
||||||
private String userNumber ;
|
|
||||||
/** 用户名称 */
|
|
||||||
private String userName ;
|
|
||||||
/** 会员类型 */
|
|
||||||
private Integer vipId ;
|
|
||||||
/** 用户电话 */
|
|
||||||
private String userTel ;
|
|
||||||
/** 用户地址 */
|
|
||||||
private String userAddress ;
|
|
||||||
/** 用户密码 */
|
|
||||||
private String userPwd ;
|
|
||||||
/** 注册时间 */
|
|
||||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
||||||
private Date userTime ;
|
|
||||||
/** 是否在线 */
|
|
||||||
private Integer userStatus ;
|
|
||||||
}
|
|
|
@ -1,30 +0,0 @@
|
||||||
package com.muyu.market.domian;
|
|
||||||
|
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
|
||||||
import lombok.AllArgsConstructor;
|
|
||||||
import lombok.Data;
|
|
||||||
import lombok.EqualsAndHashCode;
|
|
||||||
import lombok.NoArgsConstructor;
|
|
||||||
import lombok.experimental.SuperBuilder;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
@SuperBuilder
|
|
||||||
@NoArgsConstructor
|
|
||||||
@AllArgsConstructor
|
|
||||||
@EqualsAndHashCode(callSuper = false)
|
|
||||||
@TableName(value = "vip", autoResultMap = true)
|
|
||||||
public class Vip {
|
|
||||||
|
|
||||||
@TableId(value = "vip_id" ,type = IdType.AUTO)
|
|
||||||
private Integer vipId ;
|
|
||||||
/** 会员编码 */
|
|
||||||
private String vipNumber ;
|
|
||||||
/** 会员名称 */
|
|
||||||
private String vipName ;
|
|
||||||
/** 启用状态 */
|
|
||||||
private Integer vipStatus ;
|
|
||||||
|
|
||||||
}
|
|
|
@ -28,49 +28,50 @@ import java.util.List;
|
||||||
@Tag(name = "定义接口控制层",description = "进行客户管理,查看等相关操作")
|
@Tag(name = "定义接口控制层",description = "进行客户管理,查看等相关操作")
|
||||||
public class DefinedController {
|
public class DefinedController {
|
||||||
|
|
||||||
/**
|
|
||||||
* 接口业务层
|
|
||||||
*/
|
|
||||||
@Autowired
|
|
||||||
private DefinedService definedService;
|
|
||||||
|
|
||||||
/**
|
// /**
|
||||||
* 接口列表
|
// * 接口业务层
|
||||||
*/
|
// */
|
||||||
@RequestMapping(path = "/list",method = RequestMethod.POST)
|
// @Autowired
|
||||||
@Operation(summary = "查询",description = "根据接口的名称、编码,是否开启等可以进行筛选")
|
// private DefinedService definedService;
|
||||||
public Result<List<Defined>> selectList(
|
//
|
||||||
@Validated @RequestBody Defined defined) {
|
// /**
|
||||||
return Result.success(
|
// * 接口列表
|
||||||
definedService.selectList(defined)
|
// */
|
||||||
);
|
// @RequestMapping(path = "/list",method = RequestMethod.POST)
|
||||||
}
|
// @Operation(summary = "查询",description = "根据接口的名称、编码,是否开启等可以进行筛选")
|
||||||
|
// public Result<List<Defined>> selectList(
|
||||||
|
// @Validated @RequestBody Defined defined) {
|
||||||
/**
|
// return Result.success(
|
||||||
* 接口添加
|
// definedService.selectList(defined)
|
||||||
*/
|
// );
|
||||||
@PostMapping
|
// }
|
||||||
@Operation(summary = "添加", description = "根据接口实体类添加,添加成功之后才可以使用支付类产品")
|
//
|
||||||
public Result<String> save(@Validated @RequestBody Defined defined) {
|
//
|
||||||
definedService.save(defined);
|
// /**
|
||||||
return Result.success();
|
// * 接口添加
|
||||||
}
|
// */
|
||||||
|
// @PostMapping
|
||||||
|
// @Operation(summary = "添加", description = "根据接口实体类添加,添加成功之后才可以使用支付类产品")
|
||||||
/**
|
// public Result<String> save(@Validated @RequestBody Defined defined) {
|
||||||
* 接口修改
|
// definedService.save(defined);
|
||||||
*/
|
// return Result.success();
|
||||||
@PutMapping("/{definedId}")
|
// }
|
||||||
@Operation(summary = "修改", description = "通过ID修改信息")
|
//
|
||||||
public Result<String> updateById(
|
//
|
||||||
@Validated @RequestBody Defined defined,
|
// /**
|
||||||
@Schema(title = "ID", defaultValue = "1", type = "Long", description = "修改信息所需的唯一条件")
|
// * 接口修改
|
||||||
@PathVariable("definedId") Long definedId) {
|
// */
|
||||||
|
// @PutMapping("/{definedId}")
|
||||||
definedService.updateById(defined);
|
// @Operation(summary = "修改", description = "通过ID修改信息")
|
||||||
return Result.success();
|
// public Result<String> updateById(
|
||||||
}
|
// @Validated @RequestBody Defined defined,
|
||||||
|
// @Schema(title = "ID", defaultValue = "1", type = "Long", description = "修改信息所需的唯一条件")
|
||||||
|
// @PathVariable("definedId") Long definedId) {
|
||||||
|
//
|
||||||
|
// definedService.updateById(defined);
|
||||||
|
// return Result.success();
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,6 +13,5 @@ import java.util.List;
|
||||||
* @Date:2024/8/20 14:48
|
* @Date:2024/8/20 14:48
|
||||||
*/
|
*/
|
||||||
public interface DefinedService extends IService<Defined> {
|
public interface DefinedService extends IService<Defined> {
|
||||||
List<Defined> selectList(Defined defined);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,20 +30,5 @@ public class DefinedServiceImpl
|
||||||
private DefinedMapper definedMapper;
|
private DefinedMapper definedMapper;
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public List<Defined> selectList(Defined defined) {
|
|
||||||
|
|
||||||
LambdaQueryWrapper<Defined> queryWrapper = new LambdaQueryWrapper<>();
|
|
||||||
queryWrapper.like(
|
|
||||||
StringUtils.isNotEmpty(defined.getDefinedName()),
|
|
||||||
defined::getDefinedName, defined.getDefinedName()
|
|
||||||
|
|
||||||
);
|
|
||||||
|
|
||||||
return this.list(queryWrapper)
|
|
||||||
.stream()
|
|
||||||
.toList();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue