Browse Source

fix:维权督办后端接口v3 + 现场督察办结率数据安装问题数排序

master
pengwei 8 months ago
parent
commit
e7ae412e50
  1. 3
      src/main/java/com/biutag/supervision/mapper/NegativeMapper.java
  2. 2
      src/main/java/com/biutag/supervision/mapper/RpcApplyPersonMapper.java
  3. 2
      src/main/java/com/biutag/supervision/mapper/RpcApplySuperviseMapper.java
  4. 2
      src/main/java/com/biutag/supervision/service/RpcApplySuperviseService.java

3
src/main/java/com/biutag/supervision/mapper/NegativeMapper.java

@ -149,7 +149,8 @@ public interface NegativeMapper extends BaseMapper<Negative> {
"AND sd.statistics_group_id=#{groupId} " + "AND sd.statistics_group_id=#{groupId} " +
"AND crtTime BETWEEN #{beginTime} AND #{endTime} " + "AND crtTime BETWEEN #{beginTime} AND #{endTime} " +
"GROUP BY sd.short_name " + "GROUP BY sd.short_name " +
"ORDER BY rate desc, denominator desc") "ORDER BY denominator desc")
//,rate desc
List<RankVo> getChangedRateRank(Date beginTime, Date endTime, Integer groupId); List<RankVo> getChangedRateRank(Date beginTime, Date endTime, Integer groupId);
@Select("SELECT npr.oneLevelContent as name, count(*) value FROM negative ng, negative_problem_relation npr " + @Select("SELECT npr.oneLevelContent as name, count(*) value FROM negative ng, negative_problem_relation npr " +

2
src/main/java/com/biutag/supervision/mapper/RpcApplyPersonMapper.java

@ -19,7 +19,7 @@ public interface RpcApplyPersonMapper extends BaseMapper<RpcApplyPerson> {
Page<RpcApplyVo> queryPage(@Param("page") Page<RpcApplySupervise> page, @Param(Constants.WRAPPER) QueryWrapper<RpcApplySupervise> queryWrapper); Page<RpcApplyVo> queryPage(@Param("page") Page<RpcApplySupervise> page, @Param(Constants.WRAPPER) QueryWrapper<RpcApplySupervise> queryWrapper);
@Select(" SELECT a.*,sup.job as empType,sup.name as empName from rpc_apply_person as a " + @Select(" SELECT a.*,sup.job_type as empType,sup.name as empName from rpc_apply_person as a " +
" left join sup_police as sup " + " left join sup_police as sup " +
" on a.emp_no = sup.emp_no where a.rpc_id = #{id} " ) " on a.emp_no = sup.emp_no where a.rpc_id = #{id} " )
List<RpcApplyPerson> selectPerson(String id); List<RpcApplyPerson> selectPerson(String id);

2
src/main/java/com/biutag/supervision/mapper/RpcApplySuperviseMapper.java

@ -22,7 +22,7 @@ public interface RpcApplySuperviseMapper extends BaseMapper<RpcApplySupervise>
" p.*, " + " p.*, " +
" ap.injury_severity AS injuryServerity, " + " ap.injury_severity AS injuryServerity, " +
" ap.injury_severity_name as injuryServerityName, " + " ap.injury_severity_name as injuryServerityName, " +
" sup.job AS policeJob " + " sup.job_type AS policeJob " +
" FROM " + " FROM " +
" rpc_apply_supervise a " + " rpc_apply_supervise a " +
" LEFT JOIN rpc_person p ON a.rpc_id = p.rpc_id " + " LEFT JOIN rpc_person p ON a.rpc_id = p.rpc_id " +

2
src/main/java/com/biutag/supervision/service/RpcApplySuperviseService.java

@ -89,7 +89,7 @@ public class RpcApplySuperviseService extends ServiceImpl<RpcApplySuperviseMappe
if (ArrayUtil.isNotEmpty(rpcInfringerResults)){ if (ArrayUtil.isNotEmpty(rpcInfringerResults)){
superviseVo.setRpcInfringerResults(rpcInfringerResults); superviseVo.setRpcInfringerResults(rpcInfringerResults);
} }
//获取被人信息 //获取被侵权人信息
List<RpcApplyPerson> rpcApplyPersonList =rpcApplyPersonMapper.selectPerson(id); List<RpcApplyPerson> rpcApplyPersonList =rpcApplyPersonMapper.selectPerson(id);
if(ArrayUtil.isNotEmpty(rpcApplyPersonList)){ if(ArrayUtil.isNotEmpty(rpcApplyPersonList)){
superviseVo.setRpcApplyPeoples(rpcApplyPersonList); superviseVo.setRpcApplyPeoples(rpcApplyPersonList);

Loading…
Cancel
Save