|
|
|
@@ -3,9 +3,12 @@ |
|
|
|
<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,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 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"> |
|
|
|
@@ -64,6 +67,13 @@ |
|
|
|
and state = 1 |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="queryByCodeRepoName" resultType="java.lang.Long"> |
|
|
|
select id |
|
|
|
from code_config |
|
|
|
where code_repo_name = #{codeRepoName} |
|
|
|
and state = 1 |
|
|
|
</select> |
|
|
|
|
|
|
|
<sql id="common_condition"> |
|
|
|
<where> |
|
|
|
state = 1 |
|
|
|
|