案件信息,执法检查接口
This commit is contained in:
parent
95f022a307
commit
524d31df8b
|
|
@ -15,6 +15,7 @@ import java.util.Optional;
|
||||||
public interface CaseRepository extends BaseRepo<Case, String> {
|
public interface CaseRepository extends BaseRepo<Case, String> {
|
||||||
Optional<Case> findByEnforcementInfoEnforcementId(String enforcementId);
|
Optional<Case> findByEnforcementInfoEnforcementId(String enforcementId);
|
||||||
|
|
||||||
|
|
||||||
@Query("select new com.aisino.iles.lawenforcement.model.dto.EnforceCheckDto(concat(year(e.fillingDate),'-',month(e.fillingDate)), cast(count(1) as long))" +
|
@Query("select new com.aisino.iles.lawenforcement.model.dto.EnforceCheckDto(concat(year(e.fillingDate),'-',month(e.fillingDate)), cast(count(1) as long))" +
|
||||||
" from Case e where e.fillingDate >= :start and e.fillingDate <= :end group by concat(year(e.fillingDate),'-',month(e.fillingDate))")
|
" from Case e where e.fillingDate >= :start and e.fillingDate <= :end group by concat(year(e.fillingDate),'-',month(e.fillingDate))")
|
||||||
List<EnforceCheckDto> caseGroupByMonth(LocalDate start, LocalDate end);
|
List<EnforceCheckDto> caseGroupByMonth(LocalDate start, LocalDate end);
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ import java.util.List;
|
||||||
@Repository
|
@Repository
|
||||||
public interface CheckItemRepository extends BaseRepo<CheckItem, String> {
|
public interface CheckItemRepository extends BaseRepo<CheckItem, String> {
|
||||||
|
|
||||||
|
|
||||||
List<CheckItem> findByItemIdIn(String[] ids);
|
List<CheckItem> findByItemIdIn(String[] ids);
|
||||||
|
|
||||||
List<CheckItem> findByEnabled(Boolean enable);
|
List<CheckItem> findByEnabled(Boolean enable);
|
||||||
|
|
|
||||||
|
|
@ -6,4 +6,5 @@ import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
@Repository
|
@Repository
|
||||||
public interface ChecklistRepository extends BaseRepo<Checklist, String> {
|
public interface ChecklistRepository extends BaseRepo<Checklist, String> {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -538,8 +538,6 @@ public class CaseService {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@PublishDataChange(action = DataChangeAction.SAVE)
|
@PublishDataChange(action = DataChangeAction.SAVE)
|
||||||
@Transactional
|
@Transactional
|
||||||
public List<Object> discuss(Case c) {
|
public List<Object> discuss(Case c) {
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,6 @@ public class CheckItemService {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 保存检查项信息
|
* 保存检查项信息
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@ public class ChecklistService {
|
||||||
this.checklistRepo = checklistRepo;
|
this.checklistRepo = checklistRepo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 保存检查表信息
|
* 保存检查表信息
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue