|
@@ -17,10 +17,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="repoLevel" column="repo_level" />
|
|
<result property="repoLevel" column="repo_level" />
|
|
<result property="description" column="description" />
|
|
<result property="description" column="description" />
|
|
<result property="isDelete" column="is_delete" />
|
|
<result property="isDelete" column="is_delete" />
|
|
|
|
+ <result property="url" column="url" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectSysRepoVo">
|
|
<sql id="selectSysRepoVo">
|
|
- select repo_Id, repo_name, create_by, update_by, repo_type, repo_status, create_Time, update_Time, parent_id, repo_level, description, is_delete from sys_repo
|
|
|
|
|
|
+ select repo_Id, repo_name, create_by, update_by, repo_type, repo_status, create_Time, update_Time, parent_id, repo_level, description, is_delete, url from sys_repo
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectSysRepoList" parameterType="SysRepo" resultMap="SysRepoResult">
|
|
<select id="selectSysRepoList" parameterType="SysRepo" resultMap="SysRepoResult">
|
|
@@ -35,6 +36,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="repoLevel != null "> and repo_level = #{repoLevel}</if>
|
|
<if test="repoLevel != null "> and repo_level = #{repoLevel}</if>
|
|
<if test="description != null and description != ''"> and description = #{description}</if>
|
|
<if test="description != null and description != ''"> and description = #{description}</if>
|
|
<if test="isDelete != null "> and is_delete = #{isDelete}</if>
|
|
<if test="isDelete != null "> and is_delete = #{isDelete}</if>
|
|
|
|
+ <if test="url != null "> and url = #{isDelete}</if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -57,6 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="repoLevel != null">repo_level,</if>
|
|
<if test="repoLevel != null">repo_level,</if>
|
|
<if test="description != null">description,</if>
|
|
<if test="description != null">description,</if>
|
|
<if test="isDelete != null">is_delete,</if>
|
|
<if test="isDelete != null">is_delete,</if>
|
|
|
|
+ <if test="url != null">url,</if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="repoName != null and repoName != ''">#{repoName},</if>
|
|
<if test="repoName != null and repoName != ''">#{repoName},</if>
|
|
@@ -70,6 +73,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="repoLevel != null">#{repoLevel},</if>
|
|
<if test="repoLevel != null">#{repoLevel},</if>
|
|
<if test="description != null">#{description},</if>
|
|
<if test="description != null">#{description},</if>
|
|
<if test="isDelete != null">#{isDelete},</if>
|
|
<if test="isDelete != null">#{isDelete},</if>
|
|
|
|
+ <if test="url != null">#{url},</if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -87,6 +91,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="repoLevel != null">repo_level = #{repoLevel},</if>
|
|
<if test="repoLevel != null">repo_level = #{repoLevel},</if>
|
|
<if test="description != null">description = #{description},</if>
|
|
<if test="description != null">description = #{description},</if>
|
|
<if test="isDelete != null">is_delete = #{isDelete},</if>
|
|
<if test="isDelete != null">is_delete = #{isDelete},</if>
|
|
|
|
+ <if test="url != null">url = #{url},</if>
|
|
</trim>
|
|
</trim>
|
|
where repo_Id = #{repoId}
|
|
where repo_Id = #{repoId}
|
|
</update>
|
|
</update>
|