xiaoyong931011
2021-05-10 6841655f98a81fe9dbe5229a3011088ac2fbf81e
20210510 云顶
9 files added
239 ■■■■■ changed files
src/main/java/com/xcong/excoin/modules/yunding/controller/YunDingController.java 22 ●●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/yunding/dao/YdOrderDao.java 7 ●●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/yunding/dao/YdProductDao.java 7 ●●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/yunding/entity/YdOrderEntity.java 68 ●●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/yunding/entity/YdProductEntity.java 99 ●●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/yunding/service/Impl/YunDingServiceImpl.java 14 ●●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/yunding/service/YunDingService.java 8 ●●●●● patch | view | raw | blame | history
src/main/resources/mapper/yunding/YdOrderDao.xml 7 ●●●●● patch | view | raw | blame | history
src/main/resources/mapper/yunding/YdProductDao.xml 7 ●●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/yunding/controller/YunDingController.java
New file
@@ -0,0 +1,22 @@
package com.xcong.excoin.modules.yunding.controller;
import com.xcong.excoin.modules.activity.service.ActivityService;
import com.xcong.excoin.modules.yunding.service.YunDingService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
@RestController
@RequestMapping(value = "api/yd")
@Slf4j
@Api(value = "YunDingController", tags = "云顶算力")
public class YunDingController {
    @Resource
    YunDingService yunDingService;
}
src/main/java/com/xcong/excoin/modules/yunding/dao/YdOrderDao.java
New file
@@ -0,0 +1,7 @@
package com.xcong.excoin.modules.yunding.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xcong.excoin.modules.yunding.entity.YdOrderEntity;
public interface YdOrderDao extends BaseMapper<YdOrderEntity> {
}
src/main/java/com/xcong/excoin/modules/yunding/dao/YdProductDao.java
New file
@@ -0,0 +1,7 @@
package com.xcong.excoin.modules.yunding.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xcong.excoin.modules.yunding.entity.YdProductEntity;
public interface YdProductDao extends BaseMapper<YdProductEntity> {
}
src/main/java/com/xcong/excoin/modules/yunding/entity/YdOrderEntity.java
New file
@@ -0,0 +1,68 @@
package com.xcong.excoin.modules.yunding.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xcong.excoin.common.system.base.BaseEntity;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
//yd_order订单表
@Data
@TableName("yd_order")
public class YdOrderEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;
    /**
     * 产品ID
     */
    private Long productId;
    /**
     * 购买数量
     */
    private Integer quantity;
    /**
     * 总金额
     */
    private BigDecimal amount;
    /**
     * 累计收益
     */
    private BigDecimal totalProfit;
    /**
     * 今日收益
     */
    private BigDecimal todayProfit;
    /**
     * 1:待生效 2:生效中 3:已终止
     */
    private Integer state;
    /**
     * 生效日期
     */
    private Date workTime;
    /**
     * 终止日期
     */
    private Date endTime;
}
src/main/java/com/xcong/excoin/modules/yunding/entity/YdProductEntity.java
New file
@@ -0,0 +1,99 @@
package com.xcong.excoin.modules.yunding.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xcong.excoin.common.system.base.BaseEntity;
import lombok.Data;
import java.math.BigDecimal;
//yd_product矿机产品表
@Data
@TableName("yd_product")
public class YdProductEntity {
    private static final long serialVersionUID = 1L;
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    /**
     * 名称
     */
    private String  name;
    /**
     * 编码
     */
    private String  code;
    /**
     * 产品总数
     */
    private BigDecimal totalT;
    /**
     * 剩余产品数量
     */
    private BigDecimal surplusT;
    /**
     * 产品售价
     */
    private BigDecimal salePrice;
    /**
     * 服务周期
     */
    private Integer proCycle;
    /**
     * 管理费
     */
    private BigDecimal manageExpense;
    /**
     * 上架天数
     */
    private Integer shelvesDays;
    /**
     * 单位
     */
    private String proUnit;
    /**
     * 产品币种
     */
    private String coin;
    /**
     * 限购
     */
    private Integer limitedNum;
    /**
     * 1:体验  2:正式
     */
    private Integer type;
    /**
     * 1:期货 2:现货
     */
    private Integer typeCoin;
}
src/main/java/com/xcong/excoin/modules/yunding/service/Impl/YunDingServiceImpl.java
New file
@@ -0,0 +1,14 @@
package com.xcong.excoin.modules.yunding.service.Impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xcong.excoin.modules.yunding.dao.YdOrderDao;
import com.xcong.excoin.modules.yunding.entity.YdOrderEntity;
import com.xcong.excoin.modules.yunding.service.YunDingService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
@Slf4j
@Service
public class YunDingServiceImpl extends ServiceImpl<YdOrderDao, YdOrderEntity> implements YunDingService {
}
src/main/java/com/xcong/excoin/modules/yunding/service/YunDingService.java
New file
@@ -0,0 +1,8 @@
package com.xcong.excoin.modules.yunding.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xcong.excoin.modules.yunding.entity.YdOrderEntity;
public interface YunDingService extends IService<YdOrderEntity> {
}
src/main/resources/mapper/yunding/YdOrderDao.xml
New file
@@ -0,0 +1,7 @@
<?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.xcong.excoin.modules.yunding.dao.YdOrderDao">
</mapper>
src/main/resources/mapper/yunding/YdProductDao.xml
New file
@@ -0,0 +1,7 @@
<?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.xcong.excoin.modules.yunding.dao.YdProductDao">
</mapper>