|
@@ -4,12 +4,13 @@
|
|
|
|
|
|
<insert id="saveScoringRules" parameterType="api.common.pojo.po.scene.ScoringRulesPO">
|
|
<insert id="saveScoringRules" parameterType="api.common.pojo.po.scene.ScoringRulesPO">
|
|
insert into simulation.scoring_rules
|
|
insert into simulation.scoring_rules
|
|
- (rules_id,rules_code,rule_name,rule_description,rule_details,
|
|
|
|
- create_user_id,create_time,modify_user_id,modify_time,
|
|
|
|
- is_deleted,share)
|
|
|
|
- values (#{rulesId,jdbcType=VARCHAR},#{rulesCode,jdbcType=VARCHAR},#{ruleName,jdbcType=VARCHAR},#{ruleDescription,jdbcType=VARCHAR},#{ruleDetails},
|
|
|
|
- #{createUserId,jdbcType=VARCHAR},#{createTime},#{modifyUserId,jdbcType=VARCHAR},#{modifyTime},
|
|
|
|
- #{isDeleted,jdbcType=VARCHAR}, #{share,jdbcType=VARCHAR})
|
|
|
|
|
|
+ (rules_id, rules_code, rule_name, rule_description, rule_details,
|
|
|
|
+ create_user_id, create_time, modify_user_id, modify_time,
|
|
|
|
+ is_deleted, share)
|
|
|
|
+ values (#{rulesId,jdbcType=VARCHAR}, #{rulesCode,jdbcType=VARCHAR}, #{ruleName,jdbcType=VARCHAR},
|
|
|
|
+ #{ruleDescription,jdbcType=VARCHAR}, #{ruleDetails},
|
|
|
|
+ #{createUserId,jdbcType=VARCHAR}, #{createTime}, #{modifyUserId,jdbcType=VARCHAR}, #{modifyTime},
|
|
|
|
+ #{isDeleted,jdbcType=VARCHAR}, #{share,jdbcType=VARCHAR})
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
@@ -83,10 +84,19 @@
|
|
<if test="share != null and share != ''">
|
|
<if test="share != null and share != ''">
|
|
and share=#{share,jdbcType=VARCHAR}
|
|
and share=#{share,jdbcType=VARCHAR}
|
|
</if>
|
|
</if>
|
|
-
|
|
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
+ <select id="querySelfOnly" parameterType="api.common.pojo.param.scene.ScoringRulesParam"
|
|
|
|
+ resultType="api.common.pojo.po.scene.ScoringRulesPO">
|
|
|
|
+ select rules_id, rule_name
|
|
|
|
+ from simulation.scoring_rules
|
|
|
|
+ where is_deleted = '0'
|
|
|
|
+ and share = '0'
|
|
|
|
+ and rule_name = #{ruleName}
|
|
|
|
+ and create_user_id = #{createUserId}
|
|
|
|
+ </select>
|
|
|
|
+
|
|
|
|
|
|
<update id="updateScoringRules" parameterType="api.common.pojo.po.scene.ScoringRulesPO">
|
|
<update id="updateScoringRules" parameterType="api.common.pojo.po.scene.ScoringRulesPO">
|
|
update simulation.scoring_rules
|
|
update simulation.scoring_rules
|
|
@@ -138,15 +148,12 @@
|
|
</update>
|
|
</update>
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
<select id="queryCsbById" parameterType="api.common.pojo.param.scene.ScoringRulesParam"
|
|
<select id="queryCsbById" parameterType="api.common.pojo.param.scene.ScoringRulesParam"
|
|
resultType="java.lang.Integer">
|
|
resultType="java.lang.Integer">
|
|
- select
|
|
|
|
- COUNT(sublist_id)
|
|
|
|
|
|
+ select COUNT(sublist_id)
|
|
from simulation.scene_package_sublist
|
|
from simulation.scene_package_sublist
|
|
- where
|
|
|
|
- is_deleted = '0'
|
|
|
|
- and package_and_rules = #{rulesId,jdbcType=VARCHAR}
|
|
|
|
|
|
+ where is_deleted = '0'
|
|
|
|
+ and package_and_rules = #{rulesId,jdbcType=VARCHAR}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
</mapper>
|
|
</mapper>
|