Commit 4a3286de authored by lilei's avatar lilei

波段王mapper

parent 7367b87b
package com.zfxftech.telmarket.common.pojo.dto.king;
import com.zfxftech.telmarket.common.pojo.dao.FansFollowRecord;
import java.util.Date;
public class KingProductCustomerFansDto {
private Long customerId;
private String customerName;
private Long productId;
private String productName;
private Long tpFansId;
private String tpFansOpenId;
private String tpFansUnionidId;
private Integer wid;
private Integer status;
private Date createdTime;
private Date expireDate;
public Date getExpireDate() {
return expireDate;
}
public void setExpireDate(Date expireDate) {
this.expireDate = expireDate;
}
public Date getCreatedTime() {
return createdTime;
}
public void setCreatedTime(Date createdTime) {
this.createdTime = createdTime;
}
public FansFollowRecord buildFansObj() {
FansFollowRecord fans = new FansFollowRecord();
fans.setWid(wid.longValue());
fans.setId(tpFansId);
fans.setOpenId(tpFansOpenId);
fans.setUnionId(tpFansUnionidId);
fans.setStatus(status);
return fans;
}
public Long getCustomerId() {
return customerId;
}
public void setCustomerId(Long customerId) {
this.customerId = customerId;
}
public String getCustomerName() {
return customerName;
}
public void setCustomerName(String customerName) {
this.customerName = customerName;
}
public Long getProductId() {
return productId;
}
public void setProductId(Long productId) {
this.productId = productId;
}
public String getProductName() {
return productName;
}
public void setProductName(String productName) {
this.productName = productName;
}
public Long getTpFansId() {
return tpFansId;
}
public void setTpFansId(Long tpFansId) {
this.tpFansId = tpFansId;
}
public String getTpFansOpenId() {
return tpFansOpenId;
}
public void setTpFansOpenId(String tpFansOpenId) {
this.tpFansOpenId = tpFansOpenId;
}
public String getTpFansUnionidId() {
return tpFansUnionidId;
}
public void setTpFansUnionidId(String tpFansUnionidId) {
this.tpFansUnionidId = tpFansUnionidId;
}
public Integer getWid() {
return wid;
}
public void setWid(Integer wid) {
this.wid = wid;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
}
package com.zfxftech.telmarket.mapper.business.king;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zfxftech.telmarket.common.pojo.dao.king.KingAccountProductRelation;
import com.zfxftech.telmarket.common.pojo.dto.king.KingProductCustomerFansDto;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* 账户和产品关联信息表
*
* @author jianghua
* @version 1.0
* @date 2021-08-24 15:55
*/
@Repository
public interface KingAccountProductRelationMapper extends BaseMapper<KingAccountProductRelation> {
@Select("select" +
" pr.product_id as productId," +
" pr.customer_id as customerId," +
" u.name as customerName," +
" p.product_name as productName," +
" f.id as tpFansId," +
" f.openid as tpFansOpenId," +
" f.unionid as tpFansUnionidId," +
" f.status as status," +
" pr.wid as wid" +
" from king_account_product_relation as pr" +
" left join tp_fans as f on pr.tp_fans_id = f.id" +
" left join us_member_base as u on pr.customer_id=u.id" +
" left join king_product as p on pr.product_id = p.id" +
" where pr.product_id= #{productId} and pr.status>0 and f.id is not null")
List<KingProductCustomerFansDto> queryProductUserList(Long productId);
}
\ No newline at end of file
package com.zfxftech.telmarket.mapper.business.king;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zfxftech.telmarket.common.pojo.dao.king.KingCodeInquiry;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Map;
/**
* @version V1.0
* @title: CodeInquiryMapper
* @description:
* @author: zw
* @date: 2021/12/64:04 下午
*/
@Repository
public interface KingCodeInquiryMapper extends BaseMapper<KingCodeInquiry> {
List<KingCodeInquiry> getCodeInquiryList(Map<String, Object> pram);
List<KingCodeInquiry> getCodeInquirySimulatedList(Map<String, Object> pram);
}
package com.zfxftech.telmarket.mapper.business.king;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zfxftech.telmarket.common.pojo.dao.king.KingCommonReviews;
import org.springframework.stereotype.Repository;
/**
* @version V1.0
* @title: CommonReviewsMapper
* @description:
* @author: zw
* @date: 2022/2/246:05 下午
*/
@Repository
public interface KingCommonReviewsMapper extends BaseMapper<KingCommonReviews> {
}
package com.zfxftech.telmarket.mapper.business.king;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zfxftech.telmarket.common.pojo.dao.king.KingCustomerInquiryPage;
import com.zfxftech.telmarket.common.pojo.request.facade.customer.inquiry.QueryCustomerInquiryFacadeListVO;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Map;
/**
* 账户和产品关联信息表
*
* @author jianghua
* @version 1.0
* @date 2021-08-24 15:55
*/
@Repository
public interface KingCustomerInquiryMapper extends BaseMapper<KingCustomerInquiryPage> {
List<KingCustomerInquiryPage> selectCustomerInquiryPageList(Map<String, Object> pram);
List<QueryCustomerInquiryFacadeListVO> selectCustomerInquiryList(Map<String, Object> pram);
}
\ No newline at end of file
package com.zfxftech.telmarket.mapper.business.king;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zfxftech.telmarket.common.pojo.dao.king.KingFrozenRecord;
import org.springframework.stereotype.Repository;
/**
* @author delll
*/
@Repository
public interface KingFrozenRecordMapper extends BaseMapper<KingFrozenRecord> {
}
package com.zfxftech.telmarket.mapper.business.king;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zfxftech.telmarket.common.pojo.dao.king.KingInitialFundAdjustmentLog;
public interface KingInitialFundAdjustmentLogMapper extends BaseMapper<KingInitialFundAdjustmentLog> {
}
package com.zfxftech.telmarket.mapper.business.king;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zfxftech.telmarket.common.pojo.dao.king.KingIntelligentSendNum;
import com.zfxftech.telmarket.common.pojo.dao.king.KingPushRule;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Map;
/**
* @version V1.0
* @title: IntelligentSendServiceMapper
* @description:
* @author: zw
* @date: 2021/11/1810:54 上午
*/
@Repository
public interface KingIntelligentSendMapper extends BaseMapper<KingPushRule> {
List<KingPushRule> queryIntelligentSendList(Map<String, Object> params);
List<KingIntelligentSendNum> querySendUserNum(Map<String, Object> params);
}
package com.zfxftech.telmarket.mapper.business.king;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zfxftech.telmarket.common.pojo.dao.king.KingMarketProfitLog;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
;
@Repository
public interface KingMarketProfitLogMapper extends BaseMapper<KingMarketProfitLog> {
@Select("select id,market_id,principal,profit_rate from chief_market_profit_log " +
"where id = ( " +
" select max(id) from chief_market_profit_log " +
" where market_id=#{marketId} and is_deleted='0' " +
")")
KingMarketProfitLog selectLastLogByMarketId(@Param("marketId") Long marketId);
}
package com.zfxftech.telmarket.mapper.business.king;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zfxftech.telmarket.common.pojo.dao.king.KingMessageLogger;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* @version V1.0
* @title: CommonMessageLoggerMapper
* @description:
* @author: zw
* @date: 2021/11/265:06 下午
*/
@Repository
public interface KingMessageLoggerMapper extends BaseMapper<KingMessageLogger> {
int insertListBatch(List<KingMessageLogger> messageLoggerList);
}
package com.zfxftech.telmarket.mapper.business.king;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zfxftech.telmarket.common.pojo.dao.king.KingPositionTradeInfoRecord;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Map;
/**
* @version V1.0
* @title: PositionTradeInfoRecordMapper
* @description:
* @author: zw
* @date: 2022/1/289:32 上午
*/
@Repository
public interface KingPositionTradeInfoRecordMapper extends BaseMapper<KingPositionTradeInfoRecord> {
List<KingPositionTradeInfoRecord> pagePositionTradeInfoRecordGroupByBatch(Map<String, Object> columnMap);
}
package com.zfxftech.telmarket.mapper.business.king;
import com.zfxftech.telmarket.common.pojo.dao.king.KingProductConfigRule;
import com.zfxftech.telmarket.common.pojo.dao.king.KingProductConfigRuleExample;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface KingProductConfigRuleMapper {
long countByExample(KingProductConfigRuleExample example);
int deleteByExample(KingProductConfigRuleExample example);
int deleteByPrimaryKey(Integer id);
int insert(KingProductConfigRule record);
int insertSelective(KingProductConfigRule record);
List<KingProductConfigRule> selectByExample(KingProductConfigRuleExample example);
KingProductConfigRule selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") KingProductConfigRule record, @Param("example") KingProductConfigRuleExample example);
int updateByExample(@Param("record") KingProductConfigRule record, @Param("example") KingProductConfigRuleExample example);
int updateByPrimaryKeySelective(KingProductConfigRule record);
int updateByPrimaryKey(KingProductConfigRule record);
}
\ No newline at end of file
package com.zfxftech.telmarket.mapper.business.king;
import com.zfxftech.telmarket.common.pojo.dao.king.KingProductConfigRuleRel;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface KingProductConfigRuleRelMapper {
// int deleteByExample(ProductConfigRuleRelExample example);
int deleteByPrimaryKey(Integer id);
int deleteByRuleId(@Param("ruleId") Integer ruleId);
int insert(KingProductConfigRuleRel record);
int insertSelective(KingProductConfigRuleRel record);
// List<ProductConfigRuleRel> selectByExample(ProductConfigRuleRelExample example);
KingProductConfigRuleRel selectByPrimaryKey(Integer id);
// int updateByExampleSelective(@Param("record") ProductConfigRuleRel record, @Param("example") ProductConfigRuleRelExample example);
// int updateByExample(@Param("record") ProductConfigRuleRel record, @Param("example") ProductConfigRuleRelExample example);
int updateByPrimaryKeySelective(KingProductConfigRuleRel record);
int updateByPrimaryKey(KingProductConfigRuleRel record);
List<KingProductConfigRuleRel> selectByRuleId(@Param("ruleId") Integer ruleId);
List<KingProductConfigRuleRel> selectByProductIdAndOrderBy(@Param("productId") Integer productId, @Param("orderByColumn") String orderByColumn, @Param("orderByDirection") String orderByDirection);
List<KingProductConfigRuleRel> selectByRuleIdAndRuleType(@Param("ruleId") Integer ruleId, @Param("ruleType") Integer type);
List<KingProductConfigRuleRel> selectByProductId(@Param("productId") Integer productId);
List<KingProductConfigRuleRel> selectByProductIdListAndRuleType(@Param("productIdList") List<Integer> idList, @Param("ruleType") Integer type);
}
\ No newline at end of file
package com.zfxftech.telmarket.mapper.business.king;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zfxftech.telmarket.common.pojo.dao.king.KingProduct;
import org.springframework.stereotype.Repository;
/**
* @author jianghua
* @version 1.0
* @date 2021-08-24 15:55
*/
@Repository
public interface KingProductMapper extends BaseMapper<KingProduct> {
}
package com.zfxftech.telmarket.mapper.business.king;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zfxftech.telmarket.common.pojo.dao.king.KingSendFromLog;
public interface KingSendFromLogMapper extends BaseMapper<KingSendFromLog> {
}
package com.zfxftech.telmarket.mapper.business.king;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zfxftech.telmarket.common.pojo.dao.king.KingSendFromPositionLog;
public interface KingSendFromPositionLogMapper extends BaseMapper<KingSendFromPositionLog> {
}
package com.zfxftech.telmarket.mapper.business.king;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zfxftech.telmarket.common.pojo.dao.king.KingStockInputLog;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Map;
/**
* 用户股票持仓
*
* @author jianghua
* @version 1.0
* @date 2021-08-24 15:55
*/
@Repository
public interface KingStockInputLogMapper extends BaseMapper<KingStockInputLog> {
List<KingStockInputLog> queryStockInputLogs(Map<String, Object> param);
}
\ No newline at end of file
package com.zfxftech.telmarket.mapper.business.king;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zfxftech.telmarket.common.pojo.dao.king.KingMemberStockPage;
import com.zfxftech.telmarket.common.pojo.dao.king.KingStockPosition;
import com.zfxftech.telmarket.common.pojo.dto.remind.FullStockPositionTask;
import com.zfxftech.telmarket.common.pojo.dto.remind.StockPositionTask;
import com.zfxftech.telmarket.common.pojo.request.statistics.CurrDayRiseDownDataList;
import com.zfxftech.telmarket.common.pojo.request.statistics.RealTimeCodeQueryDataList;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Map;
/**
* 用户股票持仓
*
* @author jianghua
* @version 1.0
* @date 2021-08-24 15:55
*/
@Repository
public interface KingStockPositionMapper extends BaseMapper<KingStockPosition> {
List<KingMemberStockPage> selectCustomerPositionList(Map<String, Object> pram);
List<KingStockPosition> queryStockPositionsContainIsDeleted(Long marketId);
List<StockPositionTask> getStockPositionTask(@Param("productId") Long productId, @Param("code") String code);
List<FullStockPositionTask> getProductCheckFullStopTask();
Integer selectCurrDayRiseDownStockNum(Map<String, Object> pram);
List<CurrDayRiseDownDataList> selectCurrDayRiseDownDataList(Map<String, Object> pram);
List<RealTimeCodeQueryDataList> selectRealTimeCodeQueryDataList(Map<String, Object> pram);
}
\ No newline at end of file
package com.zfxftech.telmarket.mapper.business.king;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zfxftech.telmarket.common.pojo.dao.king.KingStockProfitLog;
/**
* @Description TODO
* @Author Dell
* @Date 2021/11/23 15:40
*/
public interface KingStockProfitLogMapper extends BaseMapper<KingStockProfitLog> {
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment