Helius
2020-09-08 3b51e28456fc8c3ca03a27df70645b82c1a1530b
src/main/java/com/xcong/excoin/modules/contract/dao/ContractHoldOrderDao.java
@@ -4,7 +4,10 @@
import com.xcong.excoin.modules.contract.entity.ContractHoldOrderEntity;
import com.xcong.excoin.rabbit.pricequeue.OrderModel;
import org.apache.ibatis.annotations.Param;
import org.web3j.abi.datatypes.Int;
import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;
/**
@@ -36,10 +39,27 @@
    public List<ContractHoldOrderEntity> selectHoldOrderListByMemberId(@Param("memberId") Long memberId);
    public List<ContractHoldOrderEntity> selectHoldOrderListByMemberIdAndSymbol(@Param("memberId") Long memberId, @Param("symbol") String symbol, @Param("type") Integer type);
    public ContractHoldOrderEntity selectHoldOrderByMemberIdAndId(@Param("memberId") Long memberId, @Param("id") Long id);
    public int updateHoldOrderIsCanClosingById(@Param("isCanClosing") int isCanClosing, @Param("id") Long id);
    public List<ContractHoldOrderEntity> selectAllHoldOrder();
    public List<ContractHoldOrderEntity> selectMemberHoldOrderByPositionType(@Param("positionType") Integer positionType, @Param("memberId") Long memberId);
    public ContractHoldOrderEntity selectWholeHoldOrderByOrderType(@Param("memberId") Long memberId, @Param("orderType") Integer orderType, @Param("symbol") String symbol);
    public List<ContractHoldOrderEntity> selectHoldOrderListForWholeByMemberIdAndSymbol(@Param("memberId") Long memberId, @Param("symbol") String symbol);
    public List<HashMap<String, Object>> selectAllWholeOrderMemberIdAndSymbol();
    public List<String> selectWholeHoldOrderSymbolsByMemberId(@Param("memberId") Long memberId);
    public int updateForcePriceBySymbolAndMemberId(@Param("forcePrice") BigDecimal forcePrice, @Param("memberId") Long memberId, @Param("symbol") String symbol);
    public List<Long> selectMemberHasWholeOrder();
    int updateMemberAllHoldOrderClosingStatus(@Param("memberId") Long memberId);
}