Helius
2021-05-20 7313bee2cdb9cec77b4e5447abf9d9c9c2e119b5
modify
4 files modified
13 ■■■■■ changed files
src/main/java/com/xcong/excoin/modules/otc/dto/OtcOrderAddDto.java 2 ●●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/otc/service/impl/OtcOrderServiceImpl.java 5 ●●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/otc/vo/BuyOrderDetailVo.java 3 ●●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/otc/vo/SaleOrderDetailVo.java 3 ●●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/otc/dto/OtcOrderAddDto.java
@@ -4,11 +4,13 @@
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.RequiredArgsConstructor;
import org.jetbrains.annotations.NotNull;
import java.math.BigDecimal;
@Data
@RequiredArgsConstructor
@ApiModel(value = "OtcOrderAddDto", description = "提交订单接口参数接收类")
public class OtcOrderAddDto {
src/main/java/com/xcong/excoin/modules/otc/service/impl/OtcOrderServiceImpl.java
@@ -1,6 +1,8 @@
package com.xcong.excoin.modules.otc.service.impl;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.date.DateUnit;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.StrUtil;
import cn.hutool.crypto.SecureUtil;
import com.baomidou.mybatisplus.core.metadata.IPage;
@@ -283,6 +285,9 @@
            buyDetail.setOrderCnt(otcMb.getBuyCnt());
        }
        long between = DateUtil.between(buyOrder.getCreateTime(), new Date(), DateUnit.SECOND);
        buyDetail.setTimes(between);
        return Result.ok(buyDetail);
    }
src/main/java/com/xcong/excoin/modules/otc/vo/BuyOrderDetailVo.java
@@ -59,4 +59,7 @@
    @ApiModelProperty(value = "订单状态 1-已提交 2-已付款 3-完成")
    private Integer status;
    @ApiModelProperty(value = "剩余秒数")
    private Long times;
}
src/main/java/com/xcong/excoin/modules/otc/vo/SaleOrderDetailVo.java
@@ -53,4 +53,7 @@
    @ApiModelProperty(value = "是否市商 1是 2否")
    private Integer isMb;
    @ApiModelProperty(value = "剩余秒数")
    private Long times;
}