青羊经侦大队-数据平台
wl
2022-07-26 8a92712c881f3b487d926fe4638ff94bd414e4c1
报案人是否进群
2个文件已修改
12 ■■■■■ 已修改文件
src/main/java/com/example/jz/modle/vo/CauseReportVo.java 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/example/jz/service/impl/CauseServiceImpl.java 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/example/jz/modle/vo/CauseReportVo.java
@@ -22,6 +22,9 @@
    private String userIdcard;
    //是否代办 1(代办) 0(不是代办)
    private String isCommission;
    //是否代办 1(代办) 0(不是代办)
    private String isIntoGroup;
    //涉案金额
    private Double amountInvolved;
    //报案材料图片地址 多个用,分隔
src/main/java/com/example/jz/service/impl/CauseServiceImpl.java
@@ -128,7 +128,7 @@
    public PageParam<CauseReportVo> getReporterList(Integer causeId) {
        PageParam<Report> PageParam = new PageParam<>();
        PageParam<Report> reportPageParam = reportDao.selectPage(PageParam, new QueryWrapper<Report>().eq("cause_id", causeId));
        reportPageParam.getRecords().stream()
        List<CauseReportVo> causeReportVos = reportPageParam.getRecords().stream()
                .map(
                        a -> {
                            CauseReportVo causeReportVo = new CauseReportVo();
@@ -138,11 +138,18 @@
                            causeReportVo.setUserMobile(user.getUserMobile());
                            causeReportVo.setUserIdcard(causeReportVo.getUserIdcard().replaceAll("(?<=[\\d]{3})\\d(?=[\\d]{4})", "*"));
                            causeReportVo.setUserName(user.getRealName());
                            if (groupUserDao.selectOne(new QueryWrapper<GroupUser>().eq("user_id", a.getId())) == null) {
                                causeReportVo.setIsIntoGroup("0");
                            } else {
                                causeReportVo.setIsIntoGroup("1");
                            }
                            return causeReportVo;
                        }
                ).collect(Collectors.toList());
        PageParam<CauseReportVo> causeReportVoPageParam = new PageParam<>();
        BeanUtils.copyProperties(reportPageParam, causeReportVoPageParam);
        causeReportVoPageParam.setRecords(causeReportVos);
        return causeReportVoPageParam;
    }