|
|
|
@@ -3,8 +3,9 @@ |
|
|
|
<mapper namespace="com.ruoyi.platform.mapper.CodeConfigDao"> |
|
|
|
|
|
|
|
<insert id="insert"> |
|
|
|
insert into code_config(code_repo_name, code_repo_vis, git_url, git_branch, verify_mode, git_user_name, git_password, create_by, create_time, update_by, update_time) |
|
|
|
values(#{codeConfig.codeRepoName}, #{codeConfig.codeRepoVis}, #{codeConfig.gitUrl}, #{codeConfig.gitBranch}, #{codeConfig.verifyMode}, #{codeConfig.gitUserName}, #{codeConfig.gitPassword}, #{codeConfig.createBy}, #{codeConfig.createTime}, #{codeConfig.updateBy}, #{codeConfig.updateTime}) |
|
|
|
insert into code_config(code_repo_name, code_repo_vis, git_url, git_branch, verify_mode, git_user_name, git_password,ssh_key, create_by, create_time, update_by, update_time) |
|
|
|
values(#{codeConfig.codeRepoName}, #{codeConfig.codeRepoVis}, #{codeConfig.gitUrl}, #{codeConfig.gitBranch}, #{codeConfig.verifyMode}, #{codeConfig.gitUserName}, #{codeConfig.gitPassword}, |
|
|
|
#{codeConfig.sshKey}, #{codeConfig.createBy}, #{codeConfig.createTime}, #{codeConfig.updateBy}, #{codeConfig.updateTime}) |
|
|
|
</insert> |
|
|
|
|
|
|
|
<update id="update"> |
|
|
|
@@ -28,6 +29,12 @@ |
|
|
|
<if test="codeConfig.gitUserName != null and codeConfig.gitUserName != ''"> |
|
|
|
git_user_name = #{codeConfig.gitUserName}, |
|
|
|
</if> |
|
|
|
<if test="codeConfig.gitPassword != null and codeConfig.gitPassword != ''"> |
|
|
|
git_password = #{codeConfig.gitPassword}, |
|
|
|
</if> |
|
|
|
<if test="codeConfig.sshKey != null and codeConfig.sshKey != ''"> |
|
|
|
ssh_key = #{codeConfig.sshKey}, |
|
|
|
</if> |
|
|
|
<if test="codeConfig.createBy != null and codeConfig.createBy != ''"> |
|
|
|
create_by = #{codeConfig.createBy}, |
|
|
|
</if> |
|
|
|
|