From 2fcd97552d16718cc7997629fd637a73a5a4483f Mon Sep 17 00:00:00 2001 From: 郑永安 <zyazyz250@sina.com> Date: 星期一, 19 六月 2023 14:44:19 +0800 Subject: [PATCH] 删除 --- src/main/java/com/gk/firework/Mapper/mybatis/ProductCategoryMapper.xml | 30 ++++++++++++++++++++++++++++++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/gk/firework/Mapper/mybatis/ProductCategoryMapper.xml b/src/main/java/com/gk/firework/Mapper/mybatis/ProductCategoryMapper.xml new file mode 100644 index 0000000..02a5910 --- /dev/null +++ b/src/main/java/com/gk/firework/Mapper/mybatis/ProductCategoryMapper.xml @@ -0,0 +1,30 @@ +<?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.gk.firework.Mapper.ProductCategoryMapper" > + <resultMap id="BaseResultMap" type="com.gk.firework.Domain.ProductCategory" > + <!-- --> + <id column="id" property="id" jdbcType="BIGINT" /> + <result column="type" property="type" jdbcType="TINYINT" /> + <result column="code" property="code" jdbcType="VARCHAR" /> + <result column="name" property="name" jdbcType="VARCHAR" /> + <result column="parentname" property="parentname" jdbcType="VARCHAR" /> + <result column="content" property="content" jdbcType="VARCHAR" /> + <result column="remark" property="remark" jdbcType="VARCHAR" /> + <result column="flag" property="flag" jdbcType="TINYINT" /> + <result column="level" property="level" jdbcType="VARCHAR" /> + <result column="bitcode" property="bitcode" jdbcType="VARCHAR" /> + </resultMap> + <sql id="Base_Column_List" > + <!-- --> + id, type, code, name, parentname, content, remark, flag, `level` + </sql> + <select id="countOne" resultType="java.lang.Integer"> + select count(0) + from productcategory as pc1,productcategory as pc2 + where pc1.name = pc2.parentname + and pc1.name = #{type} + and pc2.name = #{secondaryType} + and pc2.level like concat("%",#{level},"%") + </select> + +</mapper> -- Gitblit v1.9.2