TdBEtcSettlementSummarySMapper.xml
2.27 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.order.mapper.smapper.TdBEtcSettlementSummarySMapper">
<resultMap id="BaseResultMap" type="com.zteits.order.domain.TdBEtcSettlementSummary">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="file_name" jdbcType="VARCHAR" property="fileName" />
<result column="pl_out_no" jdbcType="VARCHAR" property="plOutNo" />
<result column="srv_name" jdbcType="VARCHAR" property="srvName" />
<result column="settlement_interval" jdbcType="INTEGER" property="settlementInterval" />
<result column="report_date" jdbcType="DATE" property="reportDate" />
<result column="settlement_time_range" jdbcType="VARCHAR" property="settlementTimeRange" />
<result column="total_fee" jdbcType="BIGINT" property="totalFee" />
<result column="act_fee" jdbcType="BIGINT" property="actFee" />
<result column="srv_fee" jdbcType="BIGINT" property="srvFee" />
<result column="refund_fee" jdbcType="BIGINT" property="refundFee" />
<result column="merch_total_fee" jdbcType="BIGINT" property="merchTotalFee" />
<result column="check_op_id" jdbcType="VARCHAR" property="checkOpId" />
<result column="data_state" jdbcType="INTEGER" property="dataState" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="create_emp_id" jdbcType="VARCHAR" property="createEmpId" />
<result column="create_emp_name" jdbcType="VARCHAR" property="createEmpName" />
<result column="create_date" jdbcType="TIMESTAMP" property="createDate" />
<result column="modfiy_empid" jdbcType="VARCHAR" property="modfiyEmpid" />
<result column="modfiy_empid_name" jdbcType="VARCHAR" property="modfiyEmpidName" />
<result column="modfiy_date" jdbcType="TIMESTAMP" property="modfiyDate" />
<result column="org_name" jdbcType="VARCHAR" property="orgName" />
</resultMap>
<!-- 获取上次成功的最后一天的一个数据 -->
<select id="getLastData" resultMap="BaseResultMap">
SELECT * FROM td_b_etc_settlement_summary ORDER BY report_date DESC LIMIT 1
</select>
</mapper>