TdCCustUseDaySMapper.xml
1.66 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.TdCCustUseDaySMapper">
<resultMap id="BaseResultMap" type="com.zteits.pay.domain.TdCCustUseDay">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="cust_id" jdbcType="VARCHAR" property="custId" />
<result column="user_phone" jdbcType="VARCHAR" property="userPhone" />
<result column="deivce_type" jdbcType="INTEGER" property="deivceType" />
<result column="device_no" jdbcType="VARCHAR" property="deviceNo" />
<result column="data_state" jdbcType="INTEGER" property="dataState" />
<result column="create_empid" jdbcType="VARCHAR" property="createEmpid" />
<result column="create_date" jdbcType="TIMESTAMP" property="createDate" />
<result column="modfiy_empid" jdbcType="VARCHAR" property="modfiyEmpid" />
<result column="modfiy_date" jdbcType="TIMESTAMP" property="modfiyDate" />
<result column="org_id" jdbcType="BIGINT" property="orgId" />
<result column="org_name" jdbcType="VARCHAR" property="orgName" />
</resultMap>
<sql id="Base_Column_List">
id, cust_id, user_phone, deivce_type, device_no, data_state, create_empid, create_date,
modfiy_empid, modfiy_date, org_id, org_name
</sql>
<select id="selectCustUseDayByUserPhone" parameterType="com.zteits.pay.domain.TdCCustUseDay" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from td_c_cust_use_day
where user_phone = #{userPhone}
and date(modfiy_date) = date(#{modfiyDate})
and data_state = 1
</select>
</mapper>