<?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.ssm.manage.mapper.CancelDebtListMapper">

    <resultMap type="com.ssm.manage.entity.CancelDebtList" id="CancelDebtListMap">
        <result property="id" column="id" jdbcType="BIGINT"/>
        <result property="storeId" column="store_id" jdbcType="BIGINT"/>
        <result property="storeName" column="store_name" jdbcType="VARCHAR"/>
        <result property="memberId" column="member_id" jdbcType="BIGINT"/>
        <result property="memberName" column="member_name" jdbcType="VARCHAR"/>
        <result property="memberIdentityCard" column="member_identity_card" jdbcType="VARCHAR"/>
        <result property="mobilePhone" column="mobile_phone" jdbcType="VARCHAR"/>
        <result property="docId" column="doc_id" jdbcType="BIGINT"/>
        <result property="docNum" column="doc_num" jdbcType="VARCHAR"/>
        <result property="docType" column="doc_type" jdbcType="VARCHAR"/>
        <result property="docDate" column="doc_date" jdbcType="TIMESTAMP"/>
        <result property="tradeId" column="trade_id" jdbcType="INTEGER"/>
        <result property="tradeName" column="trade_name" jdbcType="VARCHAR"/>
        <result property="tradeMoney" column="trade_money" jdbcType="NUMERIC"/>
        <result property="debtMoney" column="debt_money" jdbcType="NUMERIC"/>
        <result property="salesAchievement" column="sales_achievement" jdbcType="NUMERIC"/>
        <result property="salesCommission" column="sales_commission" jdbcType="NUMERIC"/>
        <result property="cardSalesAchievement" column="card_sales_achievement" jdbcType="NUMERIC"/>
        <result property="cardSalesCommission" column="card_sales_commission" jdbcType="NUMERIC"/>
        <result property="typeRatio" column="type_ratio" jdbcType="NUMERIC"/>
        <result property="saleOneNumber" column="sale_one_number" jdbcType="VARCHAR"/>
        <result property="saleTwoNumber" column="sale_two_number" jdbcType="VARCHAR"/>
        <result property="saleThreeNumber" column="sale_three_number" jdbcType="VARCHAR"/>
        <result property="saleFourNumber" column="sale_four_number" jdbcType="VARCHAR"/>
        <result property="saleOneStaffId" column="sale_one_staff_id" jdbcType="INTEGER"/>
        <result property="saleTwoStaffId" column="sale_two_staff_id" jdbcType="INTEGER"/>
        <result property="saleThreeStaffId" column="sale_three_staff_id" jdbcType="INTEGER"/>
        <result property="saleFourStaffId" column="sale_four_staff_id" jdbcType="INTEGER"/>
        <result property="saleOneStaffName" column="sale_one_staff_name" jdbcType="VARCHAR"/>
        <result property="saleTwoStaffName" column="sale_two_staff_name" jdbcType="VARCHAR"/>
        <result property="saleThreeStaffName" column="sale_three_staff_name" jdbcType="VARCHAR"/>
        <result property="saleFourStaffName" column="sale_four_staff_name" jdbcType="VARCHAR"/>
        <result property="saleOneIdentity" column="sale_one_identity" jdbcType="VARCHAR"/>
        <result property="saleTwoIdentity" column="sale_two_identity" jdbcType="VARCHAR"/>
        <result property="saleThreeIdentity" column="sale_three_identity" jdbcType="VARCHAR"/>
        <result property="saleFourIdentity" column="sale_four_identity" jdbcType="VARCHAR"/>
        <result property="saleOneRatio" column="sale_one_ratio" jdbcType="NUMERIC"/>
        <result property="saleTwoRatio" column="sale_two_ratio" jdbcType="NUMERIC"/>
        <result property="saleThreeRatio" column="sale_three_ratio" jdbcType="NUMERIC"/>
        <result property="saleFourRatio" column="sale_four_ratio" jdbcType="NUMERIC"/>
        <result property="manageStaffId" column="manage_staff_id" jdbcType="BIGINT"/>
        <result property="manageStaffName" column="manage_staff_name" jdbcType="VARCHAR"/>
        <result property="manageIdentity" column="manage_identity" jdbcType="VARCHAR"/>
        <result property="manageNumber" column="manage_number" jdbcType="VARCHAR"/>
        <result property="accountId" column="account_id" jdbcType="BIGINT"/>
        <result property="state" column="state" jdbcType="INTEGER"/>
        <result property="repayCount" column="repay_count" jdbcType="INTEGER"/>
        <result property="repayConsumeCount" column="repay_consume_count" jdbcType="INTEGER"/>
        <result property="cancelMoney" column="cancel_money" jdbcType="NUMERIC"/>
        <result property="cancelNum" column="cancel_num" jdbcType="INTEGER"/>
        <result property="courseRestCount" column="course_rest_count" jdbcType="INTEGER"/>
        <result property="courseConsumeCount" column="course_consume_count" jdbcType="INTEGER"/>
        <result property="courseRestPrice" column="course_rest_price" jdbcType="NUMERIC"/>
        <result property="courseConsumePrice" column="course_consume_price" jdbcType="NUMERIC"/>
        <result property="debtId" column="debt_id" jdbcType="BIGINT"/>

        <result property="updateId" column="update_id" jdbcType="BIGINT"/>
        <result property="updateName" column="update_name" jdbcType="VARCHAR"/>
        <result property="updateDate" column="update_date" jdbcType="TIMESTAMP"/>
        <result property="insertId" column="insert_id" jdbcType="BIGINT"/>
        <result property="insertName" column="insert_name" jdbcType="VARCHAR"/>
        <result property="insertDate" column="insert_date" jdbcType="TIMESTAMP"/>
        <result property="orderCode" column="order_code" jdbcType="VARCHAR"/>

        <result property="beforePrice" column="before_rice" jdbcType="NUMERIC"/>
        <result property="beforeRestMoney" column="before_rest_money" jdbcType="NUMERIC"/>
        <result property="beforeConsumeMoney" column="before_consume_money" jdbcType="NUMERIC"/>
        <result property="beforeGiftRestMoney" column="before_gift_rest_money" jdbcType="NUMERIC"/>
        <result property="beforeGiftConsumeMoney" column="before_gift_consume_money" jdbcType="NUMERIC"/>
        <result property="beforeRestCount" column="before_rest_count" jdbcType="INTEGER"/>
        <result property="beforeConsumeCount" column="before_consume_count" jdbcType="INTEGER"/>

        <result property="backPrice" column="back_rice" jdbcType="NUMERIC"/>
        <result property="backRestMoney" column="back_rest_money" jdbcType="NUMERIC"/>
        <result property="backConsumeMoney" column="back_consume_money" jdbcType="NUMERIC"/>
        <result property="backGiftRestMoney" column="back_gift_rest_money" jdbcType="NUMERIC"/>
        <result property="backGiftConsumeMoney" column="back_gift_consume_money" jdbcType="NUMERIC"/>
        <result property="backRestCount" column="back_rest_count" jdbcType="INTEGER"/>
        <result property="backConsumeCount" column="back_consume_count" jdbcType="INTEGER"/>
    </resultMap>
    <delete id="deleteByDocNum" parameterType="com.ssm.manage.entity.CancelDebtList">
        delete from cancel_debt_list where doc_num=#{docNum}
    </delete>

</mapper>

