<select id="queryById" resultType="com.imooc.mall.pojo.Category">
select id,parent_id,name,status,sort_order,create_time,update_time from mall_category where id =#{id}
</select>
mybatis.xml<?xml version="1.0" encoding="UTF-8" ?><select id="queryById" resultType="com.imooc.mall.pojo.Category"> select id,parent_id,name,status,sort_order,create_time,update_time from mall_category where id =#{id}</select>