7 changed files with 153 additions and 56 deletions
@ -1,8 +1,37 @@
|
||||
package com.biutag.supervision.mapper; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.biutag.supervision.pojo.dto.common.PieItem; |
||||
import com.biutag.supervision.pojo.entity.RpcApply; |
||||
import com.biutag.supervision.pojo.entity.RpcInfringerResult; |
||||
import org.apache.ibatis.annotations.Select; |
||||
|
||||
import java.util.Date; |
||||
import java.util.List; |
||||
|
||||
public interface RpcApplyMapper extends BaseMapper<RpcApply> { |
||||
|
||||
@Select("SELECT COUNT(a.rpc_id) FROM rpc_apply_person a LEFT JOIN rpc_apply b ON a.rpc_id = b.rpc_id " + |
||||
"WHERE b.apply_date BETWEEN #{beginTime} AND #{endTime} AND b.type = 2") |
||||
Integer countComfortPersonNumber(Date beginTime, Date endTime); |
||||
|
||||
@Select("SELECT a.tort_name FROM rpc_infringer_result a LEFT JOIN rpc_apply b ON a.rpc_id = b.rpc_id " + |
||||
"WHERE b.apply_date BETWEEN #{beginTime} AND #{endTime} AND b.type = 2") |
||||
List<String> getHitPeople(Date beginTime, Date endTime); |
||||
|
||||
@Select("SELECT SUM(a.provide_relief) FROM rpc_apply_person a LEFT JOIN rpc_apply b ON a.rpc_id = b.rpc_id " + |
||||
"WHERE b.apply_date BETWEEN #{beginTime} AND #{endTime} AND b.type = 2") |
||||
Double countComfortMoney(Date beginTime, Date endTime); |
||||
|
||||
@Select("select tort_name, defend_handle_way_name from rpc_infringer_result a LEFT JOIN rpc_apply b ON a.rpc_id = b.rpc_id " + |
||||
"WHERE b.apply_date BETWEEN #{beginTime} AND #{endTime} AND b.type = 2") |
||||
List<RpcInfringerResult> selectPunishmentSituation(Date beginTime, Date endTime); |
||||
|
||||
@Select("SELECT c.job name, COUNT(c.job) value FROM sup_police c JOIN " + |
||||
"(SELECT a.emp_no FROM rpc_apply_person a LEFT JOIN rpc_apply b ON a.rpc_id = b.rpc_id " + |
||||
"WHERE b.apply_date BETWEEN #{beginTime} AND #{endTime} AND b.type = 2) d on c.emp_no = d.emp_no " + |
||||
"GROUP BY c.job") |
||||
List<PieItem> selectComfortSituation(Date beginTime, Date endTime); |
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,28 @@
|
||||
package com.biutag.supervision.pojo.model; |
||||
|
||||
import com.biutag.supervision.pojo.dto.common.PieItem; |
||||
import lombok.Getter; |
||||
import lombok.Setter; |
||||
|
||||
import java.util.List; |
||||
|
||||
@Setter |
||||
@Getter |
||||
public class DataRightsComfortModel { |
||||
// 维权案件总数
|
||||
// 受侵害人数
|
||||
// 抚慰人数
|
||||
private Integer comfortPersonNumber; |
||||
// 打击处理人数
|
||||
Integer hitPersonNumber; |
||||
// 抚慰金额(万元)
|
||||
Double comfortMoney; |
||||
// 维权案件情况
|
||||
// 案件类别占比
|
||||
// 打处情况
|
||||
List<PieItem> punishmentSituation; |
||||
// 抚慰情况
|
||||
List<PieItem> comfortSituation; |
||||
// 民辅警受伤情况
|
||||
// 发案情况占比
|
||||
} |
||||
Loading…
Reference in new issue