This commit is contained in:
@@ -51,6 +51,10 @@ public class LawCaseService {
|
||||
return lawCaseRepository.save(lawCase);
|
||||
}
|
||||
|
||||
public boolean lawCaseExistByViolationId(Long violationId) {
|
||||
return lawCaseRepository.existsByViolationId(violationId);
|
||||
}
|
||||
|
||||
public LawCase changePriority(Long id, LawCasePriority priority) {
|
||||
LawCase lawCase = lawCaseRepository.findById(id).orElse(null);
|
||||
if (lawCase == null) {
|
||||
|
||||
Reference in New Issue
Block a user