<?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.yifu.cloud.plus.v1.yifu.insurances.mapper.insurances.TInsuranceEkpMapper">

    <resultMap id="BaseResultMap" type="com.yifu.cloud.plus.v1.yifu.insurances.entity.TInsuranceEkp">
            <id property="id" column="id" jdbcType="VARCHAR"/>
            <result property="detailId" column="DETAIL_ID" jdbcType="VARCHAR"/>
            <result property="defaultSettleId" column="DEFAULT_SETTLE_ID" jdbcType="VARCHAR"/>
            <result property="deptNo" column="DEPT_NO" jdbcType="VARCHAR"/>
            <result property="deptName" column="DEPT_NAME" jdbcType="VARCHAR"/>
            <result property="customerName" column="CUSTOMER_NAME" jdbcType="VARCHAR"/>
            <result property="customerCode" column="CUSTOMER_CODE" jdbcType="VARCHAR"/>
            <result property="empName" column="EMP_NAME" jdbcType="VARCHAR"/>
            <result property="empIdcardNo" column="EMP_IDCARD_NO" jdbcType="VARCHAR"/>
            <result property="invoiceNo" column="INVOICE_NO" jdbcType="VARCHAR"/>
            <result property="happenDate" column="HAPPEN_DATE" jdbcType="TIMESTAMP"/>
            <result property="policyNo" column="POLICY_NO" jdbcType="VARCHAR"/>
            <result property="insuranceCompanyName" column="INSURANCE_COMPANY_NAME" jdbcType="VARCHAR"/>
            <result property="insuranceTypeName" column="INSURANCE_TYPE_NAME" jdbcType="VARCHAR"/>
            <result property="policyStart" column="POLICY_START" jdbcType="DATE"/>
            <result property="policyEnd" column="POLICY_END" jdbcType="DATE"/>
            <result property="buyStandard" column="BUY_STANDARD" jdbcType="VARCHAR"/>
            <result property="medicalQuota" column="MEDICAL_QUOTA" jdbcType="VARCHAR"/>
            <result property="dieDisableQuota" column="DIE_DISABLE_QUOTA" jdbcType="VARCHAR"/>
            <result property="actualPremium" column="ACTUAL_PREMIUM" jdbcType="VARCHAR"/>
            <result property="estimatePremium" column="ESTIMATE_PREMIUM" jdbcType="VARCHAR"/>
            <result property="settleMonth" column="SETTLE_MONTH" jdbcType="VARCHAR"/>
            <result property="interactiveType" column="INTERACTIVE_TYPE" jdbcType="VARCHAR"/>
            <result property="resendFlag" column="RESEND_FLAG" jdbcType="VARCHAR"/>
            <result property="createTime" column="CREATE_TIME" jdbcType="TIMESTAMP"/>
            <result property="pushTime" column="PUSH_TIME" jdbcType="TIMESTAMP"/>
			<result property="pushType" column="PUSH_TYPE" jdbcType="TINYINT"/>
			<result property="settleType" column="SETTLE_TYPE" jdbcType="VARCHAR"/>
			<result property="notResendMessage" column="NOT_RESEND_MESSAGE" jdbcType="VARCHAR"/>
			<result property="bpoFlag" column="BPO_FLAG" jdbcType="VARCHAR"/>
    </resultMap>

    <sql id="Base_Column_List">
        id,DETAIL_ID,DEFAULT_SETTLE_ID,
        DEPT_NO,DEPT_NAME,CUSTOMER_NAME,
        CUSTOMER_CODE,EMP_NAME,EMP_IDCARD_NO,
        INVOICE_NO,HAPPEN_DATE,POLICY_NO,
        INSURANCE_COMPANY_NAME,INSURANCE_TYPE_NAME,POLICY_START,
        POLICY_END,BUY_STANDARD,MEDICAL_QUOTA,
        DIE_DISABLE_QUOTA,ACTUAL_PREMIUM,ESTIMATE_PREMIUM,
        SETTLE_MONTH,INTERACTIVE_TYPE,RESEND_FLAG,
        CREATE_TIME,PUSH_TIME,PUSH_TYPE,SETTLE_TYPE,NOT_RESEND_MESSAGE,BPO_FLAG
    </sql>

	<select id="getEkpRefundList" resultMap="BaseResultMap">
		select
			<include refid="Base_Column_List"></include>
		from
			t_insurance_ekp
		where
			RESEND_FLAG = 0
		order by CREATE_TIME asc
	</select>


</mapper>
