mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-10-10 01:35:14 +08:00
删除独立的作者、出版社、缩略图表;修正部分字段;实现部分Service以及Controller;项目框架基本建立
This commit is contained in:
@@ -5,20 +5,20 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="name" jdbcType="VARCHAR" property="name" />
|
||||
<result column="isShow" jdbcType="BIT" property="isshow" />
|
||||
<result column="is_show" jdbcType="BIT" property="isShow" />
|
||||
<result column="order" jdbcType="INTEGER" property="order" />
|
||||
<result column="level" jdbcType="INTEGER" property="level" />
|
||||
<result column="parentId" jdbcType="INTEGER" property="parentid" />
|
||||
<result column="parent_id" jdbcType="INTEGER" property="parentId" />
|
||||
</resultMap>
|
||||
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="plus.bookshelf.Dao.DO.CategoryDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
<result column="description" jdbcType="LONGVARCHAR" property="description" />
|
||||
</resultMap>
|
||||
@@ -26,15 +26,15 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
id, name, isShow, order, level, parentId
|
||||
id, `name`, is_show, `order`, `level`, parent_id
|
||||
</sql>
|
||||
<sql id="Blob_Column_List">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
description
|
||||
</sql>
|
||||
@@ -42,7 +42,7 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
@@ -55,7 +55,7 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
delete from category_info
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
@@ -64,20 +64,20 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
insert into category_info (id, name, isShow,
|
||||
order, level, parentId,
|
||||
insert into category_info (id, `name`, is_show,
|
||||
`order`, `level`, parent_id,
|
||||
description)
|
||||
values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{isshow,jdbcType=BIT},
|
||||
#{order,jdbcType=INTEGER}, #{level,jdbcType=INTEGER}, #{parentid,jdbcType=INTEGER},
|
||||
values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{isShow,jdbcType=BIT},
|
||||
#{order,jdbcType=INTEGER}, #{level,jdbcType=INTEGER}, #{parentId,jdbcType=INTEGER},
|
||||
#{description,jdbcType=LONGVARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="plus.bookshelf.Dao.DO.CategoryDO">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
insert into category_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
@@ -85,19 +85,19 @@
|
||||
id,
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name,
|
||||
`name`,
|
||||
</if>
|
||||
<if test="isshow != null">
|
||||
isShow,
|
||||
<if test="isShow != null">
|
||||
is_show,
|
||||
</if>
|
||||
<if test="order != null">
|
||||
order,
|
||||
`order`,
|
||||
</if>
|
||||
<if test="level != null">
|
||||
level,
|
||||
`level`,
|
||||
</if>
|
||||
<if test="parentid != null">
|
||||
parentId,
|
||||
<if test="parentId != null">
|
||||
parent_id,
|
||||
</if>
|
||||
<if test="description != null">
|
||||
description,
|
||||
@@ -110,8 +110,8 @@
|
||||
<if test="name != null">
|
||||
#{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="isshow != null">
|
||||
#{isshow,jdbcType=BIT},
|
||||
<if test="isShow != null">
|
||||
#{isShow,jdbcType=BIT},
|
||||
</if>
|
||||
<if test="order != null">
|
||||
#{order,jdbcType=INTEGER},
|
||||
@@ -119,8 +119,8 @@
|
||||
<if test="level != null">
|
||||
#{level,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="parentid != null">
|
||||
#{parentid,jdbcType=INTEGER},
|
||||
<if test="parentId != null">
|
||||
#{parentId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="description != null">
|
||||
#{description,jdbcType=LONGVARCHAR},
|
||||
@@ -131,24 +131,24 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
update category_info
|
||||
<set>
|
||||
<if test="name != null">
|
||||
name = #{name,jdbcType=VARCHAR},
|
||||
`name` = #{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="isshow != null">
|
||||
isShow = #{isshow,jdbcType=BIT},
|
||||
<if test="isShow != null">
|
||||
is_show = #{isShow,jdbcType=BIT},
|
||||
</if>
|
||||
<if test="order != null">
|
||||
order = #{order,jdbcType=INTEGER},
|
||||
`order` = #{order,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="level != null">
|
||||
level = #{level,jdbcType=INTEGER},
|
||||
`level` = #{level,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="parentid != null">
|
||||
parentId = #{parentid,jdbcType=INTEGER},
|
||||
<if test="parentId != null">
|
||||
parent_id = #{parentId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="description != null">
|
||||
description = #{description,jdbcType=LONGVARCHAR},
|
||||
@@ -160,14 +160,14 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
update category_info
|
||||
set name = #{name,jdbcType=VARCHAR},
|
||||
isShow = #{isshow,jdbcType=BIT},
|
||||
order = #{order,jdbcType=INTEGER},
|
||||
level = #{level,jdbcType=INTEGER},
|
||||
parentId = #{parentid,jdbcType=INTEGER},
|
||||
set `name` = #{name,jdbcType=VARCHAR},
|
||||
is_show = #{isShow,jdbcType=BIT},
|
||||
`order` = #{order,jdbcType=INTEGER},
|
||||
`level` = #{level,jdbcType=INTEGER},
|
||||
parent_id = #{parentId,jdbcType=INTEGER},
|
||||
description = #{description,jdbcType=LONGVARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
@@ -175,14 +175,22 @@
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Sat Mar 12 18:53:08 SGT 2022.
|
||||
This element was generated on Sat Mar 12 21:38:13 SGT 2022.
|
||||
-->
|
||||
update category_info
|
||||
set name = #{name,jdbcType=VARCHAR},
|
||||
isShow = #{isshow,jdbcType=BIT},
|
||||
order = #{order,jdbcType=INTEGER},
|
||||
level = #{level,jdbcType=INTEGER},
|
||||
parentId = #{parentid,jdbcType=INTEGER}
|
||||
set `name` = #{name,jdbcType=VARCHAR},
|
||||
is_show = #{isShow,jdbcType=BIT},
|
||||
`order` = #{order,jdbcType=INTEGER},
|
||||
`level` = #{level,jdbcType=INTEGER},
|
||||
parent_id = #{parentId,jdbcType=INTEGER}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<select id="selectChildrenByCategoryId" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
,
|
||||
<include refid="Blob_Column_List" />
|
||||
from category_info
|
||||
where parent_id = #{parentId,jdbcType=INTEGER}
|
||||
</select>
|
||||
</mapper>
|
Reference in New Issue
Block a user