<?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.SmsRechargeListMapper">

    <resultMap type="com.ssm.manage.entity.SmsRechargeList" id="baseMap">
        <result property="id" column="id" jdbcType="BIGINT"/>
        <result property="smsNum" column="sms_num" jdbcType="VARCHAR"/>
        <result property="money" column="money" jdbcType="DECIMAL"/>
        <result property="inputId" column="input_id" jdbcType="BIGINT"/>
        <result property="inputName" column="input_name" jdbcType="VARCHAR"/>
        <result property="inputDate" column="input_date" jdbcType="TIMESTAMP"/>
        <result property="auditId" column="audit_id" jdbcType="BIGINT"/>
        <result property="auditName" column="audit_name" jdbcType="VARCHAR"/>
        <result property="auditDate" column="audit_date" jdbcType="TIMESTAMP"/>
        <result property="smsNumber" column="sms_number" jdbcType="INTEGER"/>
        <result property="rechargeTypeId" column="recharge_type_id" jdbcType="BIGINT"/>
        <result property="smsTypeName" column="recharge_type_id" jdbcType="BIGINT"/>
        <result property="storeNum" column="store_num" jdbcType="VARCHAR"/>
        <result property="state" column="state" jdbcType="INTEGER"/>
        <result property="smsType" column="sms_type" jdbcType="INTEGER"/>
        <result property="updateDate" column="update_date" jdbcType="TIMESTAMP"/>

    </resultMap>

    <select id="getDocNum" parameterType="com.ssm.manage.query.SmsRechargeListRequest" resultMap="baseMap">
        select * from sms_recharge_list
        where  sms_num like concat(#{selectDate,jdbcType = VARCHAR},'%')
        order by sms_num desc
    </select>


</mapper>

