Browse Source

fix: 1、维权大屏优化(受侵害人数);

master
pengwei 8 months ago
parent
commit
44276325c5
  1. 8
      src/main/java/com/biutag/supervision/mapper/RpcApplyMapper.java

8
src/main/java/com/biutag/supervision/mapper/RpcApplyMapper.java

@ -43,8 +43,8 @@ public interface RpcApplyMapper extends BaseMapper<RpcApply> {
@Select(" SELECT COUNT(*) from rpc_apply_person a LEFT JOIN rpc_apply b " + @Select(" SELECT COUNT(*) from rpc_apply_person a LEFT JOIN rpc_apply b " +
" on a.rpc_id = b.rpc_id and b.type =1 " + " on a.rpc_id = b.rpc_id and b.type =1 " +
" WHERE b.rpc_id is not null " + " WHERE b.rpc_id is not null " +
" and b.crt_time BETWEEN #{beginTime} and ${endTime} ") " and b.crt_time BETWEEN #{beginTime} and #{endTime} ")
Integer selectVictimNumber(Date beginTime, Date endTime); int selectVictimNumber(Date beginTime, Date endTime);
/** /**
* 获取受侵害人数(根据分县) * 获取受侵害人数(根据分县)
@ -52,9 +52,9 @@ public interface RpcApplyMapper extends BaseMapper<RpcApply> {
@Select(" SELECT COUNT(*) from rpc_apply_person a LEFT JOIN rpc_apply b " + @Select(" SELECT COUNT(*) from rpc_apply_person a LEFT JOIN rpc_apply b " +
" on a.rpc_id = b.rpc_id and b.type =1 " + " on a.rpc_id = b.rpc_id and b.type =1 " +
" WHERE b.rpc_id is not null " + " WHERE b.rpc_id is not null " +
" and b.crt_time BETWEEN #{beginTime} and ${endTime} " + " and b.crt_time BETWEEN #{beginTime} and #{endTime} " +
" and b.second_depart_id = #{deptId} ") " and b.second_depart_id = #{deptId} ")
Integer selectVictimNumberByOrg(Date beginTime, Date endTime,String deptId); int selectVictimNumberByOrg(Date beginTime, Date endTime,String deptId);
@Select("SELECT " + @Select("SELECT " +

Loading…
Cancel
Save