111
This commit is contained in:
1 parent
81eca8933a
commit
345f906c35
540 files changed
+494222
-90
No files matched your search
@@ -0,0 +1,124 @@
|
||||
<?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.luqj.common.mapper.ComCategoryMapper">
|
||||
|
||||
<resultMap type="ComCategory" id="ComCategoryResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="name" column="name" />
|
||||
<result property="parentId" column="parent_id" />
|
||||
<result property="parentIds" column="parent_ids" />
|
||||
<result property="projectType" column="project_type" />
|
||||
<result property="sortNum" column="sort_num" />
|
||||
<result property="iconUrl" column="icon_url" />
|
||||
<result property="picUrl" column="pic_url" />
|
||||
<result property="hasLeaf" column="has_leaf" />
|
||||
<result property="homeShow" column="home_show" />
|
||||
<result property="level" column="level" />
|
||||
<result property="flag" column="flag" />
|
||||
<result property="description" column="description" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="status" column="status" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectComCategoryVo">
|
||||
select id, name, parent_id, parent_ids, project_type, sort_num, icon_url, pic_url, has_leaf, home_show, level, flag, description, create_time, update_time, status from com_category
|
||||
</sql>
|
||||
|
||||
<select id="selectComCategoryList" parameterType="ComCategory" resultMap="ComCategoryResult">
|
||||
<include refid="selectComCategoryVo"/>
|
||||
<where>
|
||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||
<if test="parentId != null "> and parent_id = #{parentId}</if>
|
||||
<if test="parentIds != null and parentIds != ''"> and parent_ids = #{parentIds}</if>
|
||||
<if test="projectType != null "> and project_type = #{projectType}</if>
|
||||
<if test="sortNum != null "> and sort_num = #{sortNum}</if>
|
||||
<if test="iconUrl != null and iconUrl != ''"> and icon_url = #{iconUrl}</if>
|
||||
<if test="picUrl != null and picUrl != ''"> and pic_url = #{picUrl}</if>
|
||||
<if test="hasLeaf != null "> and has_leaf = #{hasLeaf}</if>
|
||||
<if test="homeShow != null "> and home_show = #{homeShow}</if>
|
||||
<if test="level != null "> and level = #{level}</if>
|
||||
<if test="flag != null "> and flag = #{flag}</if>
|
||||
<if test="description != null and description != ''"> and description = #{description}</if>
|
||||
<if test="status != null "> and status = #{status}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectComCategoryById" parameterType="Long" resultMap="ComCategoryResult">
|
||||
<include refid="selectComCategoryVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertComCategory" parameterType="ComCategory" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into com_category
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="name != null">name,</if>
|
||||
<if test="parentId != null">parent_id,</if>
|
||||
<if test="parentIds != null">parent_ids,</if>
|
||||
<if test="projectType != null">project_type,</if>
|
||||
<if test="sortNum != null">sort_num,</if>
|
||||
<if test="iconUrl != null">icon_url,</if>
|
||||
<if test="picUrl != null">pic_url,</if>
|
||||
<if test="hasLeaf != null">has_leaf,</if>
|
||||
<if test="homeShow != null">home_show,</if>
|
||||
<if test="level != null">level,</if>
|
||||
<if test="flag != null">flag,</if>
|
||||
<if test="description != null">description,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="status != null">status,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="name != null">#{name},</if>
|
||||
<if test="parentId != null">#{parentId},</if>
|
||||
<if test="parentIds != null">#{parentIds},</if>
|
||||
<if test="projectType != null">#{projectType},</if>
|
||||
<if test="sortNum != null">#{sortNum},</if>
|
||||
<if test="iconUrl != null">#{iconUrl},</if>
|
||||
<if test="picUrl != null">#{picUrl},</if>
|
||||
<if test="hasLeaf != null">#{hasLeaf},</if>
|
||||
<if test="homeShow != null">#{homeShow},</if>
|
||||
<if test="level != null">#{level},</if>
|
||||
<if test="flag != null">#{flag},</if>
|
||||
<if test="description != null">#{description},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateComCategory" parameterType="ComCategory">
|
||||
update com_category
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="name != null">name = #{name},</if>
|
||||
<if test="parentId != null">parent_id = #{parentId},</if>
|
||||
<if test="parentIds != null">parent_ids = #{parentIds},</if>
|
||||
<if test="projectType != null">project_type = #{projectType},</if>
|
||||
<if test="sortNum != null">sort_num = #{sortNum},</if>
|
||||
<if test="iconUrl != null">icon_url = #{iconUrl},</if>
|
||||
<if test="picUrl != null">pic_url = #{picUrl},</if>
|
||||
<if test="hasLeaf != null">has_leaf = #{hasLeaf},</if>
|
||||
<if test="homeShow != null">home_show = #{homeShow},</if>
|
||||
<if test="level != null">level = #{level},</if>
|
||||
<if test="flag != null">flag = #{flag},</if>
|
||||
<if test="description != null">description = #{description},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteComCategoryById" parameterType="Long">
|
||||
delete from com_category where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteComCategoryByIds" parameterType="String">
|
||||
delete from com_category where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?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="org.code.modules.qiniu.mapper.QiniuConfigMapper">
|
||||
|
||||
</mapper>
|
||||
Reference in new issue
Block a user