CustomerWxgzhExtMapper.xml 1.53 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="cn.runsa.crmapp.customer.mapper.CustomerWxgzhExtMapper">
	<resultMap id="BaseResultMap" type="cn.runsa.crmapp.customer.entity.CustomerWxgzh">
		<id column="GZH_ID" property="gzhId" jdbcType="VARCHAR" />
		<id column="OPEN_ID" property="openId" jdbcType="VARCHAR" />
		<result column="CST_ID" property="cstId" jdbcType="BIGINT" />
		<result column="UNION_ID" property="unionId" jdbcType="VARCHAR" />
		<result column="SUBSCRIBE" property="subscribe" jdbcType="BIT" />
		<result column="NICK_NAME" property="nickName" jdbcType="VARCHAR" />
		<result column="SEX" property="sex" jdbcType="TINYINT" />
		<result column="CITY" property="city" jdbcType="VARCHAR" />
		<result column="PROVINCE" property="province" jdbcType="VARCHAR" />
		<result column="COUNTRY" property="country" jdbcType="VARCHAR" />
		<result column="HEAD_IMG" property="headImg" jdbcType="VARCHAR" />
		<result column="SUBS_TIME" property="subsTime" jdbcType="TIMESTAMP" />
		<result column="LAST_ACTION" property="lastAction" jdbcType="BIGINT" />
		<result column="REC_TIME" property="recTime" jdbcType="TIMESTAMP" />
	</resultMap>
	<select id="selectByUnionId" resultMap="BaseResultMap">
		select * from crm_customer_weixin where
		UNION_ID=#{unionid,jdbcType=VARCHAR}
	</select>
	
	<select id="selectByCstID" resultMap="BaseResultMap">
		select * from crm_customer_weixin where
		CST_ID=#{cstid,jdbcType=VARCHAR}
	</select>
</mapper>