新版仿ok交易所-后端
1
zj
2025-08-12 b38469269d05b02cd67afbbbae65f0ae28f87b4e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package com.yami.trading.service.exchange;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yami.trading.bean.data.domain.Realtime;
import com.yami.trading.bean.exchange.ExchangeApplyOrder;
import com.yami.trading.bean.exchange.dto.ExchangeApplyOrderDto;
import com.yami.trading.bean.exchange.dto.ExchangeSymbolDto;
import com.yami.trading.bean.exchange.dto.SumEtfDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;
 
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
 
public interface ExchangeApplyOrderService extends IService<ExchangeApplyOrder> {
 
    /**
     * 创建委托单
     */
    public void saveCreate(ExchangeApplyOrder order);
 
    /**
     * 所有未处理状态的委托单
     */
    public List<ExchangeApplyOrder> findSubmitted();
 
 
 
    /**
     * 开仓
     */
    public void saveOpen(ExchangeApplyOrder applyOrder, Realtime realtime);
 
    /**
     * 平仓,按金额进行平仓
     */
    public void saveClose(ExchangeApplyOrder applyOrder, Realtime realtime);
 
    /**
     * 撤单
     *
     * @param order_no
     */
    public void saveCancel(String partyId, String order_no);
 
    List<Map<String, Object>>     getPaged(int pageNo, int size, String userId, String symbol, String type, String isAll, String startTime, String endTime, String symbolType,
                                           String orderPriceType);
 
    ExchangeApplyOrder findByOrderNoAndPartyId(String order_no, String userId);
 
    Page<ExchangeApplyOrderDto> listPage(Page page, String rolename,
                                         String userName,
                                         String orderNo,
                                         String state,String offset,String symbolType, String userCode, String symbol);
 
    ExchangeApplyOrder findByOrderNo(String orderNo);
 
    SumEtfDto getProfitLossByUserId(String userId,String type);
 
    List<ExchangeSymbolDto> getETFListByUserId(String userId,String type);
 
}