md
This commit is contained in:
parent
d0c9dc80b7
commit
e5d4374ee1
@ -41,6 +41,10 @@ public class EmisCommissionQuote extends BaseEntity
|
||||
private String quoteCode;
|
||||
/* 提成方案名称 */
|
||||
private String quoteName;
|
||||
/* 所属线路代码 */
|
||||
private String transLineCode;
|
||||
/* 产品类型代码 */
|
||||
private String prodCode;
|
||||
/* 起始国 */
|
||||
private String fromCountry;
|
||||
/* 目的国家 */
|
||||
@ -71,6 +75,10 @@ public class EmisCommissionQuote extends BaseEntity
|
||||
// ---- 非数据库字段
|
||||
private String fromCountryName;
|
||||
private String countryName;
|
||||
/* 所属线路名称 */
|
||||
private String transLine;
|
||||
/* 产品类型名称 */
|
||||
private String prodName;
|
||||
|
||||
private List<EmisCommissionExpression> exprList;
|
||||
|
||||
|
||||
@ -8,6 +8,8 @@
|
||||
<result property="quoteId" column="quote_id" />
|
||||
<result property="quoteCode" column="quote_code" />
|
||||
<result property="quoteName" column="quote_name" />
|
||||
<result property="transLineCode" column="trans_line_code" />
|
||||
<result property="prodCode" column="prod_code" />
|
||||
<result property="fromCountry" column="from_country" />
|
||||
<result property="country" column="country" />
|
||||
<result property="feeType" column="fee_type" />
|
||||
@ -21,14 +23,17 @@
|
||||
<result property="endDate" column="end_date" />
|
||||
<result property="priorityLevel" column="priority_level" />
|
||||
|
||||
<association property="prodName" column="prod_code" select="com.xdadan.erp.emis.mapper.EmisBaseMapper.selectProdNameByCode"/>
|
||||
<association property="transLine" column="trans_line_code" select="com.xdadan.erp.emis.mapper.EmisBaseMapper.selectLineNameByCode"/>
|
||||
<association property="fromCountryName" column="from_country" select="com.xdadan.erp.emis.mapper.EmisBaseMapper.selectCountryNameByCode"/>
|
||||
<association property="countryName" column="country" select="com.xdadan.erp.emis.mapper.EmisBaseMapper.selectCountryNameByCode"/>
|
||||
|
||||
<association property="exprList" column="quote_id" select="com.xdadan.erp.emis.mapper.EmisCommissionExpressionMapper.selectExprListByQuoteId"/>
|
||||
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisCommissionQuoteVo">
|
||||
select quote_id, quote_code, quote_name, from_country, country, fee_type, calc_type, post_type, trans_type, bl_open, emp_code, emp_name, start_date, end_date, priority_level, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_commission_quote
|
||||
select quote_id, quote_code, quote_name, trans_line_code, prod_code, from_country, country, fee_type, calc_type, post_type, trans_type, bl_open, emp_code, emp_name, start_date, end_date, priority_level, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_commission_quote
|
||||
</sql>
|
||||
|
||||
<select id="selectEmisCommissionQuoteList" parameterType="EmisCommissionQuote" resultMap="EmisCommissionQuoteResult">
|
||||
@ -94,7 +99,7 @@
|
||||
</select>
|
||||
|
||||
<select id="selectEmisCommissionQuoteByQuoteId" parameterType="Long" resultMap="EmisCommissionQuoteResult">
|
||||
select quote_id, quote_code, quote_name, from_country, country, fee_type, calc_type, post_type, trans_type, bl_open, emp_code, emp_name, start_date, end_date, priority_level, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||
select quote_id, quote_code, quote_name, trans_line_code, prod_code, from_country, country, fee_type, calc_type, post_type, trans_type, bl_open, emp_code, emp_name, start_date, end_date, priority_level, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
|
||||
from emis_commission_quote a
|
||||
where a.quote_id = #{quoteId}
|
||||
</select>
|
||||
@ -102,9 +107,10 @@
|
||||
<insert id="insertEmisCommissionQuote" parameterType="EmisCommissionQuote" useGeneratedKeys="true" keyProperty="quoteId">
|
||||
insert into emis_commission_quote
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="quoteId != null">quote_id,</if>
|
||||
<if test="quoteCode != null and quoteCode != ''">quote_code,</if>
|
||||
<if test="quoteName != null and quoteName != ''">quote_name,</if>
|
||||
<if test="transLineCode != null and transLineCode != ''">trans_line_code,</if>
|
||||
<if test="prodCode != null and prodCode != ''">prod_code,</if>
|
||||
<if test="fromCountry != null and fromCountry != ''">from_country,</if>
|
||||
<if test="country != null and country != ''">country,</if>
|
||||
<if test="feeType != null and feeType != ''">fee_type,</if>
|
||||
@ -128,9 +134,10 @@
|
||||
<if test="updateSite != null and updateSite != ''">update_site,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="quoteId != null">#{quoteId},</if>
|
||||
<if test="quoteCode != null and quoteCode != ''">#{quoteCode},</if>
|
||||
<if test="quoteName != null and quoteName != ''">#{quoteName},</if>
|
||||
<if test="transLineCode != null and transLineCode != ''">#{transLineCode},</if>
|
||||
<if test="prodCode != null and prodCode != ''">#{prodCode},</if>
|
||||
<if test="fromCountry != null and fromCountry != ''">#{fromCountry},</if>
|
||||
<if test="country != null and country != ''">#{country},</if>
|
||||
<if test="feeType != null and feeType != ''">#{feeType},</if>
|
||||
@ -160,6 +167,8 @@
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="quoteCode != null and quoteCode != ''">quote_code = #{quoteCode},</if>
|
||||
<if test="quoteName != null and quoteName != ''">quote_name = #{quoteName},</if>
|
||||
<if test="transLineCode != null and transLineCode != ''">trans_line_code = #{transLineCode},</if>
|
||||
<if test="prodCode != null and prodCode != ''">prod_code = #{prodCode},</if>
|
||||
<if test="fromCountry != null and fromCountry != ''">from_country = #{fromCountry},</if>
|
||||
<if test="country != null and country != ''">country = #{country},</if>
|
||||
<if test="feeType != null and feeType != ''">fee_type = #{feeType},</if>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user