|
|
@@ -7,6 +7,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<resultMap type="DocSpaceExpand" id="DocSpaceExpandResult">
|
|
|
<result property="expandId" column="EXPAND_ID" />
|
|
|
<result property="spaceId" column="SPACE_ID" />
|
|
|
+ <result property="spaceName" column="SPACE_NAME" />
|
|
|
<result property="currentCap" column="CURRENT_CAP" />
|
|
|
<result property="expandCap" column="EXPAND_CAP" />
|
|
|
<result property="expandStatus" column="EXPAND_STATUS" />
|
|
|
@@ -19,15 +20,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectDocSpaceExpandVo">
|
|
|
- select EXPAND_ID, SPACE_ID, CURRENT_CAP, EXPAND_CAP, EXPAND_STATUS, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, REMARK, IS_DEL from doc_space_expand
|
|
|
+ select EXPAND_ID, SPACE_ID, SPACE_NAME, CURRENT_CAP, EXPAND_CAP, EXPAND_STATUS, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, REMARK, IS_DEL from doc_space_expand
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectDocSpaceExpandList" parameterType="DocSpaceExpand" resultMap="DocSpaceExpandResult">
|
|
|
<include refid="selectDocSpaceExpandVo"/>
|
|
|
<where>
|
|
|
- <if test="spaceId != null "> and SPACE_ID = #{spaceId}</if>
|
|
|
+ <if test="spaceName != null and spaceName != ''"> and SPACE_NAME like concat('%', #{spaceName}, '%')</if>
|
|
|
<if test="currentCap != null "> and CURRENT_CAP = #{currentCap}</if>
|
|
|
<if test="expandCap != null "> and EXPAND_CAP = #{expandCap}</if>
|
|
|
+ <if test="expandStatus != null and expandStatus != ''"> and EXPAND_STATUS = #{expandStatus}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
@@ -40,6 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
insert into doc_space_expand
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="spaceId != null">SPACE_ID,</if>
|
|
|
+ <if test="spaceName != null and spaceName != ''">SPACE_NAME,</if>
|
|
|
<if test="currentCap != null">CURRENT_CAP,</if>
|
|
|
<if test="expandCap != null">EXPAND_CAP,</if>
|
|
|
<if test="expandStatus != null">EXPAND_STATUS,</if>
|
|
|
@@ -47,11 +50,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createTime != null">CREATE_TIME,</if>
|
|
|
<if test="updateBy != null">UPDATE_BY,</if>
|
|
|
<if test="updateTime != null">UPDATE_TIME,</if>
|
|
|
- <if test="remark != null">REMARK,</if>
|
|
|
+ <if test="remark != null and remark != ''">REMARK,</if>
|
|
|
<if test="isDel != null">IS_DEL,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="spaceId != null">#{spaceId},</if>
|
|
|
+ <if test="spaceName != null and spaceName != ''">#{spaceName},</if>
|
|
|
<if test="currentCap != null">#{currentCap},</if>
|
|
|
<if test="expandCap != null">#{expandCap},</if>
|
|
|
<if test="expandStatus != null">#{expandStatus},</if>
|
|
|
@@ -59,7 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
- <if test="remark != null">#{remark},</if>
|
|
|
+ <if test="remark != null and remark != ''">#{remark},</if>
|
|
|
<if test="isDel != null">#{isDel},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
@@ -68,6 +72,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
update doc_space_expand
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="spaceId != null">SPACE_ID = #{spaceId},</if>
|
|
|
+ <if test="spaceName != null and spaceName != ''">SPACE_NAME = #{spaceName},</if>
|
|
|
<if test="currentCap != null">CURRENT_CAP = #{currentCap},</if>
|
|
|
<if test="expandCap != null">EXPAND_CAP = #{expandCap},</if>
|
|
|
<if test="expandStatus != null">EXPAND_STATUS = #{expandStatus},</if>
|
|
|
@@ -75,7 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createTime != null">CREATE_TIME = #{createTime},</if>
|
|
|
<if test="updateBy != null">UPDATE_BY = #{updateBy},</if>
|
|
|
<if test="updateTime != null">UPDATE_TIME = #{updateTime},</if>
|
|
|
- <if test="remark != null">REMARK = #{remark},</if>
|
|
|
+ <if test="remark != null and remark != ''">REMARK = #{remark},</if>
|
|
|
<if test="isDel != null">IS_DEL = #{isDel},</if>
|
|
|
</trim>
|
|
|
where EXPAND_ID = #{expandId}
|