|
@@ -16,6 +16,8 @@
|
|
|
REGULARRRCSRULE_NAME AS regularRrcsRuleName,
|
|
|
REGULARRRCSRULE_OUT AS regularRrcsRuleOut,
|
|
|
REGULARRRCSRULE_STAGE_ID AS regularRrcsRuleStageId,
|
|
|
+ BASE_WEIGHT*100 AS baseWeight,
|
|
|
+ EXEMPTION_WEIGHT*100 AS exemptionWeight,
|
|
|
REGULARRRCSRULE_INDEX AS regularRrcsRuleIndex,
|
|
|
CASE
|
|
|
WHEN REGULARRRCSRULE_STATE = '1' THEN '生效'
|
|
@@ -47,6 +49,8 @@
|
|
|
REGULARRRCSRULE_NAME,
|
|
|
REGULARRRCSRULE_OUT,
|
|
|
REGULARRRCSRULE_STAGE_ID,
|
|
|
+ BASE_WEIGHT,
|
|
|
+ EXEMPTION_WEIGHT,
|
|
|
REGULARRRCSRULE_INDEX,
|
|
|
REGULARRRCSRULE_STATE
|
|
|
)
|
|
@@ -60,6 +64,8 @@
|
|
|
#{model.regularRrcsRuleName},
|
|
|
#{model.regularRrcsRuleOut},
|
|
|
#{model.regularRrcsRuleStageId},
|
|
|
+ #{model.baseWeight}*0.01,
|
|
|
+ #{model.exemptionWeight}*0.01,
|
|
|
#{model.regularRrcsRuleIndex},
|
|
|
'1'
|
|
|
)
|
|
@@ -85,6 +91,12 @@
|
|
|
<if test="model.regularRrcsRuleStageId != null and model.regularRrcsRuleStageId != ''">
|
|
|
REGULARRRCSRULE_STAGE_ID = #{model.regularRrcsRuleStageId},
|
|
|
</if>
|
|
|
+ <if test="model.baseWeight != null and model.baseWeight != ''">
|
|
|
+ BASE_WEIGHT = #{model.baseWeight},
|
|
|
+ </if>
|
|
|
+ <if test="model.exemptionWeight != null and model.exemptionWeight != ''">
|
|
|
+ EXEMPTION_WEIGHT = #{model.exemptionWeight},
|
|
|
+ </if>
|
|
|
REGULARRRCSRULE_STATE = '1',
|
|
|
</set>
|
|
|
</trim>
|
|
@@ -117,6 +129,8 @@
|
|
|
REGULARRRCSRULE_NAME AS regularRrcsRuleName,
|
|
|
REGULARRRCSRULE_OUT AS regularRrcsRuleOut,
|
|
|
REGULARRRCSRULE_STAGE_ID AS regularRrcsRuleStageId,
|
|
|
+ BASE_WEIGHT AS baseWeight,
|
|
|
+ EXEMPTION_WEIGHT AS exemptionWeight,
|
|
|
REGULARRRCSRULE_INDEX AS regularRrcsRuleIndex,
|
|
|
CASE
|
|
|
WHEN REGULARRRCSRULE_STATE = '1' THEN '生效'
|
|
@@ -161,7 +175,8 @@
|
|
|
DETAILRULE_DATAIN AS detailRuleDataIn,
|
|
|
DETAILRULE_DATAOUT AS detailRuleDataOut,
|
|
|
DETAILRULE_INDEX AS detailRuleIndex,
|
|
|
- DETAILRULE_GETDATA AS detailRuleGetData
|
|
|
+ DETAILRULE_GETDATA AS detailRuleGetData,
|
|
|
+ EXEMPTION_RULES AS exemptionRules
|
|
|
FROM RWA_CALC_CONF_REGULARRRCSRULEDETAIL
|
|
|
<where>
|
|
|
<if test="model.detailRuleRegularRrcsRuleOut != null and model.detailRuleRegularRrcsRuleOut !=''">
|
|
@@ -184,7 +199,8 @@
|
|
|
DETAILRULE_DATAIN,
|
|
|
DETAILRULE_DATAOUT,
|
|
|
DETAILRULE_INDEX,
|
|
|
- DETAILRULE_GETDATA
|
|
|
+ DETAILRULE_GETDATA,
|
|
|
+ EXEMPTION_RULES
|
|
|
)
|
|
|
values(
|
|
|
#{model.calcIndex},
|
|
@@ -198,7 +214,8 @@
|
|
|
#{model.detailRuleDataIn},
|
|
|
#{model.detailRuleDataOut},
|
|
|
#{model.detailRuleIndex},
|
|
|
- #{model.detailRuleGetData}
|
|
|
+ #{model.detailRuleGetData},
|
|
|
+ #{model.exemptionRules}
|
|
|
)
|
|
|
</insert>
|
|
|
|
|
@@ -228,6 +245,9 @@
|
|
|
<if test="model.detailRuleGetData != null and model.detailRuleGetData != ''">
|
|
|
DETAILRULE_GETDATA = #{model.detailRuleGetData},
|
|
|
</if>
|
|
|
+ <if test="model.exemptionRules != null and model.exemptionRules != ''">
|
|
|
+ EXEMPTION_RULES = #{model.exemptionRules},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
</trim>
|
|
|
<where>
|
|
@@ -258,7 +278,8 @@
|
|
|
DETAILRULE_DATAIN AS detailRuleDataIn,
|
|
|
DETAILRULE_DATAOUT AS detailRuleDataOut,
|
|
|
DETAILRULE_INDEX AS detailRuleIndex,
|
|
|
- DETAILRULE_GETDATA AS detailRuleGetData
|
|
|
+ DETAILRULE_GETDATA AS detailRuleGetData,
|
|
|
+ EXEMPTION_RULES AS exemptionRules
|
|
|
FROM RWA_CALC_CONF_REGULARRRCSRULEDETAIL
|
|
|
<where>
|
|
|
<if test="model.detailRuleNo != null and model.detailRuleNo !=''">
|
|
@@ -282,6 +303,9 @@
|
|
|
<if test="model.detailRuleGetData != null and model.detailRuleGetData !=''">
|
|
|
and DETAILRULE_GETDATA = #{model.detailRuleGetData}
|
|
|
</if>
|
|
|
+ <if test="model.exemptionRules != null and model.exemptionRules !=''">
|
|
|
+ and EXEMPTION_RULES = #{model.exemptionRules}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|