|
@@ -0,0 +1,20 @@
|
|
|
+<?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.zhentao.mapper.GoodsMapper">
|
|
|
+
|
|
|
+ <resultMap id="BaseResultMap" type="com.zhentao.pojo.Goods">
|
|
|
+ <id property="id" column="id" jdbcType="INTEGER"/>
|
|
|
+ <result property="goodsName" column="goods_name" jdbcType="VARCHAR"/>
|
|
|
+ <result property="descriptions" column="descriptions" jdbcType="VARCHAR"/>
|
|
|
+ <result property="goodsImg" column="goods_img" jdbcType="VARCHAR"/>
|
|
|
+ <result property="content" column="content" jdbcType="VARCHAR"/>
|
|
|
+ <result property="createdTime" column="created_time" jdbcType="TIMESTAMP"/>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <sql id="Base_Column_List">
|
|
|
+ id,goods_name,descriptions,
|
|
|
+ goods_img,content,created_time
|
|
|
+ </sql>
|
|
|
+</mapper>
|