|
@@ -13,7 +13,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="repoStatus" column="repo_status" />
|
|
|
<result property="createTime" column="create_Time" />
|
|
|
<result property="updateTime" column="update_Time" />
|
|
|
- <result property="parentId" column="parent_id" />
|
|
|
+ <result property="fileName" column="file_name" />
|
|
|
<result property="groupId" column="group_id" />
|
|
|
<result property="version" column="version" />
|
|
|
<result property="isDelete" column="is_delete" />
|
|
@@ -21,7 +21,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectSysRepoVo">
|
|
|
- select repo_Id, repo_name, create_by, update_by, repo_type, repo_status, create_Time, update_Time, parent_id, group_id, version, is_delete, url from sys_repo
|
|
|
+ select repo_Id, repo_name, create_by, update_by, repo_type, repo_status, create_Time, update_Time, file_name, group_id, version, is_delete, url from sys_repo
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectSysRepoList" parameterType="SysRepo" resultMap="SysRepoResult">
|
|
@@ -32,11 +32,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="repoStatus != null and repoStatus != ''"> and repo_status = #{repoStatus}</if>
|
|
|
<if test="createTime != null "> and create_Time = #{createTime}</if>
|
|
|
<if test="updateTime != null "> and update_Time = #{updateTime}</if>
|
|
|
- <if test="parentId != null "> and parent_id = #{parentId}</if>
|
|
|
+ <if test="fileName != null and fileName != '' "> and file_name = #{fileName}</if>
|
|
|
<if test="groupId != null "> and group_id = #{groupId}</if>
|
|
|
<if test="version != null and version != ''"> and version = #{version}</if>
|
|
|
<if test="isDelete != null "> and is_delete = #{isDelete}</if>
|
|
|
- <if test="url != null "> and url = #{isDelete}</if>
|
|
|
+ <if test="url != null and url != ''"> and url = #{url}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -55,11 +55,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="repoStatus != null and repoStatus != ''">repo_status,</if>
|
|
|
<if test="createTime != null">create_Time,</if>
|
|
|
<if test="updateTime != null">update_Time,</if>
|
|
|
- <if test="parentId != null">parent_id,</if>
|
|
|
+ <if test="fileName != null and fileName != ''">file_name,</if>
|
|
|
<if test="groupId != null">group_id,</if>
|
|
|
<if test="version != null">version,</if>
|
|
|
<if test="isDelete != null">is_delete,</if>
|
|
|
- <if test="url != null">url,</if>
|
|
|
+ <if test="url != null and url != ''">url,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="repoName != null and repoName != ''">#{repoName},</if>
|
|
@@ -69,11 +69,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="repoStatus != null and repoStatus != ''">#{repoStatus},</if>
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
- <if test="parentId != null">#{parentId},</if>
|
|
|
+ <if test="fileName != null and fileName != ''">#{fileName},</if>
|
|
|
<if test="groupId != null">#{groupId},</if>
|
|
|
<if test="version != null">#{version},</if>
|
|
|
<if test="isDelete != null">#{isDelete},</if>
|
|
|
- <if test="url != null">#{url},</if>
|
|
|
+ <if test="url != null and url != ''">#{url},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -87,11 +87,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="repoStatus != null and repoStatus != ''">repo_status = #{repoStatus},</if>
|
|
|
<if test="createTime != null">create_Time = #{createTime},</if>
|
|
|
<if test="updateTime != null">update_Time = #{updateTime},</if>
|
|
|
- <if test="parentId != null">parent_id = #{parentId},</if>
|
|
|
+ <if test="fileName != null and fileName != ''">file_name = #{fileName},</if>
|
|
|
<if test="groupId != null">group_id = #{groupId},</if>
|
|
|
<if test="version != null">version = #{version},</if>
|
|
|
<if test="isDelete != null">is_delete = #{isDelete},</if>
|
|
|
- <if test="url != null">url = #{url},</if>
|
|
|
+ <if test="url != null and url != ''">url = #{url},</if>
|
|
|
</trim>
|
|
|
where repo_Id = #{repoId}
|
|
|
</update>
|