Commit 1e551475 authored by 刘长帅's avatar 刘长帅

Merge branch 'master-1627' into master-publisher

parents aa972884 64c9ace3
......@@ -101,4 +101,6 @@ public class CommonConfig {
private String surveyStockPriceTask;
@Value("${nacos.config.highStockPriceTask}")
private String highStockPriceTask;
@Value("${nacos.config.chiefStockPriceTask}")
private String chiefStockPriceTask;
}
......@@ -108,6 +108,7 @@ public class MybatisConfiguration {
mapperLocations.add("classpath*:mybatis/mapper/product/*.xml");
mapperLocations.add("classpath*:mybatis/mapper/report/*.xml");
mapperLocations.add("classpath*:mybatis/mapper/high/*.xml");
mapperLocations.add("classpath*:mybatis/mapper/chief/*.xml");
List<Resource> resources = new ArrayList();
if (!CollectionUtils.isEmpty(mapperLocations)) {
for (String mapperLocation : mapperLocations) {
......
......@@ -136,7 +136,8 @@ public interface AdminConstant {
, ASSET_TYPE("AssetType",3, "资管")
, SMART_TYPE("SmartType",4, "智能跟投")
, SURVEY_TYPE("SurveyType",5, "项目调研")
, HIGH_TYPE("HighType",6, "高端定制");
, HIGH_TYPE("HighType",6, "高端定制")
, CHIEF_TYPE("ChiefType",7, "首席定制");
private final String code;
......
package com.zfxftech.telmarket.common.pojo.dao.chief;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
/**
* @Description TODO
* @Author Dell
* @Date 2021/10/26 14:25
*账户和产品关系表
* 示范盘数据
*/
@Data
@TableName(value = "chief_account_product_relation")
public class ChiefAccountProductRelation {
/**
* 唯一标记
*/
@TableId(type = IdType.INPUT)
private Long id;
/**
* 客户id
*/
private Long customerId;
/**
* 产品id
*/
private Long productId;
/**
* 产品名称
*/
private String productName;
/**
* 产品类型
*/
private String productType;
/**
* 删除标记
*/
@TableLogic
@TableField(value = "is_deleted")
private Boolean isDeleted;
/**
* 初始资金
*/
private BigDecimal initialFunding;
/**
* 示范盘资金
*/
private BigDecimal simulatedFunding;
/**
* 实盘资金
*/
private BigDecimal realFunding;
/**
* 虚拟盘id
*/
private Long simulatedMarketId;
/**
* 实盘id
*/
private Long realMarketId;
/**
* 产品生效时间
*/
private Date createdAt;
/**
* 产品到期时间
*/
private Date expiredAt;
/**
* 状态 true 正常 false 到期
*/
private Integer status;
/**
* 是否问题
*/
private Boolean isProblem;
/**
* 创建人
*/
private String createdBy;
/**
* 创建时间
*/
private Date createdTime;
/**
* 更新人
*/
private String modifyBy;
/**
* 更新时间
*/
private Date modifyTime;
/**
* 粉丝ID
*/
private Long tpFansId;
/**
* 公众号id
*/
private Integer wid;
/**
* 产品经理
*/
private Long pmUserId;
/**
* 销售Id
*/
private Long salesId;
/**
* 备注
*/
private String remark;
/**
* 示范总资产
*/
private BigDecimal simulatedTotalPrice;
/**
* 示范盈亏比例
*/
private BigDecimal simulatedTotalProfit;
/**
* 示范持仓比
*/
private BigDecimal simulatedProportion;
/**
* 示范持仓比
*/
private BigDecimal profitAmount;
/**
* 示范持仓数量
*/
private Integer positionCount;
//跟投联动专用传参字段
@TableField(exist = false)
private String followAccountName;
}
\ No newline at end of file
package com.zfxftech.telmarket.common.pojo.dao.chief;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
/**
* @version V1.0
* @title: CodeInquiry
* @description:
* @author: zw
* @date: 2021/12/64:07 下午
*/
@Data
public class ChiefCodeInquiry {
private String name;
private String realMarketId;
private String simulatedMarketId;
private String accountType;
private String productName;
private String productType;
private String code;
private String stockName;
private BigDecimal cost;
private BigDecimal now;
//涨跌幅
private BigDecimal riseDownRange;
//盈亏比例
private BigDecimal profitLossRatio;
private Date createdTime;
private String days;
private BigDecimal recentClosingPrice;
/**
* 产品类型的中文描述
*/
@TableField(exist = false)
private String productTypeDesc;
/**
* 行业
*/
private String industry;
/**
* 昨日涨跌幅
*/
private BigDecimal ydayRiseDownRange;
}
package com.zfxftech.telmarket.common.pojo.dao.chief;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.util.Date;
/**
* @version V1.0
* @title: CommonReviews
* @description:
* @author: zw
* @date: 2022/2/246:01 下午
*/
@Data
@TableName(value = "chief_common_reviews")
public class ChiefCommonReviews {
@TableId(type = IdType.AUTO)
private Long id;
@TableField(value = "market_id")
private Long marketId;
@TableField(value = "stock_code")
private String stockCode;
@TableField(exist = false)
private String stockName;
@TableField(value = "comments")
private String comments;
@TableField(value = "type")
private Integer type;
@TableField(value = "created_by")
private String createBy;
@TableField(value = "created_time")
private Date createTime;
/**
* 更新人
*/
@TableField(value = "modify_by")
private String modifyBy;
/**
* 更新时间
*/
@TableField(value = "modify_time")
private Date modifyTime;
}
package com.zfxftech.telmarket.common.pojo.dao.chief;
import lombok.Data;
import java.util.Date;
/**
* @version V1.0
* @title: CustomerInquiryPage
* @description:
* @author: zw
* @date: 2021/12/23:26 下午
*/
@Data
public class ChiefCustomerInquiryPage {
/**
* 客户和产品关联id
*/
private Long id;
/**
* 客户id
*/
private Long customerId;
/**
* 客户姓名
*/
private String name;
/**
* 产品名称
*/
private String productName;
/**
* 是虚拟帐号还是实仓帐号
*/
private String accountType;
/**
* 产品状态
*/
private String status;
/**
* 帐号
*/
private String marketId;
/**
* 实盘id
*/
private String realId;
/**
* 示范盘Id
*/
private String simulatedId;
/**
* 资金
*/
private Double commonFunding;
/**
* 产品购买时间
*/
private Date createdAt;
/**
* 产品过期时间
*/
private Date expiredAt;
/**
* 持仓总市值 持仓股票*昨天收盘价
*/
private Double commonPosition;
/**
* 操作股票数
*/
private Integer commonPositionCount;
/**
* 持仓股票数
*/
private Integer positionCount;
/**
* 收益股票数
*/
private Integer profitCount;
/**
* 总资产 持仓总市值+剩余的钱
*/
private Double commonTotalPrice;
/**
* 盈亏比例 (总持仓+剩余的钱)/ 总资产
* (((common_position + common_funding)-initial_funding)/ initial_funding
*/
private Double commonProportion;
/**
* 盈亏金额 总资产-初始化的钱
* ((common_position + common_funding)-initial_funding
*/
private Double profitLossPrice;
/**
* 股票仓位 持仓总市值/总资产
* common_position / (common_position + common_funding)
*/
private Double stockPosition;
}
package com.zfxftech.telmarket.common.pojo.dao.chief;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
/**
* @Description TODO
* @Author Dell
* @Date 2021/12/21 14:28
*/
@Data
@TableName(value = "chief_frozen_record")
public class ChiefFrozenRecord {
/**
* 唯一标记
*/
@TableId(type = IdType.INPUT)
private Long id;
/**
* 冻结标的
*/
@TableField(value = "frozen_target")
private String frozenTarget;
/**
* 数量
*/
@TableField(value = "count")
private BigDecimal count;
/**
* 交易盘id
*/
@TableField(value = "market_id")
private Long marketId;
/**
* 股票代码
*/
@TableField(value = "code")
private String code;
/**
* 删除标记
*/
@TableLogic
@TableField(value = "is_deleted")
private String isDeleted;
/**
* 创建人
*/
@TableField(value = "created_by")
private String createdBy;
/**
* 创建时间
*/
@TableField(value = "created_time")
private Date createdTime;
/**
* 更新人
*/
@TableField(value = "modify_by")
private String modifyBy;
/**
* 更新时间
*/
@TableField(value = "modify_time")
private Date modifyTime;
}
\ No newline at end of file
package com.zfxftech.telmarket.common.pojo.dao.chief;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
@Data
@TableName(value = "chief_initial_fund_adjustment_log")
public class ChiefInitialFundAdjustmentLog {
@TableId(type = IdType.AUTO)
private Long id;
@TableField(value = "object_id")
private Long ObjectId;
@TableField(value = "object_type")
private String ObjectType;
@TableField(value = "amount_before_adjustment")
private BigDecimal amountBeforeAdjustment;
@TableField(value = "amount_after_adjustment")
private BigDecimal amountAfterAdjustment;
@TableField(value = "adjustment_time")
private Date adjustmentTime;
@TableField(value = "remark")
private String remark;
@TableField(value = "operation")
private String operation;
@TableField(value = "create_by")
private Long createBy;
@TableField(value = "create_name")
private String createByName;
@TableField(value = "create_time")
private Date createTime;
}
\ No newline at end of file
package com.zfxftech.telmarket.common.pojo.dao.chief;
import com.zfxftech.telmarket.common.pojo.dao.StockPosition;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
/**
* @version V1.0
* @title: IntelligentSendNum
* @description:
* @author: zw
* @date: 2021/11/223:16 下午
*/
@Data
@NoArgsConstructor
public class ChiefIntelligentSendNum {
private Long id;
//客户id
private String customerId;
//客户名称
private String customerName;
//产品id
private String productId;
//购买的产品
private String productName;
//产品类型
private String productType;
private String productTypeDesc;
//投资风格
private String investmentStyle;
/**
* 投资风格描述
*/
private String investmentStyleDesc;
//账户类型
private Integer accountLimit;
/**
* 账户限制描述
*/
private String accountLimitDesc;
// private String accountLimitText;
//虚拟盘总资金
private String simulatedFunding;
//实盘总资金
private String realFunding;
//虚拟盘id
private Long simulatedMarketId;
//实盘id
private Long realMarketId;
//用户微信唯一标记
private String unionId;
//实盘仓位
private BigDecimal realPosition;
//虚拟仓位
private BigDecimal simulatedPosition;
//实盘盈亏比
private BigDecimal realProfitRatio;
//示范盈亏比
private BigDecimal simulatedProfitRatio;
//持仓行业
private List<String> positionIndustry;
//示范最后买入时间
private Date modifyTime;
/**
* 持有的股票
*/
private List<StockPosition> list;
//总资产
private String simulatedTotalPrice;
//初始资金
private String initialFunding;
}
package com.zfxftech.telmarket.common.pojo.dao.chief;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
/**
* @Description TODO
* @Author Dell
* @Date 2021/11/27 15:20
*
*/
@Data
@TableName(value = "chief_market_profit_log")
public class ChiefMarketProfitLog {
/**
* 唯一标记
*/
@TableId(type = IdType.AUTO)
private Long id;
/**
* 示范盘Id
*/
private Long marketId;
/**
* 本金
*/
private BigDecimal principal;
/**
* 总收益
*/
private BigDecimal profit;
/**
* 较上一日增量收益
*/
private BigDecimal incrementProfit;
/**
* 收益率
*/
private BigDecimal profitRate;
/**
* 日期
*/
private Date date;
/**
* 删除标记
*/
@TableLogic
@TableField(value = "is_deleted")
private String isDeleted;
/**
* 创建时间
*/
private Date createdTime;
}
package com.zfxftech.telmarket.common.pojo.dao.chief;
import lombok.Data;
import org.apache.commons.lang3.tuple.Pair;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
/**
* @Description TODO
* @Author Dell
* @Date 2021/11/16 13:35
*/
@Data
public class ChiefMemberStockPage {
/**
* 客户和产品关联id
*/
private Long id;
/**
* 客户id
*/
private Long customerId;
/**
* 实盘id
*/
private Long realMarketId;
/**
* 示范盈亏比例
*/
private BigDecimal simulatedTotalProfit;
/**
* 实盘总盈亏
*/
// private BigDecimal realTotalProfit;
/**
* 示范盘id
*/
private Long simulatedMarketId;
/**
* 客户名称
*/
private String customerName;
/**
* 产品名称
*/
private String productName;
/**
* 投资风格
*/
private String investmentStyle;
/**
* 实盘可用资金
*/
// private String realFunding;
/**
* 示范盘可用资金
*/
private BigDecimal simulatedFunding;
/**
* 实盘持仓
*/
// private BigDecimal realPosition;
/**
* 示范盘持仓
*/
private BigDecimal simulatedPosition;
/**
* 产品到期时间
*/
private Date productExpiredTime;
/**
* 产品创建时间
*/
private Date productCreatedTime;
/**
* 客户注册时间
*/
private Date customerCreatedTime;
/**
* 示范盘的最近购买时间
*/
private Date simulatedLatestBuyTime;
/**
* 实盘总资金
*/
// private String realTotalPrice;
/**
* 示范盘总资金
*/
private BigDecimal simulatedTotalPrice;
/**
* 实盘仓位占比
*/
// private Double realProportion;
/**
* 示范仓位占比
*/
private String simulatedProportion;
/**
* 是否持有
*/
private boolean isHolding;
/**
* 账户限制
*/
private Integer accountLimit;
/**
* 行业占比
*/
List<Pair<String, String>> industryProportion;
/**
* 公司
*/
private String companyDesc;
/**
* 公司id
*/
private Integer companyId;
/**
* 可用数量
*/
private Long count;
private String investmentStyleDesc;
private String accountLimitDesc;
/**
* 状态: 0=已到期 1=在使用 2 =即将到期
*/
private Integer status;
/**
* 状态: 产品id
*/
private String productId;
/**
* 状态: 产品类型
*/
private String productType;
//个股盈亏比例
private BigDecimal profitLossRatio;
//个股持仓
private BigDecimal stockPosition;
//持有天数
private Integer holdDay;
//1是问题客户
private String isProblem;
//虚拟持仓数
private Integer simulatedPositionTotal;
}
package com.zfxftech.telmarket.common.pojo.dao.chief;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.util.Date;
/**
* @version V1.0
* @title: MessageLogger
* @description:
* @author: zw
* @date: 2021/11/265:08 下午
*/
@Data
@TableName(value = "chief_message_log")
public class ChiefMessageLogger {
@TableId(type = IdType.AUTO)
private Long id;
@TableField(value = "push_rule_id")
private Long pushRuleId;
@TableField(value = "customer_id")
private Long customerId;
@TableField(value = "stock_pool_id")
private Long stockPoolId;
@TableField(value = "stock_id")
private Long stockId;
@TableField(value = "customer_name")
private String customerName;
/**
* 创建人
*/
@TableField(value = "created_by")
private String createdBy;
/**
* 创建时间
*/
@TableField(value = "created_time")
private Date createdTime;
/**
* 更新人
*/
@TableField(value = "modify_by")
private String modifyBy;
/**
* 更新时间
*/
@TableField(value = "modify_time")
private Date modifyTime;
}
package com.zfxftech.telmarket.common.pojo.dao.chief;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zfxftech.telmarket.common.pojo.dao.CustomerProductEntity;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;
/**
* @Description TODO
* @Author Dell
* @Date 2021/12/24 10:39
* 持仓和交易批次关系表
*/
@Data
@TableName(value = "chief_position_trade_info_record")
public class ChiefPositionTradeInfoRecord {
/**
* 唯一标记
*/
@TableId(type = IdType.AUTO)
private Long id;
/**
* 交易批次
*/
@TableField(value = "buying_batch")
private Long buyingBatch;
/**
* 股票代码
*/
@TableField(value = "code")
private String code;
@TableField(exist = false)
private String codeName;
@TableField(exist = false)
private List<String> productName;
@TableField(exist = false)
private String productTypeDesc;
@TableField(exist = false)
private String statusDesc;
@TableField(exist = false)
private String operationDesc;
@TableField(exist = false)
private String wayDesc;
@TableField(exist = false)
private List<Map> customerNameArray;
/**
* 操作类型;1(买入),2(卖出),3(加仓),4(减仓)
*/
@TableField(value = "operation")
private Integer operation;
/**
* 买入时间
*/
@TableField(value = "buying_time")
private Date buyingTime;
/**
* 卖出时间
*/
@TableField(value = "selling_time")
private Date sellingTime;
/**
* 成本价
*/
@TableField(value = "cost")
private BigDecimal cost;
/**
* 卖出价
*/
@TableField(value = "selling_price")
private BigDecimal sellingPrice;
/**
* 持仓id
*/
@TableField(value = "position_id")
private Long positionId;
/**
* 产品id
*/
@TableField(value = "product_id")
private Long productId;
/**
* 产品类型
*/
@TableField(value = "product_type")
private String productType;
/**
* 客户id
*/
@TableField(value = "customer_id")
private Long customerId;
/**
* 交易状态;1(持仓中)2(已清仓)3(示有实无)
*/
@TableField(value = "status")
private Integer status;
/**
* 删除标记
*/
@TableField(value = "is_deleted")
private String isDeleted;
/**
* 持有天数
*/
@TableField(value = "holding_days")
private Integer holdingDays;
/**
* 盈亏比例
*/
@TableField(value = "profit_ratio")
private BigDecimal profitRatio;
/**
* 公司id
*/
@TableField(value = "companyId")
private Integer companyId;
/**
* 委托途径 0交易指令 1智能分发
*/
@TableField(value = "entrust_way")
private Integer entrustWay;
/**
* 产品类型
*/
@TableField(exist = false)
private String customerNum;
@TableField(exist = false)
private String customerIds;
@TableField(exist = false)
private String productIds;
@TableField(value = "trust_source")
private Integer trustSource;
@TableField(value = "trust_source_name")
private String trustSourceName;
@TableField(value = "industry")
private String industry;
@TableField(exist = false)
private List<CustomerProductEntity> customerProducts;
}
package com.zfxftech.telmarket.common.pojo.dao.chief;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
/**
* @Description TODO
* @Author Dell
* @Date 2021/12/24 10:39
*/
@Data
public class ChiefPositionTradeInfoRecord4Page {
/**
* 股票代码
*/
private String code;
private String codeName;
/**
* 客户id集合
*/
private List<Long> customerIdArray;
private List<String> customerNameArray;
/**
* 买入时间
*/
private Date buyingTime;
/**
* 卖出时间
*/
private Date sellingTime;
/**
* 成本价
*/
private BigDecimal cost;
/**
* 卖出价
*/
private BigDecimal sellingPrice;
/**
* 产品id
*/
private Long productId;
private String productName;
/**
* 产品类型
*/
private String productType;
private String productTypeDesc;
/**
* 交易状态;1(持仓中)2(已清仓)3(示有实无)
*/
private Integer status;
private String statusDesc;
private Integer operation;
private String operationDesc;
/**
* 持股天数
*/
private Long holdingDays;
/**
* 收益率
*/
private BigDecimal profitRatio;
/**
* 产品类型
*/
private String customerNum;
/**
* 委托途径
* */
private String entrustWay;
/**
* 委托途径描述
* */
private String wayDesc;
/**
* 行业
* */
private String industry;
}
package com.zfxftech.telmarket.common.pojo.dao.chief;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.util.Date;
import java.util.List;
/**
* @version 1.0
* @Author: hxq
* @Date: 2021/9/6 13:24
*/
@TableName(value = "chief_product")
@Data
public class ChiefProduct {
@TableId(type = IdType.AUTO)
private Long id;
@TableField(value = "product_type")
private String productType;
@TableField(value = "product_name")
private String productName;
@TableField(value = "company_id")
private Long companyId;
@TableField(value = "trade_style")
private Long tradeStyle;
@TableField(value = "risk_level")
private String riskLevel;
// @TableField(value = "initial_principal")
// private String initialPrincipal;
@TableField(value = "analyst")
private Long analyst;
@TableField(exist = false)
private List<Long> substituteAnalystList;
@TableField(value = "created_by")
private String createdBy;
@TableField(value = "created_time")
private Date createdTime;
@TableField(value = "modify_by")
private String modifyBy;
@TableField(value = "modify_time")
private Date modifyTime;
@TableField(value = "remark")
private String remark;
@TableField(value = "sell_message")
private String sellMessage;
@TableField(value = "buy_message")
private String buyMessage;
// @TableField(value = "day_statistics_send")
// private String dayStatisticsSend;
@TableLogic
@TableField(value = "is_deleted")
private boolean isDeleted;
@TableField(exist = false)
private String riskLevelDesc;
@TableField(exist = false)
private String companyDesc;
@TableField(exist = false)
private String tradeStyleDesc;
@TableField(exist = false)
private String productTypeDesc;
@TableField(exist = false)
private Long initialPrincipalDesc;
/**
* 公众号唯一标记
*/
@TableField(value = "w_id")
private Long weChatId;
@TableField(exist = false)
private String weChatIdDesc;
}
package com.zfxftech.telmarket.common.pojo.dao.chief;
import java.math.BigDecimal;
import java.util.Date;
public class ChiefProductConfigRule {
private Integer id;
private Integer CREATED_BY;
private Date CREATED_TIME;
private Integer UPDATED_BY;
private Date UPDATED_TIME;
private Integer type;
private BigDecimal yields;
private Integer status;
private String comments;
private Date abortDate;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getCREATED_BY() {
return CREATED_BY;
}
public void setCREATED_BY(Integer CREATED_BY) {
this.CREATED_BY = CREATED_BY;
}
public Date getCREATED_TIME() {
return CREATED_TIME;
}
public void setCREATED_TIME(Date CREATED_TIME) {
this.CREATED_TIME = CREATED_TIME;
}
public Integer getUPDATED_BY() {
return UPDATED_BY;
}
public void setUPDATED_BY(Integer UPDATED_BY) {
this.UPDATED_BY = UPDATED_BY;
}
public Date getUPDATED_TIME() {
return UPDATED_TIME;
}
public void setUPDATED_TIME(Date UPDATED_TIME) {
this.UPDATED_TIME = UPDATED_TIME;
}
public Integer getType() {
return type;
}
public void setType(Integer type) {
this.type = type;
}
public BigDecimal getYields() {
return yields;
}
public void setYields(BigDecimal yields) {
this.yields = yields;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public String getComments() {
return comments;
}
public Date getAbortDate() {
return abortDate;
}
public void setAbortDate(Date abortDate) {
this.abortDate = abortDate;
}
public void setComments(String comments) {
this.comments = comments == null ? null : comments.trim();
}
}
\ No newline at end of file
package com.zfxftech.telmarket.common.pojo.dao.chief;
import com.zfxftech.telmarket.common.pojo.dto.ConfigRuleDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
/**
* Create time: 2021/8/13
*/
@Data
public class ChiefProductConfigRuleQueryVo implements Serializable {
private Integer id;
@ApiModelProperty(value = "用户列表页,展示产品名称",dataType = "list",required = false)
private List<String> productNames;
@ApiModelProperty(value = "用户修改编辑页面展示已选中和未选中的跟投账户",dataType = "list",required = false)
private List<ConfigRuleDto> configRuleRels;
private String type;
private BigDecimal yields;
private String status;
private String comments;
private String updateBy;
private Date UPDATED_TIME;
@ApiModelProperty(value = "截止时间")
private Date abortDate;
}
package com.zfxftech.telmarket.common.pojo.dao.chief;
import lombok.Data;
import lombok.ToString;
import java.util.Date;
@Data
@ToString
public class ChiefProductConfigRuleRel {
private Integer id;
private Integer CREATED_BY;
private Date CREATED_TIME;
private Integer UPDATED_BY;
private Date UPDATED_TIME;
private Integer productId;
private String productName;
private Integer ruleId;
private Integer ruleType;
}
\ No newline at end of file
package com.zfxftech.telmarket.common.pojo.dao.chief;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.util.Date;
/**
* @Description TODO
* @Author Dell
* @Date 2021/11/5 10:33
*/
@Data
@TableName(value = "chief_push_rule")
public class ChiefPushRule {
/**
* 唯一标记
*/
@TableId(type = IdType.AUTO)
private Long id;
/**
* 名称
*/
@TableField(value = "push_name")
private String pushName;
/**
* 用户id
*/
@TableField(value = "customer_id")
private Long customerId;
/**
* 股票池id
*/
@TableField(value = "stock_pool_id")
private Long stockPoolId;
/**
* 产品类型
*/
@TableField(value = "product_type")
private String productType;
/**
* 产品id
*/
@TableField(value = "product_id")
private String productId;
/**
* 产品名字
*/
@TableField(value = "product_name")
private String productName;
/**
* 购买时间上限
*/
@TableField(value = "buy_time_up")
private Date buyTimeUp;
/**
* 购买时间下限
*/
@TableField(value = "buy_time_low")
private Date buyTimeLow;
/**
* 最近建仓上限
*/
@TableField(value = "pos_time_up")
private Date posTimeUp;
/**
* 最近建仓下限
*/
@TableField(value = "pos_time_low")
private Date posTimeLow;
/**
* 示范账户总资产上限
*/
@TableField(value = "simulate_market_fund_up")
private String simulateMarketFundUp;
/**
* 示范账户总资产下限
*/
@TableField(value = "simulate_market_fund_low")
private String simulateMarketFundLow;
// /**
// * 实盘账户仓位下限
// */
// @TableField(value = "real_market_low")
// private Integer realMarketLow;
// /**
// * 实盘账户仓位上限
// */
// @TableField(value = "real_market_up")
// private Integer realMarketUp;
/**
* 示范账户仓位下限
*/
@TableField(value = "simulate_market_low")
private Float simulateMarketLow;
/**
* 示范账户仓位上限
*/
@TableField(value = "simulate_market_up")
private Float simulateMarketUp;
/**
* 符合条件客户数
*/
@TableField(value = "max_num")
private Integer maxNum;
/**
* 当天已买入客户数
*/
@TableField(value = "day_num")
private Integer dayNum;
/**
* 分发比例
*/
@TableField(value = "push_proportion")
private String pushProportion;
/**
* 删除
*/
@TableField(value = "is_deleted")
@TableLogic(value="0",delval="1")
private String isDeleted;
/**
* 勾选当天已买入账户 0未勾选1已勾选
*/
@TableField(value = "is_daybuy")
private String isDaybuy;
/**
* 状态
*/
@TableField(value = "status")
private String status;
/**
* 创建人
*/
@TableField(value = "created_by")
private String createdBy;
/**
* 修改人
*/
@TableField(value = "modify_by")
private String modifyBy;
/**
* 创建时间
*/
@TableField(value = "created_time")
private Date createdTime;
/**
* 修改时间
*/
@TableField(value = "modify_time")
private Date modifyTime;
/**
* 发送时间
*/
@TableField(value = "send_time")
private Date sendTime;
/**
* 发送时间
*/
@TableField(value = "accord_customer_content")
private String accordCustomerContent;
/**
* 发送时间
*/
@TableField(value = "accord_customer_ids")
private String accordCustomerIds;
/**
*持仓个数上限
*/
@TableField(value = "position_count_up")
private Integer positionCountUp;
/**
* 持仓个数下限
*/
@TableField(value = "position_count_low")
private Integer positionCountLow;
}
package com.zfxftech.telmarket.common.pojo.dao.chief;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
/**
* @Description TODO
* @Author Dell
* @Date 2021/10/26 14:25
*资产概览
*/
@Data
@TableName(value = "chief_send_from_log")
public class ChiefSendFromLog {
/**
* 唯一标记
*/
@TableId(type = IdType.ASSIGN_ID)
private Long id;
/**
* 客户id
*/
@TableField(value = "customer_id")
private Long customerId;
/**
* 示范盘id
*/
@TableField(value = "simulated_market_id")
private Long simulatedMarketId;
/**
* 总资产
*/
@TableField(value = "common_total_price")
private BigDecimal commonTotalPrice;
/**
* 总盈亏
*/
@TableField(value = "earnings_price")
private BigDecimal earningsPrice;
/**
* 总盈亏比例
*/
@TableField(value = "total_profit_rate")
private String totalProfitRate;
/**
* 总市值
*/
@TableField(value = "market_value_price")
private BigDecimal marketValuePrice;
/**
* 可用金额
*/
@TableField(value = "current_money_price")
private BigDecimal currentMoneyPrice;
/**
* 可取金额
*/
@TableField(value = "withdrawal_amount_price")
private BigDecimal withdrawalAmountPrice;
/**
* 创建人
*/
@TableField(value = "created_by")
private String createdBy;
/**
* 创建时间
*/
@TableField(value = "created_time")
private String createdTime;
/**
* 更新人
*/
@TableField(value = "modify_by")
private String modifyBy;
/**
* 更新时间
*/
@TableField(value = "modify_time")
private Date modifyTime;
/**
* 创建时间 到秒
*/
@TableField(value = "created_time_details")
private Date createdTimeDetails;
}
\ No newline at end of file
package com.zfxftech.telmarket.common.pojo.dao.chief;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
/**
* @Description TODO
* @Author Dell
* @Date 2021/10/26 14:25
*报表持仓记录表
*/
@Data
@TableName(value = "chief_send_from_position_log")
public class ChiefSendFromPositionLog {
/**
* 唯一标记
*/
@TableId(type = IdType.INPUT)
private Long id;
/**
* 资产概览历史表id
*/
@TableField(value = "asfl_id")
private Long asflId;
/**
* 股票名称
*/
@TableField(value = "stock_name")
private String stockName;
/**
* 股票code
*/
@TableField(value = "stock_code")
private String stockCode;
/**
* 盈亏比例
*/
@TableField(value = "profit_ratio")
private BigDecimal profitRatio;
/**
* 盈亏金额
*/
@TableField(value = "profit_price")
private BigDecimal profitPrice;
/**
* 持仓成本
*/
@TableField(value = "cost")
private BigDecimal cost;
/**
* 现在价格
*/
@TableField(value = "now")
private BigDecimal now;
/**
* 持仓数量
*/
@TableField(value = "position_count")
private Integer positionCount;
/**
* 可用数量
*/
@TableField(value = "available_count")
private Integer availableCount;
/**
* 创建人
*/
@TableField(value = "created_by")
private String createdBy;
/**
* 创建时间
*/
@TableField(value = "created_time")
private String createdTime;
/**
* 更新人
*/
@TableField(value = "modify_by")
private String modifyBy;
/**
* 更新时间
*/
@TableField(value = "modify_time")
private Date modifyTime;
/**
* 创建时间 到秒
*/
@TableField(value = "created_time_details")
private Date createdTimeDetails;
/**
* 当前市值
*/
@TableField(value = "market_value")
private String marketValue;
}
\ No newline at end of file
package com.zfxftech.telmarket.common.pojo.dao.chief;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
/**
* @Description TODO
* @Author jianghua
* @Date 2021/11/5 17:38
*/
@Data
@TableName(value = "chief_stock_input_log")
public class ChiefStockInputLog {
/**
* 唯一标记
*/
@TableId(type = IdType.AUTO)
private Long id;
/**
* 产品id
*/
private Long productId;
/**
* 股票名称
*/
private String stockName;
/**
* 客户id
*/
private Long customerId;
/**
* 示范盘id
*/
private Long marketId;
/**
* 持仓id
*/
private Long stockPositionId;
/**
* 操作类型(1.买入 2.卖出 3.加仓 4.减仓)
*/
private Integer operation;
/**
* 实盘|示范
*/
private String marketType;
/**
* 股票数量
*/
private Long count;
/**
* 股票花费
*/
private BigDecimal cost;
/**
* 股票代码
*/
private String code;
/**
* 删除标记
*/
@TableLogic
private Boolean isDeleted;
/**
* 交易时间
*/
private Date tradingTime;
/**
* 创建人
*/
private String createdBy;
/**
* 创建时间
*/
private Date createdTime;
/**
* 更新人
*/
private String modifyBy;
/**
* 更新时间
*/
private Date modifyTime;
/**
* 委托方向:0=未分委托方向,1=交易指令2=跟投账户3=智能分发5=实盘录入6=批量卖出
*/
private Integer trustSource;
/**
* 委托方向名称: 买入指令,卖出指令,批量卖出,智能分发名称,实盘录入时管理员名称
*/
private String trustSourceName;
/**
* 产品名称
*/
@TableField(exist = false)
private String productTypeDesc;
@TableField(exist = false)
private String productName;
@TableField(exist = false)
private String productType;
@TableField(exist = false)
private String customerName;
@TableField(exist = false)
private String nickName;
@TableField(exist = false)
private String operationDesc;
}
package com.zfxftech.telmarket.common.pojo.dao.chief;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.math.BigDecimal;
import java.util.Date;
/**
* @Description TODO
* @Author Dell
* @Date 2021/11/3 9:29
*/
@Data
@TableName(value = "chief_stock_position")
@NoArgsConstructor
public class ChiefStockPosition {
/**
* 唯一标记
*/
@TableId(type = IdType.AUTO)
private Long id;
/**
* 客户id
*/
@TableField(value = "customer_id")
private Long customerId;
/**
* 产品id
*/
private Long productId;
/**
* 股票盘id
*/
private Long marketId;
/**
* 股票代码
*/
private String code;
/**
* 股票名称
*/
private String name;
/**
* 成交价格
*/
private BigDecimal cost;
@TableField(value = "rise_down_range")
private BigDecimal riseDownRange;
@TableField(value = "profit_loss_ratio")
private BigDecimal profitLossRatio;
@TableField(value = "stock_position")
private BigDecimal stockPosition;
/**
* 股票数量
*/
private Long count;
/**
* 删除标记
*/
@TableLogic
@TableField(value = "is_deleted")
private boolean isDeleted;
/**
* 创建人
*/
private String createdBy;
/**
* 创建时间
*/
private Date createdTime;
/**
* 更新人
*/
private String modifyBy;
/**
* 更新时间
*/
private Date modifyTime;
/**
* 止盈位
*/
@TableField(value = "stop_profit")
private String stopProfit;
@TableField(value = "is_stop_profit")
private String isStopProfit;
/**
* 止损位
*/
@TableField(value = "stop_loss")
private String stopLoss;
@TableField(value = "is_stop_loss")
private String isStopLoss;
@TableField(value = "yday_rise_down_range")
private BigDecimal ydayRiseDownRange;
}
\ No newline at end of file
package com.zfxftech.telmarket.common.pojo.dao.chief;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
/**
* @Description TODO
* @Author Dell
* @Date 2021/11/22 9:42
*/
@Data
@TableName(value = "chief_stock_profit_log")
public class ChiefStockProfitLog {
/**
* 唯一标记
*/
@TableId(type = IdType.AUTO)
private Long id;
/**
* 示范盘
*/
@TableField(value = "market_id")
private Long marketId;
/**
* 示范盘id
*/
@TableField(value = "position_id")
private Long positionId;
/**
* 买入时间
*/
@TableField(value = "buying_time")
private Date buyingTime;
/**
* 卖出时间
*/
@TableField(value = "selling_time")
private Date sellingTime;
/**
* 持仓成本
*/
@TableField(value = "cost")
private BigDecimal cost;
/**
* 股票代码
*/
@TableField(value = "code")
private String code;
/**
* 股票名称
*/
@TableField(exist = false)
private String name;
/**
* 买入途径
*/
private String untitled3;
/**
* 卖出途径
*/
private String untitled2;
/**
* 产品id
*/
@TableField(value = "product_id")
private Long productId;
/**
* 盈亏金额
*/
@TableField(value = "profit_price")
private BigDecimal profitPrice;
/**
* 盈亏比例
*/
@TableField(value = "profit_ratio")
private BigDecimal profitRatio;
/**
* 持有天数
*/
@TableField(value = "holding_days")
private Integer holdingDays;
/**
* 删除标记
*/
@TableLogic
@TableField(value = "is_deleted")
private String isDeleted;
/**
* 创建人
*/
@TableField(value = "created_by")
private String createdBy;
/**
* 创建时间
*/
@TableField(value = "created_time")
private Date createdTime;
/**
* 更新人
*/
@TableField(value = "modify_by")
private String modifyBy;
/**
* 更新时间
*/
@TableField(value = "modify_time")
private Date modifyTime;
// /**
// * 买入途径
// */
// private String buyingRoute;
// /**
// * 卖出途径
// */
// private String sellingRoute;
}
\ No newline at end of file
package com.zfxftech.telmarket.common.pojo.dao.chief;
import lombok.Data;
import java.util.Date;
/**
* @Description TODO
* @Author Dell
* @Date 2021/12/10 10:47
*/
@Data
public class ChiefTradingStrategyParam {
// /**
// * 当前发送指令需要的appId
// */
// private String appId;
// /**
// * 当前发送指令需要的模板id
// */
// private String templateId;
/**
* fanid
*/
private Long fanId;
private Long wid;
/**
* 接收人姓名
*/
private String customerName;
/**
* 推送时间
*/
private String pushTimeStr;
/**
* 买入 卖出理由
*/
private String reason;
/**
* 止盈
*/
private String stopInterferencePosition;
/**
* 止损
*/
private String stopLossPosition;
/**
* 公司id
*/
private Long companyId;
//数据迁移使用
private Integer trustSourceCode;
private String trustSourceComments;
private Date operationDate;
}
package com.zfxftech.telmarket.common.pojo.dto.chief;
import com.zfxftech.telmarket.common.pojo.dao.FansFollowRecord;
import java.util.Date;
public class ChiefProductCustomerFansDto {
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.common.pojo.request.chief;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotNull;
import java.util.List;
/**
* @Description
* @Author jianghua
* @Date 2021/9/27 13:51
*/
@Data
@ApiModel(value = "批量卖出指令", description = "从客户端,交易指令封装的表单数据封装在此entity中")
public class ChiefBatchSellingOrderBO {
@NotNull
@ApiModelProperty(value = "股票代码集合", name = "code", required = true)
private List<String> code;
@NotNull
@ApiModelProperty(value = "示范盘id", name = "marketId", required = true)
private Long marketId;
}
package com.zfxftech.telmarket.common.pojo.request.chief;
import com.zfxftech.telmarket.common.pojo.request.PageBO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @Description TODO
* @Author Dell
* @Date 2021/12/25 18:58
*/
@Data
@ApiModel(value = "查询收集统计页面数据", description = "从客户端,查询收集统计数据传入的数据封装在此entity中")
public class ChiefPagePositionTradeInfoRecordGroupByBatchBO extends PageBO {
@ApiModelProperty(value = "股票代码", name = "code", required = false)
private String code;
@ApiModelProperty(value = "交易状态", name = "tradeStatus", required = false)
private Long tradeStatus;
@ApiModelProperty(value = "是否一对多过滤", name = "filterOneMore", required = false)
private Boolean filterOneMore;
@ApiModelProperty(value = "产品类型", name = "productType", required = false)
private String productType;
@ApiModelProperty(value = "产品id", name = "productId", required = false)
private Long productId;
@ApiModelProperty(value = "收益率下限", name = "profitLowerLimit", required = false)
private String profitLowerLimit;
@ApiModelProperty(value = "收益率上限", name = "profitUpperLimit", required = false)
private String profitUpperLimit;
@ApiModelProperty(value = "买入时间开始", name = "profitLowerLimit", required = false)
private Long buyingTimeLowerLimit;
@ApiModelProperty(value = "买入时间结束", name = "profitLowerLimit", required = false)
private Long buyingTimeUpperLimit;
@ApiModelProperty(value = "卖出时间开始", name = "profitLowerLimit", required = false)
private Long sellingTimeLowerLimit;
@ApiModelProperty(value = "卖出时间结束", name = "profitLowerLimit", required = false)
private Long sellingTimeUpperLimit;
@ApiModelProperty(value = "排序 格式:排序字段:ASC", name = "orderBy", required = false)
private String orderBy;
@ApiModelProperty(value = "公司id", name = "companyId", required = false)
private Integer companyId;
@ApiModelProperty(value = "委托方向", name = "trustSourceId", required = false)
private Integer trustSourceId;
@ApiModelProperty(value = "行业", name = "industry", required = false)
private String industry;
}
package com.zfxftech.telmarket.common.pojo.request.chief;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
/**
* @Description TODO
* @Author Dell
* @Date 2021/11/15 15:07
*/
@ApiModel(value = "模拟盘详情查询表单", description = "从客户端,模拟盘详情查询传入的数据封装在此entity中")
@Data
public class ChiefQueryCustomerMarketDetailsBO {
@NotNull
@ApiModelProperty(value = "模拟盘id", name = "marketId", required = true)
private Long marketId;
@NotBlank
@ApiModelProperty(value = "模拟盘类型 实盘:real 示范:simulated", name = "type", required = true)
private String type;
}
package com.zfxftech.telmarket.common.pojo.request.chief;
import com.zfxftech.telmarket.common.pojo.request.PageBO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@Data
@ApiModel(value = "查询产品列表", description = "从客户端,查询产品列表传入的数据封装在此entity中")
public class ChiefQueryProductBO extends PageBO {
@ApiModelProperty(value = "产品类型", name = "productType", required = false)
private String productType;
@ApiModelProperty(value = "产品id", name = "productId", required = false)
private String productId;
@ApiModelProperty(value = "风险等级", name = "riskLevel", required = false)
private String riskLevel;
@ApiModelProperty(value = "分析师", name = "analyst", required = false)
private Long analyst;
@ApiModelProperty(value = "产品经理", name = "productManager", required = false)
private Long productManager;
@ApiModelProperty(value = "所属公司", name = "companyId", required = false)
private Integer companyId;
// @ApiModelProperty(value = "初始本金", name = "initialPrincipal", required = false)
// private String initialPrincipal;
@ApiModelProperty(value = "开始时间", name = "startCreateTime", example = "1626739300000", required = false)
private Long startCreateTime;
@ApiModelProperty(value = "结束时间", name = "endExpiredTime", example = "1626739300000", required = false)
private Long endCreateTime;
@ApiModelProperty(value = "公众号", name = "weChatId", example = "19", required = false)
private Long weChatId;
@ApiModelProperty(value = "排序(格式:排序字段:排序规则) 支持的字段:created_time、initial_funding、modify_time, 序:desc降序 asc升序", name = "sort", example = "created_time:desc", required = false)
private String orderBy;
private String uid;
}
package com.zfxftech.telmarket.common.pojo.request.chief;
import com.zfxftech.telmarket.common.pojo.request.PageBO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
@Data
@ApiModel(value = "查询股票录入记录", description = "从客户端,查询股票录入记录的数据封装在此entity中")
public class ChiefQueryStockInputLogBO extends PageBO {
@ApiModelProperty(value = "客户id", name = "description", required = false)
private String customerId;
@ApiModelProperty(value = "产品类型", name = "productType", example = "6050350b758289001f6bb543", required = false)
private String productType;
@ApiModelProperty(value = "产品id", name = "productId", example = "6051c185338354001cc327cf", required = false)
private String productId;
@ApiModelProperty(value = "股票代码", name = "code", example = "000001", required = false)
private String code;
@ApiModelProperty(value = "交易方向", name = "startExpiredTime", example = "1626739100000", required = false)
private Integer operation;
@ApiModelProperty(value = "交易时间上限", name = "tradingTimeUpperLimit", example = "1626739100000", required = false)
private Long tradingTimeUpperLimit;
@ApiModelProperty(value = "交易时间下限", name = "tradingTimeLowerLimit", example = "1626739300000", required = false)
private Long tradingTimeLowerLimit;
@ApiModelProperty(value = "示范盘Id", name = "description", required = false)
private String marketId;
@NotBlank
@ApiModelProperty(value = "实盘|示范", name = "marketType", required = true)
private String marketType;
private Integer companyId;
}
package com.zfxftech.telmarket.common.pojo.request.chief;
import com.zfxftech.telmarket.common.pojo.request.PageBO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotNull;
/**
* @Description TODO
* @Author Dell
* @Date 2021/11/23 15:45
*/
@ApiModel(value = "个股盈亏列表表单", description = "个股盈亏列表表单")
@Data
public class ChiefQueryStockProfitLogBO extends PageBO {
@NotNull
@ApiModelProperty(value = "模拟盘id", name = "marketId", required = true)
private Long marketId;
}
package com.zfxftech.telmarket.common.pojo.request.chief;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotNull;
/**
* @Description TODO
* @Author jianghua
* @Date 2021/8/31 17:34
*/
@Data
@ApiModel(value = "保存产品", description = "从客户端,保存产品传入的数据封装在此entity中")
public class ChiefSaveProductBO {
@ApiModelProperty(value = "产品id", name = "id", required = false)
private Long id;
@NotNull(message = "客戶名称不能为空")
@ApiModelProperty(value = "产品名称", name = "productName", required = true)
private String productName;
@NotNull(message = "产品类型不能为空")
@ApiModelProperty(value = "产品类型", name = "productType", required = true)
private String productType;
@NotNull(message = "所属分公司不能为空")
@ApiModelProperty(value = "所属分公司,格式:1,2,3", name = "companyId", required = true)
private Long companyId;
// @NotNull(message = "交易风格不能为空")
@ApiModelProperty(value = "交易风格", name = "tradeStyle", required = false)
private Long tradeStyle;
@ApiModelProperty(value = "风险等级,暂时只有跟投有产品", name = "riskLevel", required = false)
private String riskLevel;
// @ApiModelProperty(value = "初始本金", name = "initialPrincipal", required = false)
// private String initialPrincipal;
@ApiModelProperty(value = "卖出股票消息通知 0 未勾选 1勾选", name = "sellMessage", required = false)
private String sellMessage;
@ApiModelProperty(value = "买入消息股票通知 0 未勾选 1勾选", name = "buyMessage", required = false)
private String buyMessage;
// @ApiModelProperty(value = "每日统计发送通知 0 未勾选 1勾选", name = "dayStatisticsSend", required = false)
// private String dayStatisticsSend;
@ApiModelProperty(value = "产品经理", name = "productManagerList", required = false)
private String productManagerList;
@NotNull(message = "公众号不能为空")
@ApiModelProperty(value = "公众号Id", name = "weChatId", required = true)
private Long weChatId;
@ApiModelProperty(value = "分析师", name = "analyst", required = true)
private Long analyst;
@ApiModelProperty(value = "备注", name = "remark", required = false)
private String remark;
}
package com.zfxftech.telmarket.common.pojo.request.chief;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;
/**
* @Description 系统常量字典表
* @Author jianghua
* @Date 2021/9/27 13:51
*/
@Data
@ApiModel(value = "卖出指令", description = "从客户端,交易指令封装的表单数据封装在此entity中")
public class ChiefSellingOrderBO {
@NotBlank
@ApiModelProperty(value = "股票代码", name = "code", required = true)
private String code;
@NotNull
@ApiModelProperty(value = "是否是现价卖出,是:true,否:false", name = "type", required = true)
private boolean isPresent;
@ApiModelProperty(value = "价格,若是现价当前值为空", name = "type", required = false)
private String price;
@NotBlank
@ApiModelProperty(value = "卖出仓位", name = "position", example = "0.333", required = true)
private String position;
@NotNull
@ApiModelProperty(value = "用户和产品关联id", name = "relationId", required = true)
private List<Long> relationId;
@NotBlank
@ApiModelProperty(value = "卖出理由", name = "reason", required = true)
private String reason;
private boolean followAccountLink;
private String followAccountName;
}
package com.zfxftech.telmarket.common.pojo.request.chief;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotNull;
import java.util.List;
/**
* @Description
* @Author jianghua
* @Date 2021/9/27 13:51
*/
@Data
@ApiModel(value = "原价清零", description = "从客户端,交易指令封装的表单数据封装在此entity中")
public class ChiefSendClearOrderBO {
@NotNull
@ApiModelProperty(value = "股票代码集合", name = "code", required = true)
private List<String> code;
@NotNull
@ApiModelProperty(value = "示范盘id", name = "marketId", required = true)
private Long marketId;
}
package com.zfxftech.telmarket.common.pojo.request.chief;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;
/**
* @Description 系统常量字典表
* @Author jianghua
* @Date 2021/9/27 13:51
*/
@Data
@ApiModel(value = "", description = "从客户端,交易指令封装的表单数据封装在此entity中")
public class ChiefTradeOrderBO {
@NotBlank
@ApiModelProperty(value = "股票代码", name = "code", required = true)
private String code;
@ApiModelProperty(value = "风险等级", name = "riskLevel", required = false)
private String riskLevel;
@NotNull
@ApiModelProperty(value = "是否是现价买入,是:true,否:false", name = "isPresent", required = true)
private boolean isPresent;
@ApiModelProperty(value = "价格,若是现价当前值为空", name = "type", required = false)
private String price;
@NotBlank
@ApiModelProperty(value = "买入仓位", name = "position", example = "0.333", required = true)
private String position;
@NotNull
@ApiModelProperty(value = "用户和产品关联id", name = "relationId", required = true)
private List<Long> relationId;
@NotBlank
@ApiModelProperty(value = "买入理由", name = "reason", required = true)
private String reason;
@ApiModelProperty(value = "止盈位", name = "interferenceStopPosition", required = false)
private String interferenceStopPosition;
@ApiModelProperty(value = "止损位", name = "stopLossPosition", required = false)
private String stopLossPosition;
@ApiModelProperty(value = "买入股票数量,录入上海数据使用,以后删除", name = "buyStockToSyncDataCount", required = false)
private Long buyStockToSyncDataCount;
private boolean followAccountLink;
private String followAccountName;
}
package com.zfxftech.telmarket.common.pojo.vo.chief;
import lombok.Data;
import org.apache.commons.lang3.tuple.Pair;
import java.util.List;
/**
* @Description TODO
* @Author Dell
* @Date 2021/11/17 15:10
*/
@Data
public class ChiefMarketDetailsVO {
/**
* 姓名
*/
private String name;
/**
* 昵称
*/
private String nickName;
/**
* 投资风格
*/
private String investmentStyle;
/**
* 公司
*/
private String company;
/**
* 账户限制
*/
private String accountLimit;
/**
* 产品名称
*/
private String productName;
/**
* 产品类型
*/
private String productType;
/**
* 产品开始时间
*/
private Long productStartTime;
/**
* 产品结束时间
*/
private Long productEndTime;
/**
* 总价格
*/
private String totalPrice;
/**
* 总股票价值
*/
private String totalStocksPrice;
/**
* 可用资金
*/
private String availableFunding;
/**
* 当前仓位
*/
private String position;
/**
* 交易股票数
*/
private Integer stockCount;
/**
* 盈利股票数
*/
private Integer profitStockCount;
/**
* 持仓信息
*/
List<ChiefStockVO> stocksInfo;
/**
* 行业占比
*/
List<Pair<String, String>> industryProportion;
/**
* 产品类型(中文)
*/
private String productTypeDesc;
/**
* 总盈亏比例
*/
private String totalProfitRate;
/**
* 总盈亏
*/
private String totalProfit;
/**
* 产品经理
*/
private String pmUserName;
/**
* 销售关系名称
*/
private String teamRelationNames;
/**
* 客户id
*/
private Long customerId;
/**
* 是否问题客户 1=问题客户
*/
private String isProblem;
}
package com.zfxftech.telmarket.common.pojo.vo.chief;
import lombok.Data;
import lombok.ToString;
@Data
@ToString
public class ChiefProductStrategyVO {
private Integer id;
private String productName;
}
package com.zfxftech.telmarket.common.pojo.vo.chief;
import lombok.Data;
/**
* @Description TODO
* @Author Dell
* @Date 2021/11/23 15:46
*/
@Data
public class ChiefStockProfitLogVO {
private Long buyingTime;
private Long sellingTime;
private String code;
private String name;
private String stockDesc;
private String profitPrice;
private String profitRatio;
private Integer holdingDays;
/**
* 买入途径
*/
private String buyingRoute;
/**
* 卖出途径
*/
private String sellingRoute;
}
package com.zfxftech.telmarket.common.pojo.vo.chief;
import lombok.Data;
/**
* @Description TODO
* @Author Dell
* @Date 2021/11/17 15:27
*/
@Data
public class ChiefStockVO {
/**
* 代码
*/
private String code;
/**
* 名称
*/
private String name;
/**
* 来源
*/
private String channel;
/**
* 产品类型
*/
private String businessType;
/**
* 购入时间
*/
private Long buyTime;
/**
* 持仓数量
*/
private Long count;
/**
* 可用数量
*/
private Long availableCount;
/**
* 成本价格
*/
private String cost;
/**
* 最新价格
*/
private String currentPrice;
/**
* 当前市值
*/
private String marketValue;
/**
* 盈亏比例
*/
private String profitRate;
/**
* 浮动盈亏
*/
private String dynamicProfit;
}
package com.zfxftech.telmarket.common.pojo.vo.chief;
import io.swagger.annotations.ApiModel;
import lombok.Data;
/**
* @Description TODO
* @Author Dell
* @Date 2021/11/15 14:29
*/
@ApiModel(value = "交易指令交易失败返回实体类", description = "交易指令交易失败返回实体类")
@Data
public class ChiefTradeOrderVO {
/**
* 客户姓名
*/
private String customerName;
/**
* 错误码
*/
private Integer errorCode;
private Long customerId;
}
package com.zfxftech.telmarket.mapper.business.chief;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zfxftech.telmarket.common.pojo.dao.chief.ChiefAccountProductRelation;
import com.zfxftech.telmarket.common.pojo.dto.chief.ChiefProductCustomerFansDto;
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 ChiefAccountProductRelationMapper extends BaseMapper<ChiefAccountProductRelation> {
@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 chief_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 chief_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<ChiefProductCustomerFansDto> queryProductUserList(Long productId);
}
\ No newline at end of file
package com.zfxftech.telmarket.mapper.business.chief;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zfxftech.telmarket.common.pojo.dao.chief.ChiefCodeInquiry;
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 ChiefCodeInquiryMapper extends BaseMapper<ChiefCodeInquiry> {
List<ChiefCodeInquiry> getCodeInquiryList(Map<String, Object> pram);
List<ChiefCodeInquiry> getCodeInquirySimulatedList(Map<String, Object> pram);
}
package com.zfxftech.telmarket.mapper.business.chief;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zfxftech.telmarket.common.pojo.dao.chief.ChiefCommonReviews;
import org.springframework.stereotype.Repository;
/**
* @version V1.0
* @title: CommonReviewsMapper
* @description:
* @author: zw
* @date: 2022/2/246:05 下午
*/
@Repository
public interface ChiefCommonReviewsMapper extends BaseMapper<ChiefCommonReviews> {
}
package com.zfxftech.telmarket.mapper.business.chief;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zfxftech.telmarket.common.pojo.dao.chief.ChiefCustomerInquiryPage;
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 ChiefCustomerInquiryMapper extends BaseMapper<ChiefCustomerInquiryPage> {
List<ChiefCustomerInquiryPage> selectCustomerInquiryPageList(Map<String, Object> pram);
List<QueryCustomerInquiryFacadeListVO> selectCustomerInquiryList(Map<String, Object> pram);
}
\ No newline at end of file
package com.zfxftech.telmarket.mapper.business.chief;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zfxftech.telmarket.common.pojo.dao.chief.ChiefFrozenRecord;
import org.springframework.stereotype.Repository;
/**
* @author delll
*/
@Repository
public interface ChiefFrozenRecordMapper extends BaseMapper<ChiefFrozenRecord> {
}
package com.zfxftech.telmarket.mapper.business.chief;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zfxftech.telmarket.common.pojo.dao.chief.ChiefInitialFundAdjustmentLog;
public interface ChiefInitialFundAdjustmentLogMapper extends BaseMapper<ChiefInitialFundAdjustmentLog> {
}
package com.zfxftech.telmarket.mapper.business.chief;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zfxftech.telmarket.common.pojo.dao.chief.ChiefIntelligentSendNum;
import com.zfxftech.telmarket.common.pojo.dao.chief.ChiefPushRule;
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 ChiefIntelligentSendMapper extends BaseMapper<ChiefPushRule> {
List<ChiefPushRule> queryIntelligentSendList(Map<String, Object> params);
List<ChiefIntelligentSendNum> querySendUserNum(Map<String, Object> params);
}
package com.zfxftech.telmarket.mapper.business.chief;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zfxftech.telmarket.common.pojo.dao.chief.ChiefMarketProfitLog;;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
@Repository
public interface ChiefMarketProfitLogMapper extends BaseMapper<ChiefMarketProfitLog> {
@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' " +
")")
ChiefMarketProfitLog selectLastLogByMarketId(@Param("marketId") Long marketId);
}
package com.zfxftech.telmarket.mapper.business.chief;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zfxftech.telmarket.common.pojo.dao.chief.ChiefMessageLogger;
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 ChiefMessageLoggerMapper extends BaseMapper<ChiefMessageLogger> {
int insertListBatch(List<ChiefMessageLogger> messageLoggerList);
}
package com.zfxftech.telmarket.mapper.business.chief;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zfxftech.telmarket.common.pojo.dao.chief.ChiefPositionTradeInfoRecord;
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 ChiefPositionTradeInfoRecordMapper extends BaseMapper<ChiefPositionTradeInfoRecord> {
List<ChiefPositionTradeInfoRecord> pagePositionTradeInfoRecordGroupByBatch(Map<String, Object> columnMap);
}
package com.zfxftech.telmarket.mapper.business.chief;
import com.zfxftech.telmarket.common.pojo.dao.chief.ChiefProductConfigRule;
import com.zfxftech.telmarket.common.pojo.dao.chief.ChiefProductConfigRuleExample;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface ChiefProductConfigRuleMapper {
long countByExample(ChiefProductConfigRuleExample example);
int deleteByExample(ChiefProductConfigRuleExample example);
int deleteByPrimaryKey(Integer id);
int insert(ChiefProductConfigRule record);
int insertSelective(ChiefProductConfigRule record);
List<ChiefProductConfigRule> selectByExample(ChiefProductConfigRuleExample example);
ChiefProductConfigRule selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") ChiefProductConfigRule record, @Param("example") ChiefProductConfigRuleExample example);
int updateByExample(@Param("record") ChiefProductConfigRule record, @Param("example") ChiefProductConfigRuleExample example);
int updateByPrimaryKeySelective(ChiefProductConfigRule record);
int updateByPrimaryKey(ChiefProductConfigRule record);
}
\ No newline at end of file
package com.zfxftech.telmarket.mapper.business.chief;
import com.zfxftech.telmarket.common.pojo.dao.chief.ChiefProductConfigRuleRel;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface ChiefProductConfigRuleRelMapper {
// int deleteByExample(ProductConfigRuleRelExample example);
int deleteByPrimaryKey(Integer id);
int deleteByRuleId(@Param("ruleId") Integer ruleId);
int insert(ChiefProductConfigRuleRel record);
int insertSelective(ChiefProductConfigRuleRel record);
// List<ProductConfigRuleRel> selectByExample(ProductConfigRuleRelExample example);
ChiefProductConfigRuleRel 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(ChiefProductConfigRuleRel record);
int updateByPrimaryKey(ChiefProductConfigRuleRel record);
List<ChiefProductConfigRuleRel> selectByRuleId(@Param("ruleId") Integer ruleId);
List<ChiefProductConfigRuleRel> selectByProductIdAndOrderBy(@Param("productId")Integer productId, @Param("orderByColumn") String orderByColumn, @Param("orderByDirection") String orderByDirection );
List<ChiefProductConfigRuleRel> selectByRuleIdAndRuleType(@Param("ruleId")Integer ruleId, @Param("ruleType")Integer type);
List<ChiefProductConfigRuleRel> selectByProductId(@Param("productId")Integer productId);
List<ChiefProductConfigRuleRel> selectByProductIdListAndRuleType(@Param("productIdList") List<Integer> idList, @Param("ruleType") Integer type);
}
\ No newline at end of file
package com.zfxftech.telmarket.mapper.business.chief;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zfxftech.telmarket.common.pojo.dao.chief.ChiefProduct;
import org.springframework.stereotype.Repository;
/**
* @author jianghua
* @version 1.0
* @date 2021-08-24 15:55
*/
@Repository
public interface ChiefProductMapper extends BaseMapper<ChiefProduct> {
}
package com.zfxftech.telmarket.mapper.business.chief;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zfxftech.telmarket.common.pojo.dao.chief.ChiefSendFromLog;
public interface ChiefSendFromLogMapper extends BaseMapper<ChiefSendFromLog> {
}
package com.zfxftech.telmarket.mapper.business.chief;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zfxftech.telmarket.common.pojo.dao.chief.ChiefSendFromPositionLog;
public interface ChiefSendFromPositionLogMapper extends BaseMapper<ChiefSendFromPositionLog> {
}
package com.zfxftech.telmarket.mapper.business.chief;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zfxftech.telmarket.common.pojo.dao.chief.ChiefStockInputLog;
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 ChiefStockInputLogMapper extends BaseMapper<ChiefStockInputLog> {
List<ChiefStockInputLog> queryStockInputLogs(Map<String, Object> param);
}
\ No newline at end of file
package com.zfxftech.telmarket.mapper.business.chief;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zfxftech.telmarket.common.pojo.dao.chief.ChiefMemberStockPage;
import com.zfxftech.telmarket.common.pojo.dao.chief.ChiefStockPosition;
import com.zfxftech.telmarket.common.pojo.dao.high.HighMemberStockPage;
import com.zfxftech.telmarket.common.pojo.dao.high.HighStockPosition;
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 ChiefStockPositionMapper extends BaseMapper<ChiefStockPosition> {
List<ChiefMemberStockPage> selectCustomerPositionList(Map<String, Object> pram);
List<ChiefStockPosition> 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.chief;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zfxftech.telmarket.common.pojo.dao.chief.ChiefStockProfitLog;
/**
* @Description TODO
* @Author Dell
* @Date 2021/11/23 15:40
*/
public interface ChiefStockProfitLogMapper extends BaseMapper<ChiefStockProfitLog> {
}
package com.zfxftech.telmarket.service.business.chief;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zfxftech.telmarket.common.pojo.dao.chief.ChiefAccountProductRelation;
import com.zfxftech.telmarket.common.pojo.dto.chief.ChiefProductCustomerFansDto;
import java.util.List;
public interface ChiefAccountProductRelationService extends IService<ChiefAccountProductRelation> {
List<ChiefAccountProductRelation> queryAll();
//通过用户id批量查询用户的产品信息
List<ChiefAccountProductRelation> queryAccountProductRelationByMemberIds(List<Long> memberIds);
//通过用户id 产品id 批量查询用户的产品信息
List<ChiefAccountProductRelation> getMarkId(Long memberIds, List<Long> productList);
//批量查询用户的产品
List<ChiefAccountProductRelation> queryAccountProductRelationByMemberId(Long memberId);
//根据粉丝id查询用户的产品
List<ChiefAccountProductRelation> queryAccountProductRelationByFansId(Long fansId);
void updateAccountProductRelation(ChiefAccountProductRelation accountProductRelation, Long memberId, Long productId);
void updateAccountProductRelation(ChiefAccountProductRelation accountProductRelation);
void batchUpdateAccountProductRelation(List<ChiefAccountProductRelation> accountProductRelations);
void addAccountProductRelation(ChiefAccountProductRelation accountProductRelation);
//查询用户的指定产品
ChiefAccountProductRelation queryAccountProductRelationByMemberIdAndProductId(Long memberId, Long productId);
/**
* @param marketId
* @param type (实盘:real 示范:simulated)
* @return
*/
ChiefAccountProductRelation queryAccountProductRelationByMarketInfo(Long marketId, String type);
//通过id批量查询产品和用户的关联关系
List<ChiefAccountProductRelation> queryAccountProductRelationByIds(List<Long> relationIds);
//通过虚拟帐号批量查询产品和用户的关联关系
List<ChiefAccountProductRelation> queryAccountProductRelationBySimulatedIds(List<Long> simulatedIdsIds);
void checkProductIsExpire();
//根据产品id获取对应的客户userId 1表是只要客户的userId 2 表示只要分析师的userId 3.表示全都要
List<Long> getUserId(Long productId ,Integer type);
//根据产品id获取客户id
List<Long> getCustomerIds(Long productId);
List<ChiefProductCustomerFansDto> getProductUserList(Long productId);
List<ChiefAccountProductRelation> getRelationByProductIds(List<Long> ids);
void updateList(List<ChiefAccountProductRelation> list);
}
package com.zfxftech.telmarket.service.business.chief;
import com.zfxftech.telmarket.common.pojo.dao.chief.ChiefFrozenRecord;
import java.util.List;
/**
* @Description TODO
* @Author Dell
* @Date 2021/12/21 14:30
*/
public interface ChiefFrozenRecordService {
/**
* marketId和股票代码获取股票
*
* @param marketId
* @param code
* @return
*/
ChiefFrozenRecord getStockByMarketIdAndCode(Long marketId, String code);
/**
* 通过股票和marketId集合批量查询冻结股票
*
* @param marketIds
* @param code
* @return
*/
List<ChiefFrozenRecord> getStockByMarketIdsAndCode(List<Long> marketIds, String code);
/**
* 通过股票和marketId集合批量查询冻结股票
*
* @param marketIds
* @param codes
* @return
*/
List<ChiefFrozenRecord> getStockByMarketIdsAndCode(List<Long> marketIds, List<String> codes);
/**
* 通过marketId查询当前账户下的所有冻结股票
*
* @param marketId
* @return
*/
List<ChiefFrozenRecord> getStockByMarketId(Long marketId);
/**
* 获取冻结资金
*
* @param marketId
* @return
*/
ChiefFrozenRecord getFrozenFundByMarketId(Long marketId);
/**
* 插入冻结股票
*
* @param marketId 盘
* @param code 股票代码
* @param count 股票数量
*/
void insertFrozenStock(Long marketId, String code, String count);
/**
* 插入冻结资金
*
* @param marketId 盘id
* @param fund 资金
*/
void insertFrozenFund(Long marketId, String fund);
/**
* 清除冻结记录
*/
void clearFrozenRecords();
/**
* 清除冻结记录为同步数据使用
*/
void clearFrozenRecordsForSynData();
}
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