TdCBatteryRechargeCardLogSMapper.xml
2.04 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.pay.mapper.smapper.TdCBatteryRechargeCardLogSMapper">
<resultMap id="BaseResultMap" type="com.zteits.pay.domain.TdCBatteryRechargeCardLog">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="card_no" jdbcType="VARCHAR" property="cardNo" />
<result column="cust_id" jdbcType="VARCHAR" property="custId" />
<result column="user_phone" jdbcType="VARCHAR" property="userPhone" />
<result column="card_charge_type" jdbcType="INTEGER" property="cardChargeType" />
<result column="card_state" jdbcType="INTEGER" property="cardState" />
<result column="org_id" jdbcType="BIGINT" property="orgId" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="data_state" jdbcType="INTEGER" property="dataState" />
<result column="create_empid" 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_emp_name" jdbcType="VARCHAR" property="modfiyEmpName" />
<result column="modfiy_date" jdbcType="TIMESTAMP" property="modfiyDate" />
</resultMap>
<sql id="Base_Column_List">
id, card_no, cust_id, user_phone, card_charge_type, card_state, org_id, remark, data_state,
create_empid, create_emp_name, create_date, modfiy_empid, modfiy_emp_name, modfiy_date
</sql>
<select id="queryTdCBatteryRechargeCardLogList" parameterType="com.zteits.clouds.api.dto.pay.param.battery.BatteryRechargeCardLogPageQueryRequest" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from td_c_battery_recharge_card_log
where card_no = #{cardNo,jdbcType=VARCHAR}
and org_id = #{orgId,jdbcType=BIGINT}
order by modfiy_date desc
</select>
</mapper>