38 lines
1.7 KiB
XML
38 lines
1.7 KiB
XML
|
|
<?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.xhpc.card.mapper.XhpcCardMapper">
|
||
|
|
|
||
|
|
<resultMap type="com.xhpc.common.domain.XhpcIcCardInfo" id="XhpcIcCardInfoResult">
|
||
|
|
<result column="ic_card_info_id" property="icCardInfoId"/>
|
||
|
|
<result column="t_iccard_info_id" property="tIccardInfoId"/>
|
||
|
|
<result column="use_status" property="useStatus"/>
|
||
|
|
<result column="create_time" property="createTime"/>
|
||
|
|
<result column="tenant_id" property="tenantId"/>
|
||
|
|
<result column="grant_operator_id" property="grantOperatorId"/>
|
||
|
|
<result column="user_id" property="userId"/>
|
||
|
|
<result column="user_account" property="userName"/>
|
||
|
|
<result column="user_type" property="userType"/>
|
||
|
|
<result column="user_name" property="userName"/>
|
||
|
|
<result column="user_id_card" property="userIdCard"/>
|
||
|
|
<result column="user_age" property="userAge"/>
|
||
|
|
<result column="user_sex" property="userSex"/>
|
||
|
|
<result column="user_phone" property="userPhone"/>
|
||
|
|
<result column="user_vehicle" property="userVehicle"/>
|
||
|
|
<result column="del_flag" property="delFlag"/>
|
||
|
|
</resultMap>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
<select id="getIccardInfoCardno" resultType="com.xhpc.common.domain.IccardInfo">
|
||
|
|
select * from t_iccard_info where cardNo=#{cardno} order by createTime desc limit 1
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<select id="getXhpcIcCardInfo" resultMap="XhpcIcCardInfoResult">
|
||
|
|
select * from xhpc_ic_card_info where t_iccard_info_id=#{tIccardInfoId} and del_flag=0 order by create_time desc limit 1
|
||
|
|
</select>
|
||
|
|
|
||
|
|
|
||
|
|
</mapper>
|