TdClRuleDetailSMapper.xml 2.2 KB
<?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.zteits.bill.mapper.smapper.TdClRuleDetailSMapper">
  <resultMap id="BaseResultMap" type="com.zteits.bill.domain.TdClRuleDetail">
    <id column="id" jdbcType="BIGINT" property="id" />
    <result column="rule_id" jdbcType="VARCHAR" property="ruleId" />
    <result column="start_time" jdbcType="VARCHAR" property="startTime" />
    <result column="end_time" jdbcType="VARCHAR" property="endTime" />
    <result column="rule_type" jdbcType="INTEGER" property="ruleType" />
    <result column="section_fee_limit" jdbcType="BIGINT" property="sectionFeeLimit" />
    <result column="free_time" jdbcType="BIGINT" property="freeTime" />
    <result column="first_time" jdbcType="BIGINT" property="firstTime" />
    <result column="first_fee" jdbcType="BIGINT" property="firstFee" />
    <result column="loop1_per_time" jdbcType="BIGINT" property="loop1PerTime" />
    <result column="loop1_per_fee" jdbcType="BIGINT" property="loop1PerFee" />
    <result column="loop2_start" jdbcType="BIGINT" property="loop2Start" />
    <result column="loop2_per_time" jdbcType="BIGINT" property="loop2PerTime" />
    <result column="loop2_per_fee" jdbcType="BIGINT" property="loop2PerFee" />
    <result column="dn_flag" jdbcType="INTEGER" property="dnFlag" />
    <result column="retention_time" jdbcType="INTEGER" property="retentionTime" />
    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
  </resultMap>


  <sql id="Base_Column_List">
    id, rule_id, start_time, end_time, rule_type, section_fee_limit, free_time, first_time, 
    first_fee, loop1_per_time, loop1_per_fee, loop2_start, loop2_per_time, loop2_per_fee, 
    dn_flag, retention_time, create_time, update_time
  </sql>


    <!-- 根据计费规则id获取计费规则 -->
    <delete  id="deleteParkingSegmentChargingRuleDetail" parameterType="java.lang.String">
      delete from td_cl_rule_detail
    WHERE rule_id in (SELECT rule_id FROM td_cl_rule where rule_collect_id = #{ruleCollectId} )
    </delete >

</mapper>