package com.nq.service; import com.github.pagehelper.PageInfo; import com.nq.common.ServerResponse; import com.nq.pojo.UserPosition; import com.nq.vo.position.PositionProfitVO; import com.nq.vo.position.PositionVO; import com.nq.vo.position.UserPositionVO; import java.math.BigDecimal; import java.util.List; import javax.servlet.http.HttpServletRequest; public interface IUserPositionService { ServerResponse buy(Integer paramInteger1, Integer paramInteger2, Integer paramInteger3, Integer paramInteger4,BigDecimal paramInteger5,BigDecimal paramInteger6, HttpServletRequest paramHttpServletRequest) ; ServerResponse sell(String paramString, int paramInt); ServerResponse sell(String paramString, int paramInt, HttpServletRequest request); ServerResponse allSell(HttpServletRequest request,String stockType)throws Exception; ServerResponse lock(Integer paramInteger1, Integer paramInteger2, String paramString); ServerResponse del(Integer paramInteger); UserPositionVO findByPostionSn(String positionSn); ServerResponse findMyPositionByCodeAndSpell(String paramString1, String paramString2, Integer paramInteger, HttpServletRequest paramHttpServletRequest, int paramInt1, int paramInt2,String stockType); PositionVO findUserPositionAllProfitAndLose(Integer paramInteger); PositionVO findUserPositionAllProfitAndLose(Integer paramInteger,String stockType); List findPositionByUserIdAndSellIdIsNull(Integer paramInteger); List findPositionByStockCodeAndTimes(int paramInt, String paramString, Integer paramInteger); Integer findPositionNumByTimes(int paramInt, Integer paramInteger); ServerResponse listByAgent(Integer paramInteger1, Integer paramInteger2, Integer paramInteger3, Integer paramInteger4, String paramString1, String paramString2, String paramString3, HttpServletRequest paramHttpServletRequest, int paramInt1, int paramInt2); ServerResponse getIncome(Integer paramInteger1, Integer paramInteger2, String paramString1, String paramString2); ServerResponse listByAdmin(Integer paramInteger1, Integer paramInteger2, Integer paramInteger3, Integer paramInteger4, String paramString1, String paramString2, String paramString3, int paramInt1, int paramInt2,String phone); int CountPositionNum(Integer paramInteger1, Integer paramInteger2); BigDecimal CountPositionProfitAndLose(); BigDecimal CountPositionAllProfitAndLose(); ServerResponse create(Integer paramInteger1, String paramString1, String paramString2, String paramString3, Integer paramInteger2, Integer paramInteger3, Integer paramInteger4,BigDecimal paramInteger5,BigDecimal paramInteger6) ; int deleteByUserId(Integer paramInteger); void doClosingStayTask(); void expireStayUnwindTask(); ServerResponse closingStayTask(UserPosition paramUserPosition, Integer paramInteger) throws Exception; List findDistinctUserIdList(); ServerResponse findPositionTopList(Integer pageSize); ServerResponse findUserPositionByCode(HttpServletRequest paramHttpServletRequest, String stockCode); ServerResponse addmargin(String paramString, int paramInt, BigDecimal marginAdd) throws Exception; ServerResponse newStockToPosition(Integer id,BigDecimal amountToBeCovered); ServerResponse updateProfitTarget(String positionSn, Integer profitTarget, Integer stopTarget, HttpServletRequest request); ServerResponse buyVipQc(String stockCode, Integer buyNum, Integer buyType, Integer lever, BigDecimal profitTarget, BigDecimal stopTarget, HttpServletRequest request) throws Exception; ServerResponse buyDz(Integer dzId, String password, Integer num, HttpServletRequest request) throws Exception; ServerResponse buyStockDzList(HttpServletRequest request); void stockConstraint(List userPositions); }