<?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.steerinfo.ems.tcmcodeinfo.mapper.TCmCodeInfoMapper">
    <resultMap id="TCmMap" type="com.steerinfo.ems.tcmcodeinfo.model.TCmCodeInfo">
     <id column="TYPECODE" jdbcType="VARCHAR" property="typeCode" />
     <result column="TYPENAME" jdbcType="VARCHAR" property="typeName" />
     <result column="TYPEDESC" jdbcType="VARCHAR" property="typeDesc" />
     <result column="EFFECTTIME" jdbcType="VARCHAR" property="effectTime" />
     <result column="EXPIRETIME" jdbcType="VARCHAR" property="expireTime" />
     <result column="REC_CREATTIME" jdbcType="VARCHAR" property="recCreatTime" />
     <result column="REC_DESC" jdbcType="VARCHAR" property="recDesc" />
     <result column="STATE" jdbcType="VARCHAR" property="state" />
     <result column="CLASSIFY" jdbcType="VARCHAR" property="classify" />
     <result column="CLASSIFY1" jdbcType="VARCHAR" property="classify1" />
     <result column="CLASSIFY2" jdbcType="VARCHAR" property="classify2" />
     <result column="CLASSIFY3" jdbcType="VARCHAR" property="classify3" />
     <result column="CLASSIFY3" jdbcType="VARCHAR" property="classify3" />
     <result column="CLASSIFY4" jdbcType="VARCHAR" property="classify4" />
     <result column="BCODE" jdbcType="VARCHAR" property="bcode" />
     <result column="bdesc1" jdbcType="VARCHAR" property="bdesc1" />
     <result column="bdesc2" jdbcType="VARCHAR" property="bdesc2" />
 </resultMap>

    <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="TCmMap">
           SELECT  TYPENAME,TYPEDESC,EFFECTTIME,EXPIRETIME
            FROM T_CM_CODEINFO
            where TYPENAME = #{typeName,jdbcType=VARCHAR}
    </select>


</mapper>