From b394df082b875856884d6d02cce2a43c49ad6704 Mon Sep 17 00:00:00 2001 From: xin <1099200748@qq.com> Date: Fri, 30 May 2025 16:44:46 +0800 Subject: [PATCH] Merge branch 'feature/pc-base' into xin --- oying-system/src/main/resources/mapper/pc/category/PlatformCategoryMapper.xml | 34 ++++++++++++++++++++++++++++++++++ 1 files changed, 34 insertions(+), 0 deletions(-) diff --git a/oying-system/src/main/resources/mapper/pc/category/PlatformCategoryMapper.xml b/oying-system/src/main/resources/mapper/pc/category/PlatformCategoryMapper.xml new file mode 100644 index 0000000..be265d3 --- /dev/null +++ b/oying-system/src/main/resources/mapper/pc/category/PlatformCategoryMapper.xml @@ -0,0 +1,34 @@ +<?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.oying.modules.pc.category.mapper.PlatformCategoryMapper"> + <resultMap id="BaseResultMap" type="com.oying.modules.pc.category.domain.PlatformCategory"> + <id column="category_id" property="categoryId"/> + <result column="parent_id" property="parentId"/> + <result column="name" property="name"/> + <result column="level" property="level"/> + <result column="sort_weight" property="sortWeight"/> + <result column="icon_id" property="iconId"/> + <result column="status" property="status"/> + <result column="active" property="active"/> + <result column="create_by" property="createBy"/> + <result column="create_time" property="createTime"/> + <result column="update_by" property="updateBy"/> + <result column="update_time" property="updateTime"/> + </resultMap> + + <sql id="Base_Column_List"> + category_id, parent_id, name, level, sort_weight, icon_id, status, active, create_by, create_time, update_by, update_time + </sql> + + <select id="findAll" resultMap="BaseResultMap"> + select + <include refid="Base_Column_List"/> + from pc_platform_category + <where> + <if test="criteria.active != null"> + and active = #{criteria.active} + </if> + </where> + order by category_id desc + </select> +</mapper> \ No newline at end of file -- Gitblit v1.9.3