dev check violation for lawcase,complaint
Test Workflow / test (push) Has been cancelled

This commit is contained in:
2026-05-18 13:25:53 +07:00
parent 57a39d0cb0
commit 0e0fac02a8
6 changed files with 23 additions and 2 deletions
@@ -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) {