Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
ejercicio2-framework-back
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Josue
ejercicio2-framework-back
Commits
353037f9
Commit
353037f9
authored
Feb 02, 2022
by
Roberto Loayza Miljanovich
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_marcos' into 'developer'
Update AgentService See merge request ByteBot/web/bytebot-service!27
parents
9b8a0abc
26bb12c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
DeploymentChannelParamValueRepository.java
...bot/repository/DeploymentChannelParamValueRepository.java
+8
-1
AgentService.java
src/main/java/com/bytesw/bytebot/service/AgentService.java
+2
-2
No files found.
src/main/java/com/bytesw/bytebot/repository/DeploymentChannelParamValueRepository.java
View file @
353037f9
...
...
@@ -2,7 +2,11 @@ package com.bytesw.bytebot.repository;
import
com.bytesw.bytebot.model.DeploymentChannelParamValue
;
import
org.springframework.cache.annotation.CachePut
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.data.repository.CrudRepository
;
import
org.springframework.data.repository.query.Param
;
import
java.util.List
;
/**
* @author Sebastián Chicoma Sandmann.
...
...
@@ -16,4 +20,7 @@ import org.springframework.data.repository.CrudRepository;
* licencia de uso que firmó con Byte.
*/
public
interface
DeploymentChannelParamValueRepository
extends
CrudRepository
<
DeploymentChannelParamValue
,
Long
>
{
}
public
interface
DeploymentChannelParamValueRepository
extends
CrudRepository
<
DeploymentChannelParamValue
,
Long
>
{
@Query
(
"select d from DeploymentChannelParamValue d where d.deploymentChannel.id = :id order by d.id asc"
)
List
<
DeploymentChannelParamValue
>
getParameter
(
@Param
(
"id"
)
Long
id
);
}
src/main/java/com/bytesw/bytebot/service/AgentService.java
View file @
353037f9
...
...
@@ -408,8 +408,8 @@ public class AgentService extends CustomPaginationService<Agent> {
}
//Parameters
for
(
DeploymentChannelParamValue
parameter
:
deploymentChannel
.
getParameters
()
)
{
List
<
DeploymentChannelParamValue
>
list
=
deploymentChannelParamValueRepository
.
getParameter
(
deploymentChannel
.
getId
());
for
(
DeploymentChannelParamValue
parameter
:
list
)
{
DeploymentChannelParamValueBean
parameterBean
=
new
DeploymentChannelParamValueBean
();
parameterBean
.
setId
(
parameter
.
getId
());
parameterBean
.
setValue
(
parameter
.
getValue
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment