<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.htsc.pos.api.ta.forwardOrder.mapper.PosDsOrderForwardMapper">
<!-- 基础结果映射 -->
<resultMap id="PosDsOrderForwardMap" type="com.htsc.pos.api.ta.forwardOrder.entity.PosDsOrderForward">
<id column="id" property="id" jdbcType="NUMERIC"/>
<result column="manager_id" property="managerId" jdbcType="NUMERIC"/>
<result column="business_date" property="businessDate" jdbcType="TIMESTAMP"/>
<result column="prdt_code" property="prdtCode" jdbcType="VARCHAR"/>
<result column="prdt_name" property="prdtName" jdbcType="VARCHAR"/>
<result column="inv_name" property="invName" jdbcType="VARCHAR"/>
<result column="inv_cust_type" property="invCustType" jdbcType="NUMERIC"/>
<result column="inv_cert_type" property="invCertType" jdbcType="VARCHAR"/>
<result column="inv_cert_num" property="invCertNum" jdbcType="VARCHAR"/>
<result column="business_type" property="businessType" jdbcType="NUMERIC"/>
<result column="trading_amount" property="tradingAmount" jdbcType="NUMERIC"/>
<result column="trading_share_num" property="tradingShareNum" jdbcType="NUMERIC"/>
<result column="charge_discount" property="chargeDiscount" jdbcType="VARCHAR"/>
<result column="creator" property="creator" jdbcType="VARCHAR"/>
<result column="creator_name" property="creatorName" jdbcType="VARCHAR"/>
<result column="create_time" property="createTime" jdbcType="TIMESTAMP"/>
<result column="modifier" property="modifier" jdbcType="VARCHAR"/>
<result column="modifier_name" property="modifierName" jdbcType="VARCHAR"/>
<result column="modify_time" property="modifyTime" jdbcType="TIMESTAMP"/>
<result column="state" property="state" jdbcType="NUMERIC"/>
<result column="trading_account" property="tradingAccount" jdbcType="VARCHAR"/>
<result column="is_valid" property="isValid" jdbcType="NUMERIC"/>
<result column="cool_off_period_flag" property="coolOffPeriodFlag" jdbcType="NUMERIC"/>
<result column="request_no" property="requestNo" jdbcType="VARCHAR"/>
<result column="redeem_type" property="redeemType" jdbcType="NUMERIC"/>
<result column="charge_type" property="chargeType" jdbcType="NUMERIC"/>
<result column="transaction_cost" property="transactionCost" jdbcType="NUMERIC"/>
<result column="achievement_fee_discount" property="achievementFeeDiscount" jdbcType="VARCHAR"/>
<result column="investor_id" property="investorId" jdbcType="NUMERIC"/>
<result column="send_szt_flag" property="sendSztFlag" jdbcType="NUMERIC"/>
</resultMap>
<!-- 基础列名 -->
<sql id="Base_Column_List">
id, manager_id, business_date, prdt_code, prdt_name, inv_name, inv_cust_type,
inv_cert_type, inv_cert_num, business_type, trading_amount, trading_share_num,
charge_discount, creator, creator_name, create_time, modifier, modifier_name,
modify_time, state, trading_account, is_valid, cool_off_period_flag, request_no,
redeem_type, charge_type, transaction_cost, achievement_fee_discount, investor_id
</sql>
<!-- 根据主键查询 -->
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="PosDsOrderForwardMap">
SELECT
<include refid="Base_Column_List"/>
FROM POS_DS_ORDER_FORWARD
WHERE id = #{id,jdbcType=NUMERIC}
</select>
<!-- 查询条件对象 -->
<select id="getPosDsOrderForwardList" parameterType="com.htsc.pos.api.ta.forwardOrder.req.PosDsOrderForwardReq"
resultMap="PosDsOrderForwardMap">
SELECT
<include refid="Base_Column_List"/>
FROM POS_DS_ORDER_FORWARD
WHERE
<if test="managerId != null">
AND MANAGER_ID = #{managerId}
</if>
<if test="prdtCode != null">
AND PRDT_CODE = #{prdtCode}
</if>
<if test="invName != null">
AND INV_NAME LIKE '%'||#{invName}||'%'
</if>
<if test="businessType != null">
AND BUSINESS_TYPE = #{businessType}
</if>
<if test="state != null">
AND STATE = #{state}
</if>
<if test="requestNo != null">
AND REQUEST_NO = #{requestNo}
</if>
<if test="investorId != null">
AND INVESTOR_ID = #{investorId}
</if>
<if test="sendSztFlag != null">
AND SEND_SZT_FLAG = #{sendSztFlag}
</if>
<if test="isValid != null">
AND IS_VALID = #{isValid}
</if>
ORDER BY ID DESC
</select>
<!-- 插入记录 -->
<insert id="insert" parameterType="com.htsc.pos.api.ta.forwardOrder.entity.PosDsOrderForward">
<selectKey keyProperty="id" resultType="java.lang.Long" order="BEFORE">
SELECT SEQ_POS_DS_ORDER_FORWARD.NEXTVAL FROM DUAL
</selectKey>
INSERT INTO POS_DS_ORDER_FORWARD (
id, manager_id, business_date, prdt_code, prdt_name, inv_name,
inv_cust_type, inv_cert_type, inv_cert_num, business_type,
trading_amount, trading_share_num, charge_discount, creator,
creator_name, create_time, modifier, modifier_name, modify_time,
state, trading_account, is_valid, cool_off_period_flag, request_no,
redeem_type, charge_type, transaction_cost, achievement_fee_discount, investor_id
) VALUES (
#{id,jdbcType=NUMERIC}, #{managerId,jdbcType=NUMERIC}, #{businessDate,jdbcType=TIMESTAMP},
#{prdtCode,jdbcType=VARCHAR}, #{prdtName,jdbcType=VARCHAR}, #{invName,jdbcType=VARCHAR},
#{invCustType,jdbcType=NUMERIC}, #{invCertType,jdbcType=VARCHAR}, #{invCertNum,jdbcType=VARCHAR},
#{businessType,jdbcType=NUMERIC}, #{tradingAmount,jdbcType=NUMERIC}, #{tradingShareNum,jdbcType=NUMERIC},
#{chargeDiscount,jdbcType=VARCHAR}, #{creator,jdbcType=VARCHAR}, #{creatorName,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{modifier,jdbcType=VARCHAR}, #{modifierName,jdbcType=VARCHAR},
#{modifyTime,jdbcType=TIMESTAMP}, #{state,jdbcType=NUMERIC}, #{tradingAccount,jdbcType=VARCHAR},
#{isValid,jdbcType=NUMERIC}, #{coolOffPeriodFlag,jdbcType=NUMERIC}, #{requestNo,jdbcType=VARCHAR},
#{redeemType,jdbcType=NUMERIC}, #{chargeType,jdbcType=NUMERIC}, #{transactionCost,jdbcType=NUMERIC},
#{achievementFeeDiscount,jdbcType=VARCHAR}, #{investorId,jdbcType=NUMERIC}
)
</insert>
<!-- 根据主键ID更新记录 -->
<update id="updateById" parameterType="com.htsc.pos.api.ta.forwardOrder.entity.PosDsOrderForward">
UPDATE POS_DS_ORDER_FORWARD
<set>
<if test="managerId != null">manager_id = #{managerId,jdbcType=NUMERIC},</if>
<if test="businessDate != null">business_date = #{businessDate,jdbcType=TIMESTAMP},</if>
<if test="prdtCode != null">prdt_code = #{prdtCode,jdbcType=VARCHAR},</if>
<if test="prdtName != null">prdt_name = #{prdtName,jdbcType=VARCHAR},</if>
<if test="invName != null">inv_name = #{invName,jdbcType=VARCHAR},</if>
<if test="invCustType != null">inv_cust_type = #{invCustType,jdbcType=NUMERIC},</if>
<if test="invCertType != null">inv_cert_type = #{invCertType,jdbcType=VARCHAR},</if>
<if test="invCertNum != null">inv_cert_num = #{invCertNum,jdbcType=VARCHAR},</if>
<if test="businessType != null">business_type = #{businessType,jdbcType=NUMERIC},</if>
<if test="tradingAmount != null">trading_amount = #{tradingAmount,jdbcType=NUMERIC},</if>
<if test="tradingShareNum != null">trading_share_num = #{tradingShareNum,jdbcType=NUMERIC},</if>
<if test="chargeDiscount != null">charge_discount = #{chargeDiscount,jdbcType=VARCHAR},</if>
<if test="modifier != null">modifier = #{modifier,jdbcType=VARCHAR},</if>
<if test="modifierName != null">modifier_name = #{modifierName,jdbcType=VARCHAR},</if>
<if test="modifyTime != null">modify_time = #{modifyTime,jdbcType=TIMESTAMP},</if>
<if test="state != null">state = #{state,jdbcType=NUMERIC},</if>
<if test="tradingAccount != null">trading_account = #{tradingAccount,jdbcType=VARCHAR},</if>
<if test="isValid != null">is_valid = #{isValid,jdbcType=NUMERIC},</if>
<if test="coolOffPeriodFlag != null">cool_off_period_flag = #{coolOffPeriodFlag,jdbcType=NUMERIC},</if>
<if test="requestNo != null">request_no = #{requestNo,jdbcType=VARCHAR},</if>
<if test="redeemType != null">redeem_type = #{redeemType,jdbcType=NUMERIC},</if>
<if test="chargeType != null">charge_type = #{chargeType,jdbcType=NUMERIC},</if>
<if test="transactionCost != null">transaction_cost = #{transactionCost,jdbcType=NUMERIC},</if>
<if test="achievementFeeDiscount != null">achievement_fee_discount = #{achievementFeeDiscount,jdbcType=VARCHAR},</if>
<if test="investorId != null">investor_id = #{investorId,jdbcType=NUMERIC},</if>
<if test="sendSztFlag != null">send_szt_flag = #{sendSztFlag,jdbcType=NUMERIC},</if>
</set>
WHERE id = #{id,jdbcType=NUMERIC}
</update>
</mapper>
package com.htsc.pos.api.ta.forwardOrder.req;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* 【申赎转发】订单查询参数
*
* @author 022686
* @date 2025/11/9
*/
@Getter
@Setter
@ToString
public class PosDsOrderForwardReq implements Serializable {
private static final long serialVersionUID = -1651437776206088132L;
/**
* 所属管理人
*/
private Long managerId;
/**
* 申请日期
*/
private Date businessDate;
/**
* 产品代码
*/
private String prdtCode;
/**
* 产品名称
*/
private String prdtName;
/**
* 客户姓名
*/
private String invName;
/**
* 客户类别
*/
private Integer invCustType;
/**
* 客户证件类型
*/
private String invCertType;
/**
* 客户证件号码
*/
private String invCertNum;
/**
* 业务类型=>0:认购;1:申购;2:赎回
*/
private Integer businessType;
/**
* 交易金额
*/
private BigDecimal tradingAmount;
/**
* 交易份额
*/
private BigDecimal tradingShareNum;
/**
* 巨额赎回处理方式
* 0-放弃超额部分
* 1-继续赎回
*/
private Integer mintRedeemType;
/**
* 手续费折扣率
*/
private String chargeDiscount;
/**
* 订单创建人
*/
private String creator;
/**
* 订单创建人姓名
*/
private String creatorName;
/**
* 订单创建时间
*/
private Date createTime;
/**
* 订单修改人
*/
private String modifier;
/**
* 订单修改人姓名
*/
private String modifierName;
/**
* 订单修改时间
*/
private Date modifyTime;
/**
* 状态=>0:受理中;4:已撤销交易;5:TA确认成功;6:TA确认失败
* 与直销订单有所区别,因为转发订单,TA不在我们这里做,接收到订单即认为受理
*/
private Integer state;
/**
* 交易账号
*/
private String tradingAccount;
/**
* 是否有效=>0:无效;1:有效
*/
private Integer isValid;
/**
* 是否需冷静期:0.不需要;1.需要;
*/
private Integer coolOffPeriodFlag;
/**
* 流水号
*/
private String requestNo;
/**
* 赎回方式 1金额申请2份额申请3至指定金额业务申请
*/
private Integer redeemType;
/**
* 收费类型:1指定折扣2指定费用
*/
private Integer chargeType;
/**
* 交易费用
*/
private BigDecimal transactionCost;
/**
* 业绩报酬折扣
*/
private String achievementFeeDiscount;
/**
* 机构投资者Id
*/
private Long investorId;
/**
* 是否深证通发送完成 0-未发送,1-已发送
*/
private Integer sendSztFlag;
}
帮我检查代码
最新发布