<?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.zjt.mapper.typeMapper" >
  <resultMap id="BaseResultMap" type="com.zjt.entity.type" >
    <id column="id" property="id" jdbcType="INTEGER" />
    <result column="material_type_code" property="materialTypeCode" jdbcType="VARCHAR" />
    <result column="material_type_name" property="materialTypeName" jdbcType="VARCHAR" />
    <result column="p_material_type" property="pMaterialType" jdbcType="VARCHAR" />
    <result column="remark" property="remark" jdbcType="VARCHAR" />
    <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
    <result column="creater" property="creater" jdbcType="VARCHAR" />
    <result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
    <result column="updater" property="updater" jdbcType="VARCHAR" />
    <result column="status" property="status" jdbcType="TINYINT" />
    <result column="delete_flag" property="deleteFlag" jdbcType="TINYINT" />
  </resultMap>
  <sql id="Base_Column_List" >
    id, material_type_code, material_type_name, p_material_type, remark, create_time, 
    creater, update_time, updater, status, delete_flag
  </sql>
  <select id="selectAll" resultMap="BaseResultMap">
    select
    <include refid="Base_Column_List" />
    from bas_material_type
  </select>
</mapper>