File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
src/main/java/br/com/grupo63/serviceproduction/gateway/status Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -18,17 +18,20 @@ public class StatusJpaAdapter implements IStatusGateway {
18
18
19
19
private final StatusJpaRepository repository ;
20
20
21
- private static final List <OrderStatus > UNFINISHED_STATUS = Arrays
22
- .asList (
23
- OrderStatus .PREPARING ,
24
- OrderStatus .RECEIVED ,
25
- OrderStatus .READY );
21
+ private static final List <OrderStatus > UNFINISHED_STATUS =
22
+ Arrays
23
+ .asList (
24
+ OrderStatus .PREPARING ,
25
+ OrderStatus .RECEIVED ,
26
+ OrderStatus .READY );
26
27
27
28
@ Override
28
29
public List <Status > findByStatusNotFinishedAndDeletedOrderByCreationDate () {
29
30
return repository .findByDeletedFalseAndStatusIn (UNFINISHED_STATUS )
30
31
.stream ()
31
- .sorted ((entity1 , entity2 ) -> entity2 .getLastUpdateDate ().compareTo (entity1 .getLastUpdateDate ()))
32
+ .sorted (
33
+ (entity1 , entity2 ) ->
34
+ entity2 .getLastUpdateDate ().compareTo (entity1 .getLastUpdateDate ()))
32
35
.map (StatusPersistenceEntity ::toModel )
33
36
.collect (Collectors .toList ());
34
37
}
You can’t perform that action at this time.
0 commit comments