Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
BackEnd-V2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Joel Andres Molina Velez
BackEnd-V2
Commits
bbbbb012
Commit
bbbbb012
authored
Aug 28, 2023
by
Joel Andres Molina Velez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Se realiza modificaciones en ServiceUzyTavEvalProy
parent
181fa523
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
1 deletion
+16
-1
UzyTavEvalProyController.java
...idad/MovilidadWS/Controller/UzyTavEvalProyController.java
+4
-0
DaoUzyTavEvalProy.java
...edu/espe/movilidad/MovilidadWS/Dao/DaoUzyTavEvalProy.java
+4
-1
IServiceUzyTavEvalProy.java
...idadWS/Service/UzyTavEvalProy/IServiceUzyTavEvalProy.java
+2
-0
ServiceUzyTavEvalProy.java
...lidadWS/Service/UzyTavEvalProy/ServiceUzyTavEvalProy.java
+6
-0
No files found.
src/main/java/ec/edu/espe/movilidad/MovilidadWS/Controller/UzyTavEvalProyController.java
View file @
bbbbb012
...
...
@@ -31,6 +31,10 @@ public class UzyTavEvalProyController {
public
ResponseEntity
<
List
<
DtoUzyTavEvalProy
>>
ListarRegistros
()
{
return
new
ResponseEntity
<>(
serviceUzyTavEvalProy
.
ListarRegistros
(),
HttpStatus
.
OK
);
}
@GetMapping
(
"/findByIdDatosPorCabeValpID{uzytavcabevalp_id}"
)
public
ResponseEntity
<
List
<
DtoUzyTavEvalProy
>>
findByIdDatosPorCabeValpID
(
@PathVariable
Long
uzytavcabevalp_id
)
{
return
new
ResponseEntity
<>(
serviceUzyTavEvalProy
.
findByIdDatosPorCabeValpID
(
uzytavcabevalp_id
),
HttpStatus
.
OK
);
}
@PostMapping
(
"/guardar"
)
...
...
src/main/java/ec/edu/espe/movilidad/MovilidadWS/Dao/DaoUzyTavEvalProy.java
View file @
bbbbb012
package
ec
.
edu
.
espe
.
movilidad
.
MovilidadWS
.
Dao
;
import
ec.edu.espe.movilidad.MovilidadWS.Model.ModelUzyTavEvalProy
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.data.repository.query.Param
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
...
...
@@ -12,5 +14,6 @@ public interface DaoUzyTavEvalProy extends JpaRepository<ModelUzyTavEvalProy, Lo
@Query
(
"SELECT c FROM ModelUzyTavEvalProy c ORDER BY c.uzytavevalproy_id DESC"
)
List
<
ModelUzyTavEvalProy
>
findAll
();
@Query
(
"SELECT cv FROM ModelUzyTavEvalProy cv INNER JOIN cv.uzytavcabevalp p WHERE p.uzytavcabevalp_id = :uzytavcabevalp_id"
)
List
<
ModelUzyTavEvalProy
>
findByIdDatosPorCabeValpID
(
@Param
(
"uzytavcabevalp_id"
)
Long
uzytavcabevalp_id
);
}
src/main/java/ec/edu/espe/movilidad/MovilidadWS/Service/UzyTavEvalProy/IServiceUzyTavEvalProy.java
View file @
bbbbb012
...
...
@@ -2,6 +2,7 @@ package ec.edu.espe.movilidad.MovilidadWS.Service.UzyTavEvalProy;
import
ec.edu.espe.movilidad.MovilidadWS.Dto.DtoUzyTavEvalProy
;
import
java.util.List
;
public
interface
IServiceUzyTavEvalProy
{
...
...
@@ -9,6 +10,7 @@ public interface IServiceUzyTavEvalProy {
DtoUzyTavEvalProy
ListarPorID
(
Long
id
);
List
<
DtoUzyTavEvalProy
>
ListarRegistros
();
List
<
DtoUzyTavEvalProy
>
findByIdDatosPorCabeValpID
(
Long
uzytavcabevalp_id
);
DtoUzyTavEvalProy
guardar
(
DtoUzyTavEvalProy
dtoUzyTavEvalProy
);
...
...
src/main/java/ec/edu/espe/movilidad/MovilidadWS/Service/UzyTavEvalProy/ServiceUzyTavEvalProy.java
View file @
bbbbb012
...
...
@@ -35,6 +35,12 @@ public class ServiceUzyTavEvalProy implements IServiceUzyTavEvalProy{
return
mapper
.
entitiesToDtos
(
entities
);
}
@Override
public
List
<
DtoUzyTavEvalProy
>
findByIdDatosPorCabeValpID
(
Long
uzytavcabevalp_id
)
{
List
<
ModelUzyTavEvalProy
>
entities
=
daoUzyTavEvalProy
.
findByIdDatosPorCabeValpID
(
uzytavcabevalp_id
);
return
mapper
.
entitiesToDtos
(
entities
);
}
@Override
public
DtoUzyTavEvalProy
guardar
(
DtoUzyTavEvalProy
dtoUzyTavEvalProy
)
{
ModelUzyTavEvalProy
entity
=
mapper
.
dtoToEntity
(
dtoUzyTavEvalProy
);
...
...
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