洪城义警-正式版后台
zengh
2022-05-25 297deb3e5857217a3072ae8e99daed7d5547f192
1、资讯模糊匹配修改
1 files modified
37 ■■■■■ changed files
src/main/java/org/springblade/modules/zc/controller/ZcController.java 37 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/zc/controller/ZcController.java
@@ -215,6 +215,12 @@
        SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String times = df.format(new Date());
        zc.setZctime(times);
        //保留未脱敏数据
        String names = zc.getSname();
        String cardids = zc.getCardid();
        String phones = zc.getPhone();
        //数据脱敏处理
        String name = DesensitizedUtil.desensitizedName(zc.getSname());
        String cardid = DesensitizedUtil.desensitizedIdNumber(zc.getCardid());
@@ -227,25 +233,28 @@
            throw new org.springblade.core.log.exception.ServiceException(StringUtil.format("当前用户 [{}] 已存在!", zc.getUsername()));
        }
        //内网储存完整数据
        String s = "insert into act_zc(id,username,password,sname,sex,phone,zctime,parent_id,jurisdiction,cardid,address)" +
            "values(" + "'" + zc.getId() + "'" +
            "," + "'" + zc.getUsername() + "'" +
            "," + "'" + zc.getPassword() + "'" +
            "," + "'" + zc.getSname() + "'" +
            "," + "'" + zc.getSex() + "'" +
            "," + "'" + zc.getPhone() + "'" +
            "," + "'" + zc.getZctime() + "'" +
            "," + "'" + zc.getParentId() + "'" +
            "," + "'" + zc.getJurisdiction() + "'" +
            "," + "'" + zc.getCardid() + "'" +
            "," + "'" + zc.getAddress() + "'"
            + ")";
        zc.setSname(name);
        zc.setCardid(cardid);
        zc.setPhone(phone);
        zcService.inster(zc);
        //内网储存完整数据
        String s = "insert into act_zc(id,username,password,sname,sex,phone,zctime,parent_id,jurisdiction,cardid,address)" +
            "values(" + "'" + zc.getId() + "'" +
            "," + "'" + zc.getUsername() + "'" +
            "," + "'" + zc.getPassword() + "'" +
            "," + "'" + names + "'" +
            "," + "'" + zc.getSex() + "'" +
            "," + "'" + phones + "'" +
            "," + "'" + zc.getZctime() + "'" +
            "," + "'" + zc.getParentId() + "'" +
            "," + "'" + zc.getJurisdiction() + "'" +
            "," + "'" + cardids + "'" +
            "," + "'" + zc.getAddress() + "'"
            + ")";
        //同时新增到用户表
        User user = new User();
        user.setAccount(zc.getUsername());