举报核查、首页、在线巡查相关接口类
This commit is contained in:
parent
e2e57d64a2
commit
7a7db49f36
|
|
@ -0,0 +1,9 @@
|
||||||
|
package com.aisino.iles.lawenforcement.repository;
|
||||||
|
|
||||||
|
import com.aisino.iles.core.repository.BaseRepo;
|
||||||
|
import com.aisino.iles.lawenforcement.model.ExamineReport;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
@Repository
|
||||||
|
public interface ExamineReportRepository extends BaseRepo<ExamineReport, String> {
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
package com.aisino.iles.lawenforcement.repository;
|
||||||
|
|
||||||
|
import com.aisino.iles.core.repository.BaseRepo;
|
||||||
|
import com.aisino.iles.lawenforcement.model.Example;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
@Repository
|
||||||
|
public interface ExampleRepository extends BaseRepo<Example, String> {
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,104 @@
|
||||||
|
package com.aisino.iles.lawenforcement.repository;
|
||||||
|
|
||||||
|
import com.aisino.iles.core.repository.BaseRepo;
|
||||||
|
import com.aisino.iles.lawenforcement.model.EnforcementInfo;
|
||||||
|
import com.aisino.iles.lawenforcement.model.dto.HomePageDto;
|
||||||
|
import com.aisino.iles.lawenforcement.model.dto.NodeCaseNumDto;
|
||||||
|
import org.springframework.data.jpa.repository.Query;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
import java.time.LocalDate;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 大屏统计接口
|
||||||
|
*/
|
||||||
|
@Repository
|
||||||
|
public interface HomePageRepository extends BaseRepo<EnforcementInfo, String> {
|
||||||
|
|
||||||
|
@Query(value = "select count(0) from zf_enterprise qy join zf_agency a on qy.agency_id=a.agency_id where qy.del_flag = '0' and a.agency_code like :agencyCode ", nativeQuery = true)
|
||||||
|
Long getqys(String agencyCode);
|
||||||
|
|
||||||
|
@Query(value = "select count(0) num from zf_enforce_check jc left join zf_enforcement_info zf on jc.enforcement_id=zf.enforcement_id where zf.current_node_code not in('plan_approval','plan_approval_failed','plan_approved')", nativeQuery = true)
|
||||||
|
Long getjcs();
|
||||||
|
|
||||||
|
@Query(value = "select count(0) num from zf_case_info where file_path is not null", nativeQuery = true)
|
||||||
|
Long getajs();
|
||||||
|
|
||||||
|
//查询待立案书
|
||||||
|
@Query(value = "select count(0) num from zf_enforcement_info where current_node_code = 'inspect_summarize' and filling_flag = '1' ", nativeQuery = true)
|
||||||
|
Long getdla();
|
||||||
|
|
||||||
|
|
||||||
|
@Query(value = "SELECT current_node_code as status, COUNT(*) AS stat_num FROM zf_enforcement_info GROUP BY current_node_code", nativeQuery = true)
|
||||||
|
List<Map<String, Object>> countCurrentNodeCode();
|
||||||
|
|
||||||
|
|
||||||
|
@Query(value = "select count(0) num from zf_enforcement_info f left join zf_agency a on f.agency_id=a.agency_id where a.agency_code = :agencyCode ", nativeQuery = true)
|
||||||
|
Long getZfxxsByDistrict(String agencyCode);
|
||||||
|
|
||||||
|
@Query(value = "select count(0) from zf_enterprise qy join zf_agency a on qy.agency_id=a.agency_id where qy.is_remove = '0' and a.agency_code = :agencyCode ", nativeQuery = true)
|
||||||
|
Long getqysByDistrict(String agencyCode);
|
||||||
|
|
||||||
|
@Query(value = "select count(0) num from zf_enforce_check jc left join zf_enforcement_info zf on jc.enforcement_id=zf.enforcement_id left join zf_agency a on zf.agency_id=a.agency_id where zf.current_node_code not in('plan_approval','plan_approval_failed','plan_approved') and a.agency_code = :agencyCode ", nativeQuery = true)
|
||||||
|
Long getjcsByDistrict(String agencyCode);
|
||||||
|
|
||||||
|
@Query(value = "select count(0) num from zf_case_info c left join zf_enforcement_info f on c.enforcement_id=f.enforcement_id left join zf_agency a on f.agency_id=a.agency_id where c.file_path is not null and a.agency_code = :agencyCode ", nativeQuery = true)
|
||||||
|
Long getajsByDistrict(String agencyCode);
|
||||||
|
|
||||||
|
@Query(value = "select count(0) from zf_zfclgl where sddm= :agencyCode ", nativeQuery = true)
|
||||||
|
Long getclsByDistrict(String agencyCode);
|
||||||
|
|
||||||
|
@Query(value = "select count(0) from zf_zfclgl ", nativeQuery = true)
|
||||||
|
Long getcls();
|
||||||
|
|
||||||
|
//查询待立案书
|
||||||
|
@Query(value = "select count(0) num from zf_enforcement_info f left join zf_agency a on f.agency_id=a.agency_id where f.current_node_code = 'inspect_summarize' and f.filling_flag = '1' and a.agency_code = :agencyCode ", nativeQuery = true)
|
||||||
|
Long getdlaByDistrict(String agencyCode);
|
||||||
|
|
||||||
|
|
||||||
|
@Query(value = "SELECT f.current_node_code as status, COUNT(f.enforcement_id) AS stat_num FROM zf_enforcement_info f left join zf_agency a on f.agency_id=a.agency_id where a.agency_code = :agencyCode GROUP BY f.current_node_code", nativeQuery = true)
|
||||||
|
List<Map<String, Object>> countCurrentNodeCodeByDistrict(String agencyCode);
|
||||||
|
|
||||||
|
@Query(value = "select count(0) num from zf_legal_document w left join zf_case_info c on w.case_id= c.case_id left join zf_enforcement_info f on c.enforcement_id=f.enforcement_id left join zf_agency a on f.agency_id=a.agency_id where w.status='done' and a.agency_code = :agencyCode ", nativeQuery = true)
|
||||||
|
Long getWssByDistrict(String agencyCode);
|
||||||
|
|
||||||
|
@Query(value = "select count(0) num from zf_legal_document w where w.status='done' and w.document_date >= :startDate and w.document_date <= :endDate ", nativeQuery = true)
|
||||||
|
Long getDocumentNumForPlatform(LocalDateTime startDate, LocalDateTime endDate);
|
||||||
|
|
||||||
|
@Query(value = "select count(0) num from zf_case_info where file_path is not null and file_path_time >= :startDate and file_path_time <= :endDate ", nativeQuery = true)
|
||||||
|
Long getDossiersNumForPlatform(LocalDateTime startDate, LocalDateTime endDate);
|
||||||
|
|
||||||
|
|
||||||
|
@Query(value = "SELECT count(0) num FROM zf_enforcement_info zf left join zf_case_info aj on zf.enforcement_id=aj.enforcement_id where zf.current_node_code in ('filed','investigating','investigation_done','analyze_judge','reviewing_failed','reviewing_done','brainstorm','closed','done') and aj.filling_date>=:startDate and aj.filling_date <= :endDate and zf.filling_flag = '1' ", nativeQuery = true)
|
||||||
|
Long getSlNum(LocalDateTime startDate, LocalDateTime endDate);
|
||||||
|
|
||||||
|
@Query(value = "SELECT count(0) num FROM zf_enforcement_info zf left join zf_case_info aj on zf.enforcement_id=aj.enforcement_id where zf.current_node_code in ('investigating','investigation_done','analyze_judge','reviewing_failed','reviewing_done','brainstorm','closed','done') and aj.filling_date>=:startDate and aj.filling_date <= :endDate and zf.filling_flag = '1' ", nativeQuery = true)
|
||||||
|
Long getdcNum(LocalDateTime startDate, LocalDateTime endDate);
|
||||||
|
|
||||||
|
@Query(value = "SELECT count(0) num FROM zf_enforcement_info zf left join zf_case_info aj on zf.enforcement_id=aj.enforcement_id where zf.current_node_code in ('reviewing_done','brainstorm','closed','done') and aj.filling_date>=:startDate and aj.filling_date <= :endDate and zf.filling_flag = '1' ", nativeQuery = true)
|
||||||
|
Long getjdNum(LocalDateTime startDate, LocalDateTime endDate);
|
||||||
|
|
||||||
|
@Query(value = "SELECT count(0) num FROM zf_enforcement_info zf left join zf_case_info aj on zf.enforcement_id=aj.enforcement_id where zf.current_node_code in ('closed','done') and aj.filling_date>=:startDate and aj.filling_date <= :endDate and zf.filling_flag = '1' ", nativeQuery = true)
|
||||||
|
Long getzxNum(LocalDateTime startDate, LocalDateTime endDate);
|
||||||
|
|
||||||
|
@Query("select new com.aisino.iles.lawenforcement.model.dto.NodeCaseNumDto(" +
|
||||||
|
/*立案*/ " cast(sum(case when a.currentNodeCode in ('filed', 'investigating', 'investigation_done', 'analyze_judge', 'inform', 'hearing', 'decided', 'execute', 'closed', 'done') then 1 else 0 end) as long)," +
|
||||||
|
/*完成调查取证*/ " cast(sum(case when a.currentNodeCode in ('investigation_done', 'analyze_judge', 'inform', 'hearing', 'decided', 'execute', 'closed', 'done') then 1 else 0 end) as long)," +
|
||||||
|
/*审理*/ " cast(sum(case when a.currentNodeCode in ('analyze_judge', 'inform', 'hearing', 'decided', 'execute', 'closed', 'done') then 1 else 0 end) as long)," +
|
||||||
|
/*告知*/ " cast(sum(case when a.currentNodeCode in ('inform', 'hearing', 'decided', 'execute', 'closed', 'done') then 1 else 0 end) as long)," +
|
||||||
|
/*陈述申辩或听证*/ " cast(sum(case when a.currentNodeCode in ('hearing', 'decided', 'execute', 'closed', 'done') then 1 else 0 end) as long)," +
|
||||||
|
/*执行*/ " cast(sum(case when a.currentNodeCode in ('decided', 'execute', 'closed', 'done') then 1 else 0 end) as long)," +
|
||||||
|
/*决定*/ " cast(sum(case when a.currentNodeCode in ('execute', 'closed', 'done') then 1 else 0 end) as long)," +
|
||||||
|
/*结案*/ " cast(sum(case when a.currentNodeCode in ('closed', 'done') then 1 else 0 end) as long)" +
|
||||||
|
" )" +
|
||||||
|
" from EnforcementInfo a join Case b on a.enforcementId = b.enforcementId" +
|
||||||
|
" where a.fillingFlag = '1'")
|
||||||
|
NodeCaseNumDto getNodeCaseNum();
|
||||||
|
|
||||||
|
@Query(value = "select count(0) from zf_case_info a left join zf_agency b on a.agency_id = b.agency_id where b.agency_code like :agencyCode ", nativeQuery = true)
|
||||||
|
Long getajsByAgencyCode(String agencyCode);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
package com.aisino.iles.lawenforcement.repository;
|
||||||
|
|
||||||
|
import com.aisino.iles.core.repository.BaseRepo;
|
||||||
|
import com.aisino.iles.lawenforcement.model.InsEnterprse;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 在线巡查企业信息接口
|
||||||
|
*/
|
||||||
|
@Repository
|
||||||
|
public interface InsEnterprseRepository extends BaseRepo<InsEnterprse, String> {
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue