Helius
2021-05-20 8da201d092f8977d8407d2d49b248c28c45eee70
modify
1 files renamed
3 files modified
20 ■■■■ changed files
src/main/java/com/xcong/excoin/modules/otc/controller/OtcOrderController.java 6 ●●●● patch | view | raw | blame | history
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/OtcOrderService.java 6 ●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/otc/service/impl/OtcOrderServiceImpl.java 6 ●●●● patch | view | raw | blame | history
src/main/java/com/xcong/excoin/modules/otc/controller/OtcOrderController.java
@@ -4,8 +4,8 @@
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xcong.excoin.common.response.Result;
import com.xcong.excoin.modules.otc.dto.HasPayDto;
import com.xcong.excoin.modules.otc.dto.OrderAddDto;
import com.xcong.excoin.modules.otc.dto.OrderListDto;
import com.xcong.excoin.modules.otc.dto.OtcOrderAddDto;
import com.xcong.excoin.modules.otc.service.OtcOrderService;
import com.xcong.excoin.modules.otc.vo.BuyOrderDetailVo;
import com.xcong.excoin.modules.otc.vo.OrderListVo;
@@ -32,14 +32,14 @@
    @ApiOperation(value = "我要购买")
    @PostMapping(value = "/buy")
    public Result buy(@RequestBody OrderAddDto orderAddDto) {
    public Result buy(@RequestBody OtcOrderAddDto orderAddDto) {
        otcOrderService.buyOrder(orderAddDto);
        return Result.ok("购买成功");
    }
    @ApiOperation(value = "我要出售")
    @PostMapping(value = "/sale")
    public Result sale(@RequestBody OrderAddDto orderAddDto) {
    public Result sale(@RequestBody OtcOrderAddDto orderAddDto) {
        otcOrderService.saleOrder(orderAddDto);
        return Result.ok("出售成功");
    }
src/main/java/com/xcong/excoin/modules/otc/dto/OtcOrderAddDto.java
File was renamed from src/main/java/com/xcong/excoin/modules/otc/dto/OrderAddDto.java
@@ -10,7 +10,7 @@
@Data
@ApiModel(value = "OtcOrderAddDto", description = "提交订单接口参数接收类")
public class OrderAddDto {
public class OtcOrderAddDto {
    @NotNull
    @ApiModelProperty(value = "购买USDT数量", example = "120.00")
src/main/java/com/xcong/excoin/modules/otc/service/OtcOrderService.java
@@ -4,16 +4,16 @@
import com.baomidou.mybatisplus.extension.service.IService;
import com.xcong.excoin.common.response.Result;
import com.xcong.excoin.modules.otc.dto.HasPayDto;
import com.xcong.excoin.modules.otc.dto.OrderAddDto;
import com.xcong.excoin.modules.otc.dto.OrderListDto;
import com.xcong.excoin.modules.otc.dto.OtcOrderAddDto;
import com.xcong.excoin.modules.otc.entity.OtcOrder;
import com.xcong.excoin.modules.otc.vo.OrderListVo;
public interface OtcOrderService extends IService<OtcOrder> {
    void buyOrder(OrderAddDto orderAddDto);
    void buyOrder(OtcOrderAddDto orderAddDto);
    void saleOrder(OrderAddDto orderAddDto);
    void saleOrder(OtcOrderAddDto orderAddDto);
    IPage<OrderListVo> findOrderListInPage(OrderListDto orderListDto);
src/main/java/com/xcong/excoin/modules/otc/service/impl/OtcOrderServiceImpl.java
@@ -19,8 +19,8 @@
import com.xcong.excoin.modules.otc.dao.OtcEntrustOrderDao;
import com.xcong.excoin.modules.otc.dao.OtcMarketBussinessDao;
import com.xcong.excoin.modules.otc.dto.HasPayDto;
import com.xcong.excoin.modules.otc.dto.OrderAddDto;
import com.xcong.excoin.modules.otc.dto.OrderListDto;
import com.xcong.excoin.modules.otc.dto.OtcOrderAddDto;
import com.xcong.excoin.modules.otc.entity.OtcEntrustOrder;
import com.xcong.excoin.modules.otc.entity.OtcMarketBussiness;
import com.xcong.excoin.modules.otc.entity.OtcOrder;
@@ -54,7 +54,7 @@
    @Override
    @Transactional(rollbackFor = Exception.class)
    public void buyOrder(OrderAddDto orderAddDto) {
    public void buyOrder(OtcOrderAddDto orderAddDto) {
        MemberEntity member = LoginUserUtils.getAppLoginUser();
        OtcEntrustOrder entrustOrder = otcEntrustOrderDao.selectById(orderAddDto.getId());
        if (entrustOrder == null) {
@@ -109,7 +109,7 @@
    @Override
    @Transactional(rollbackFor = Exception.class)
    public void saleOrder(OrderAddDto orderAddDto) {
    public void saleOrder(OtcOrderAddDto orderAddDto) {
        MemberEntity member = LoginUserUtils.getAppLoginUser();
        OtcEntrustOrder entrustOrder = otcEntrustOrderDao.selectById(orderAddDto.getId());
        if (entrustOrder == null) {