Prechádzať zdrojové kódy

处理养老机构数据问题

19266 1 rok pred
rodič
commit
84d7c773d7

+ 53 - 53
ruoyi-common/ruoyi-common-security/src/main/java/com/ruoyi/common/security/utils/SecurityUtils.java

@@ -110,60 +110,60 @@ public class SecurityUtils
             return str;
     }
     public static String masks(String str,int type){
-        int strcd = str != null ? str.length() : 0;
-        if (strcd > 0) {
-            if (type == 1)    //姓名
-            {
-                if (strcd > 1) {
-                    int cdc = strcd - 1;
-                    String reptext = "";
-                    for (int k = 0; k < cdc; k++) {
-                        reptext = reptext + "✱";
-                    }
-                    return reptext + str.substring(cdc);
-                }
-                else {
-                    return str;
-                }
-            }
-            else if (type == 2)//身份证号
-            {
-                if (strcd == 18) {
-                    return str.substring(0, 3) + "✱✱✱✱✱" + str.substring(8, 9) + "✱✱✱✱✱✱✱" + str.substring(16, 17) + "✱";
-                }
-                else {
-                    return maskA(str, 1);
-                }
-            }
-            else if (type == 3)//手机号
-            {
-                if (strcd == 11) {
-                    return str.substring(0, 2) + "✱✱✱✱✱✱✱✱" + str.substring(10, 11);
-                }
-                else {
-                    return maskA(str, 2);
-                }
-            }
-            else if (type == 4)//住址
-            {
-                return maskA(str, 2);
-            }
-            else if (type == 5)//邮件地址
-            {
-                return maskA(str, 2);
-            }
-            else if (type == 6)//邮件地址
-            {
-                return maskA(str, 1);
-            }
-            else  //其他
-            {
-                return str;
-            }
-        }
-        else {
+//        int strcd = str != null ? str.length() : 0;
+//        if (strcd > 0) {
+//            if (type == 1)    //姓名
+//            {
+//                if (strcd > 1) {
+//                    int cdc = strcd - 1;
+//                    String reptext = "";
+//                    for (int k = 0; k < cdc; k++) {
+//                        reptext = reptext + "✱";
+//                    }
+//                    return reptext + str.substring(cdc);
+//                }
+//                else {
+//                    return str;
+//                }
+//            }
+//            else if (type == 2)//身份证号
+//            {
+//                if (strcd == 18) {
+//                    return str.substring(0, 3) + "✱✱✱✱✱" + str.substring(8, 9) + "✱✱✱✱✱✱✱" + str.substring(16, 17) + "✱";
+//                }
+//                else {
+//                    return maskA(str, 1);
+//                }
+//            }
+//            else if (type == 3)//手机号
+//            {
+//                if (strcd == 11) {
+//                    return str.substring(0, 2) + "✱✱✱✱✱✱✱✱" + str.substring(10, 11);
+//                }
+//                else {
+//                    return maskA(str, 2);
+//                }
+//            }
+//            else if (type == 4)//住址
+//            {
+//                return maskA(str, 2);
+//            }
+//            else if (type == 5)//邮件地址
+//            {
+//                return maskA(str, 2);
+//            }
+//            else if (type == 6)//邮件地址
+//            {
+//                return maskA(str, 1);
+//            }
+//            else  //其他
+//            {
+//                return str;
+//            }
+//        }
+//        else {
             return str;
-        }
+//        }
     }
     public static String sm4encrypt_CBC(String key,String iv,String data){
         SM4Utils sm4 = new SM4Utils();

+ 5 - 5
ruoyi-ui/src/views/organization/zwyw/babgsq/module/index.vue

@@ -278,7 +278,7 @@
                 </el-form-item>
                 <el-form-item label="证件类型" prop="barZjlx" class="formWidth">
                   <el-select v-model="form.barZjlx" placeholder="请选择法定代表人或负责人证件类型" @change="changeBarzjlx">
-                    <el-option v-for="dict in dict.type.C0015" :key="dict.value" :label="dict.label"
+                    <el-option v-for="dict in dict.type.XZ127" :key="dict.value" :label="dict.label"
                       :value="dict.value"></el-option>
                   </el-select>
                 </el-form-item>
@@ -304,7 +304,7 @@
                 <el-form-item label="申请人证件类型" prop="babgZjlx" class="formWidth">
                   <el-select v-model="form.babgZjlx" placeholder="请选择法定代表人或负责人证件类型"
                     @change="changeBabgZjlx(form.babgZjlx)">
-                    <el-option v-for="dict in dict.type.C0015" :key="dict.value" :label="dict.label"
+                    <el-option v-for="dict in dict.type.XZ127" :key="dict.value" :label="dict.label"
                       :value="dict.value"></el-option>
                   </el-select>
                 </el-form-item>
@@ -443,7 +443,7 @@ import { decryptData_ECB, decryptRowData_ECB, decrypt_ECB } from "@/api/tool/sm4
 
 export default {
   name: 'Module',
-  dicts: ['CH010', 'CZ035', 'XZ036', 'CH052', 'CZ005', 'CZ026', 'CZ004', 'C0038', 'C0015', 'CH012', 'CH007', 'CH009', 'XZ065', 'XZ070'],
+  dicts: ['CH010', 'CZ035', 'XZ036', 'CH052', 'CZ005', 'CZ026', 'CZ004', 'C0038', 'C0015', 'CH012', 'CH007', 'CH009', 'XZ065', 'XZ070','XZ127'],
   data() {
     return {
       decodeStr: {},
@@ -768,7 +768,7 @@ export default {
         title: '机构备案人信息', data: [
           [
             { type: 'text', data: '备案人姓名' }, { type: 'value', data: 'barXm' },
-            { type: 'text', data: '证件类型' }, { type: 'dict', data: 'barZjlx', dict: 'C0015' },
+            { type: 'text', data: '证件类型' }, { type: 'dict', data: 'barZjlx', dict: 'XZ127' },
             { type: 'text', data: '证件号码' }, { type: 'value', data: 'barZjhm' },
           ],
           [
@@ -786,7 +786,7 @@ export default {
             { type: 'text', data: '申请人姓名' },
             { type: 'value', data: 'babgXm' },
             { type: 'text', data: '申请人证件类型' },
-            { type: 'dict', data: 'babgZjlx', dict: 'C0015' },
+            { type: 'dict', data: 'babgZjlx', dict: 'XZ127' },
             { type: 'text', data: '申请人证件号码' },
             { type: 'value', data: 'babgSfzhm' },
           ],