产品模块2
This commit is contained in:
@@ -1,35 +0,0 @@
|
||||
<!--
|
||||
<?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.tashow.cloud.product.mapper.CategoryMapper">
|
||||
<resultMap id="BaseResultMap" type="com.tashow.cloud.product.domain.Category">
|
||||
<id property="categoryId" column="category_id" />
|
||||
<result property="shopId" column="shop_id" />
|
||||
<result property="parentId" column="parent_id" />
|
||||
<result property="categoryName" column="category_name" />
|
||||
<result property="icon" column="icon" />
|
||||
<result property="pic" column="pic" />
|
||||
<result property="describe" column="describe" />
|
||||
<result property="tag" column="tag" />
|
||||
<result property="seq" column="seq" />
|
||||
<result property="status" column="status" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="creator" column="creator" />
|
||||
<result property="grade" column="grade" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updater" column="updater" />
|
||||
</resultMap>
|
||||
|
||||
<select id="listByParentId" resultType="com.tashow.cloud.product.domain.Category">
|
||||
select category_id,icon,category_name,`seq`,`status`,pic from tz_category where parent_id = #{parentId} and `status` = 1 order by seq
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<select id="tableCategory" resultType="com.tashow.cloud.product.domain.Category">
|
||||
select category_id ,parent_id ,category_name,pic,seq,status from tz_category where shop_id = #{shopId} order by seq
|
||||
</select>
|
||||
</mapper>
|
||||
-->
|
||||
@@ -8,7 +8,7 @@
|
||||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
||||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||
-->
|
||||
<!-- <select id="getProdPage1" resultType="com.tashow.cloud.product.dto.ProdDO">-->
|
||||
<!-- select * from tz_prod-->
|
||||
<!-- </select>-->
|
||||
<select id="getProdPageList" resultType="java.util.List">
|
||||
select * from tz_prod
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user