浏览代码

添加续费相关实体类信息

wangyu 6 年之前
父节点
当前提交
b2b27e6b8b

+ 160 - 0
diagbotman-service/src/main/java/com/diagbot/entity/UserRenewals.java

@@ -0,0 +1,160 @@
+package com.diagbot.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * <p>
+ * 用户续费申请表
+ * </p>
+ *
+ * @author gaodm
+ * @since 2018-10-12
+ */
+@TableName("diag_user_renewals")
+public class UserRenewals implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 续费id
+     */
+    @TableId(value = "id", type = IdType.AUTO)
+    private Long id;
+
+    /**
+     * 是否删除 N:未删除,Y:删除
+     */
+    private String isDeleted;
+
+    /**
+     * 记录创建时间,默认(1970-01-01 12:00:00)
+     */
+    private Date gmtCreate;
+
+    /**
+     * 记录修改时间,如果时间是1970年则表示纪录未修改
+     */
+    private Date gmtModified;
+
+    /**
+     * 创建人,0表示无创建人值
+     */
+    private String creator;
+
+    /**
+     * 修改人,如果为0则表示纪录未修改
+     */
+    private String modifier;
+
+    /**
+     * 产品id
+     */
+    private Long productId;
+
+    /**
+     * 用户id
+     */
+    private Long userId;
+
+    /**
+     * 续费状态(1.已续费0.未续费)
+     */
+    private Integer renewalsStutas;
+
+    /**
+     * 申请时间
+     */
+    private Date applyTime;
+
+    public Long getId() {
+        return id;
+    }
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+    public String getIsDeleted() {
+        return isDeleted;
+    }
+
+    public void setIsDeleted(String isDeleted) {
+        this.isDeleted = isDeleted;
+    }
+    public Date getGmtCreate() {
+        return gmtCreate;
+    }
+
+    public void setGmtCreate(Date gmtCreate) {
+        this.gmtCreate = gmtCreate;
+    }
+    public Date getGmtModified() {
+        return gmtModified;
+    }
+
+    public void setGmtModified(Date gmtModified) {
+        this.gmtModified = gmtModified;
+    }
+    public String getCreator() {
+        return creator;
+    }
+
+    public void setCreator(String creator) {
+        this.creator = creator;
+    }
+    public String getModifier() {
+        return modifier;
+    }
+
+    public void setModifier(String modifier) {
+        this.modifier = modifier;
+    }
+    public Long getProductId() {
+        return productId;
+    }
+
+    public void setProductId(Long productId) {
+        this.productId = productId;
+    }
+    public Long getUserId() {
+        return userId;
+    }
+
+    public void setUserId(Long userId) {
+        this.userId = userId;
+    }
+    public Integer getRenewalsStutas() {
+        return renewalsStutas;
+    }
+
+    public void setRenewalsStutas(Integer renewalsStutas) {
+        this.renewalsStutas = renewalsStutas;
+    }
+    public Date getApplyTime() {
+        return applyTime;
+    }
+
+    public void setApplyTime(Date applyTime) {
+        this.applyTime = applyTime;
+    }
+
+    @Override
+    public String toString() {
+        return "UserRenewals{" +
+        "id=" + id +
+        ", isDeleted=" + isDeleted +
+        ", gmtCreate=" + gmtCreate +
+        ", gmtModified=" + gmtModified +
+        ", creator=" + creator +
+        ", modifier=" + modifier +
+        ", productId=" + productId +
+        ", userId=" + userId +
+        ", renewalsStutas=" + renewalsStutas +
+        ", applyTime=" + applyTime +
+        "}";
+    }
+}

+ 16 - 0
diagbotman-service/src/main/java/com/diagbot/mapper/UserRenewalsMapper.java

@@ -0,0 +1,16 @@
+package com.diagbot.mapper;
+
+import com.diagbot.entity.UserRenewals;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ * 用户续费申请表 Mapper 接口
+ * </p>
+ *
+ * @author gaodm
+ * @since 2018-10-12
+ */
+public interface UserRenewalsMapper extends BaseMapper<UserRenewals> {
+
+}

+ 16 - 0
diagbotman-service/src/main/java/com/diagbot/service/UserRenewalsService.java

@@ -0,0 +1,16 @@
+package com.diagbot.service;
+
+import com.diagbot.entity.UserRenewals;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ * 用户续费申请表 服务类
+ * </p>
+ *
+ * @author gaodm
+ * @since 2018-10-12
+ */
+public interface UserRenewalsService extends IService<UserRenewals> {
+
+}

+ 20 - 0
diagbotman-service/src/main/java/com/diagbot/service/impl/UserRenewalsServiceImpl.java

@@ -0,0 +1,20 @@
+package com.diagbot.service.impl;
+
+import com.diagbot.entity.UserRenewals;
+import com.diagbot.mapper.UserRenewalsMapper;
+import com.diagbot.service.UserRenewalsService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ * 用户续费申请表 服务实现类
+ * </p>
+ *
+ * @author gaodm
+ * @since 2018-10-12
+ */
+@Service
+public class UserRenewalsServiceImpl extends ServiceImpl<UserRenewalsMapper, UserRenewals> implements UserRenewalsService {
+
+}

+ 21 - 0
diagbotman-service/src/main/java/com/diagbot/web/UserRenewalsController.java

@@ -0,0 +1,21 @@
+package com.diagbot.web;
+
+
+import io.swagger.annotations.Api;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * <p>
+ * 用户续费申请表 前端控制器
+ * </p>
+ *
+ * @author gaodm
+ * @since 2018-10-12
+ */
+@RestController
+@Api(value = "续费API", tags = { "续费API" })
+@RequestMapping("/userRenewals")
+public class UserRenewalsController {
+
+}

+ 19 - 0
diagbotman-service/src/main/resources/mapper/UserRenewalsMapper.xml

@@ -0,0 +1,19 @@
+<?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.diagbot.mapper.UserRenewalsMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.diagbot.entity.UserRenewals">
+        <id column="id" property="id" />
+        <result column="is_deleted" property="isDeleted" />
+        <result column="gmt_create" property="gmtCreate" />
+        <result column="gmt_modified" property="gmtModified" />
+        <result column="creator" property="creator" />
+        <result column="modifier" property="modifier" />
+        <result column="product_id" property="productId" />
+        <result column="user_id" property="userId" />
+        <result column="renewals_stutas" property="renewalsStutas" />
+        <result column="apply_time" property="applyTime" />
+    </resultMap>
+
+</mapper>