|
@@ -1161,16 +1161,42 @@ public class CustomerApiController {
|
|
|
|
|
|
if(mp.containsKey("idcard")){
|
|
if(mp.containsKey("idcard")){
|
|
customer.setIdType("身份证");
|
|
customer.setIdType("身份证");
|
|
- customer.setIdCard("\t"+jsonOb.getString("idcard"));
|
|
|
|
|
|
+ // customer.setIdCard("\t"+jsonOb.getString("idcard"));
|
|
|
|
+ String idcard = jsonOb.getString("idcard");
|
|
|
|
+ if(idcard.length()>6){
|
|
|
|
+ customer.setIdCard("\t"+idcard.replaceAll(idcard.substring(idcard.length()-6), "******"));
|
|
|
|
+ }else{
|
|
|
|
+ customer.setIdCard("\t"+"******");
|
|
|
|
+ }
|
|
}else if(mp.containsKey("passport")){
|
|
}else if(mp.containsKey("passport")){
|
|
customer.setIdType("护照");
|
|
customer.setIdType("护照");
|
|
- customer.setIdCard("\t"+jsonOb.getString("passport"));
|
|
|
|
|
|
+ // customer.setIdCard("\t"+jsonOb.getString("passport"));
|
|
|
|
+ String passport = jsonOb.getString("passport");
|
|
|
|
+
|
|
|
|
+ if(passport.length()>6){
|
|
|
|
+ customer.setIdCard("\t"+passport.replaceAll(passport.substring(passport.length()-6), "******"));
|
|
|
|
+ }else{
|
|
|
|
+ customer.setIdCard("\t"+"******");
|
|
|
|
+ }
|
|
}else if(mp.containsKey("dlicense")){
|
|
}else if(mp.containsKey("dlicense")){
|
|
customer.setIdType("驾驶证");
|
|
customer.setIdType("驾驶证");
|
|
- customer.setIdCard("\t"+jsonOb.getString("dlicense"));
|
|
|
|
|
|
+ // customer.setIdCard("\t"+jsonOb.getString("dlicense"));
|
|
|
|
+ String dlicense = jsonOb.getString("dlicense");
|
|
|
|
+
|
|
|
|
+ if(dlicense.length()>6){
|
|
|
|
+ customer.setIdCard("\t"+dlicense.replaceAll(dlicense.substring(dlicense.length()-6), "******"));
|
|
|
|
+ }else{
|
|
|
|
+ customer.setIdCard("\t"+"******");
|
|
|
|
+ }
|
|
}else if(mp.containsKey("otheridnumber")){
|
|
}else if(mp.containsKey("otheridnumber")){
|
|
customer.setIdType("其它证件类型");
|
|
customer.setIdType("其它证件类型");
|
|
- customer.setIdCard("\t"+jsonOb.getString("otheridnumber"));
|
|
|
|
|
|
+ // customer.setIdCard("\t"+jsonOb.getString("otheridnumber"));
|
|
|
|
+ String otheridnumber = jsonOb.getString("otheridnumber");
|
|
|
|
+ if(otheridnumber.length()>6){
|
|
|
|
+ customer.setIdCard("\t"+otheridnumber.replaceAll(otheridnumber.substring(otheridnumber.length()-6), "******"));
|
|
|
|
+ }else{
|
|
|
|
+ customer.setIdCard("\t"+"******");
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
customers.add(customer);
|
|
customers.add(customer);
|
|
@@ -1249,16 +1275,42 @@ public class CustomerApiController {
|
|
|
|
|
|
if(mp.containsKey("idcard")){
|
|
if(mp.containsKey("idcard")){
|
|
customer.setIdType("身份证");
|
|
customer.setIdType("身份证");
|
|
- customer.setIdCard("\t"+jsonOb.getString("idcard"));
|
|
|
|
|
|
+ // customer.setIdCard("\t"+jsonOb.getString("idcard"));
|
|
|
|
+ String idcard = jsonOb.getString("idcard");
|
|
|
|
+ if(idcard.length()>6){
|
|
|
|
+ customer.setIdCard("\t"+idcard.replaceAll(idcard.substring(idcard.length()-6), "******"));
|
|
|
|
+ }else{
|
|
|
|
+ customer.setIdCard("\t"+"******");
|
|
|
|
+ }
|
|
}else if(mp.containsKey("passport")){
|
|
}else if(mp.containsKey("passport")){
|
|
customer.setIdType("护照");
|
|
customer.setIdType("护照");
|
|
- customer.setIdCard("\t"+jsonOb.getString("passport"));
|
|
|
|
|
|
+ // customer.setIdCard("\t"+jsonOb.getString("passport"));
|
|
|
|
+ String passport = jsonOb.getString("passport");
|
|
|
|
+
|
|
|
|
+ if(passport.length()>6){
|
|
|
|
+ customer.setIdCard("\t"+passport.replaceAll(passport.substring(passport.length()-6), "******"));
|
|
|
|
+ }else{
|
|
|
|
+ customer.setIdCard("\t"+"******");
|
|
|
|
+ }
|
|
}else if(mp.containsKey("dlicense")){
|
|
}else if(mp.containsKey("dlicense")){
|
|
customer.setIdType("驾驶证");
|
|
customer.setIdType("驾驶证");
|
|
- customer.setIdCard("\t"+jsonOb.getString("dlicense"));
|
|
|
|
|
|
+ // customer.setIdCard("\t"+jsonOb.getString("dlicense"));
|
|
|
|
+ String dlicense = jsonOb.getString("dlicense");
|
|
|
|
+
|
|
|
|
+ if(dlicense.length()>6){
|
|
|
|
+ customer.setIdCard("\t"+dlicense.replaceAll(dlicense.substring(dlicense.length()-6), "******"));
|
|
|
|
+ }else{
|
|
|
|
+ customer.setIdCard("\t"+"******");
|
|
|
|
+ }
|
|
}else if(mp.containsKey("otheridnumber")){
|
|
}else if(mp.containsKey("otheridnumber")){
|
|
customer.setIdType("其它证件类型");
|
|
customer.setIdType("其它证件类型");
|
|
- customer.setIdCard("\t"+jsonOb.getString("otheridnumber"));
|
|
|
|
|
|
+ // customer.setIdCard("\t"+jsonOb.getString("otheridnumber"));
|
|
|
|
+ String otheridnumber = jsonOb.getString("otheridnumber");
|
|
|
|
+ if(otheridnumber.length()>6){
|
|
|
|
+ customer.setIdCard("\t"+otheridnumber.replaceAll(otheridnumber.substring(otheridnumber.length()-6), "******"));
|
|
|
|
+ }else{
|
|
|
|
+ customer.setIdCard("\t"+"******");
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
customers.add(customer);
|
|
customers.add(customer);
|
|
@@ -1337,16 +1389,42 @@ public class CustomerApiController {
|
|
|
|
|
|
if(mp.containsKey("idcard")){
|
|
if(mp.containsKey("idcard")){
|
|
customer.setIdType("身份证");
|
|
customer.setIdType("身份证");
|
|
- customer.setIdCard("\t"+jsonOb.getString("idcard"));
|
|
|
|
|
|
+ // customer.setIdCard("\t"+jsonOb.getString("idcard"));
|
|
|
|
+ String idcard = jsonOb.getString("idcard");
|
|
|
|
+ if(idcard.length()>6){
|
|
|
|
+ customer.setIdCard("\t"+idcard.replaceAll(idcard.substring(idcard.length()-6), "******"));
|
|
|
|
+ }else{
|
|
|
|
+ customer.setIdCard("\t"+"******");
|
|
|
|
+ }
|
|
}else if(mp.containsKey("passport")){
|
|
}else if(mp.containsKey("passport")){
|
|
customer.setIdType("护照");
|
|
customer.setIdType("护照");
|
|
- customer.setIdCard("\t"+jsonOb.getString("passport"));
|
|
|
|
|
|
+ // customer.setIdCard("\t"+jsonOb.getString("passport"));
|
|
|
|
+ String passport = jsonOb.getString("passport");
|
|
|
|
+
|
|
|
|
+ if(passport.length()>6){
|
|
|
|
+ customer.setIdCard("\t"+passport.replaceAll(passport.substring(passport.length()-6), "******"));
|
|
|
|
+ }else{
|
|
|
|
+ customer.setIdCard("\t"+"******");
|
|
|
|
+ }
|
|
}else if(mp.containsKey("dlicense")){
|
|
}else if(mp.containsKey("dlicense")){
|
|
customer.setIdType("驾驶证");
|
|
customer.setIdType("驾驶证");
|
|
- customer.setIdCard("\t"+jsonOb.getString("dlicense"));
|
|
|
|
|
|
+ // customer.setIdCard("\t"+jsonOb.getString("dlicense"));
|
|
|
|
+ String dlicense = jsonOb.getString("dlicense");
|
|
|
|
+
|
|
|
|
+ if(dlicense.length()>6){
|
|
|
|
+ customer.setIdCard("\t"+dlicense.replaceAll(dlicense.substring(dlicense.length()-6), "******"));
|
|
|
|
+ }else{
|
|
|
|
+ customer.setIdCard("\t"+"******");
|
|
|
|
+ }
|
|
}else if(mp.containsKey("otheridnumber")){
|
|
}else if(mp.containsKey("otheridnumber")){
|
|
customer.setIdType("其它证件类型");
|
|
customer.setIdType("其它证件类型");
|
|
- customer.setIdCard("\t"+jsonOb.getString("otheridnumber"));
|
|
|
|
|
|
+ // customer.setIdCard("\t"+jsonOb.getString("otheridnumber"));
|
|
|
|
+ String otheridnumber = jsonOb.getString("otheridnumber");
|
|
|
|
+ if(otheridnumber.length()>6){
|
|
|
|
+ customer.setIdCard("\t"+otheridnumber.replaceAll(otheridnumber.substring(otheridnumber.length()-6), "******"));
|
|
|
|
+ }else{
|
|
|
|
+ customer.setIdCard("\t"+"******");
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
customers.add(customer);
|
|
customers.add(customer);
|
|
@@ -1426,16 +1504,42 @@ public class CustomerApiController {
|
|
|
|
|
|
if(mp.containsKey("idcard")){
|
|
if(mp.containsKey("idcard")){
|
|
customer.setIdType("身份证");
|
|
customer.setIdType("身份证");
|
|
- customer.setIdCard("\t"+jsonOb.getString("idcard"));
|
|
|
|
|
|
+ // customer.setIdCard("\t"+jsonOb.getString("idcard"));
|
|
|
|
+ String idcard = jsonOb.getString("idcard");
|
|
|
|
+ if(idcard.length()>6){
|
|
|
|
+ customer.setIdCard("\t"+idcard.replaceAll(idcard.substring(idcard.length()-6), "******"));
|
|
|
|
+ }else{
|
|
|
|
+ customer.setIdCard("\t"+"******");
|
|
|
|
+ }
|
|
}else if(mp.containsKey("passport")){
|
|
}else if(mp.containsKey("passport")){
|
|
customer.setIdType("护照");
|
|
customer.setIdType("护照");
|
|
- customer.setIdCard("\t"+jsonOb.getString("passport"));
|
|
|
|
|
|
+ // customer.setIdCard("\t"+jsonOb.getString("passport"));
|
|
|
|
+ String passport = jsonOb.getString("passport");
|
|
|
|
+
|
|
|
|
+ if(passport.length()>6){
|
|
|
|
+ customer.setIdCard("\t"+passport.replaceAll(passport.substring(passport.length()-6), "******"));
|
|
|
|
+ }else{
|
|
|
|
+ customer.setIdCard("\t"+"******");
|
|
|
|
+ }
|
|
}else if(mp.containsKey("dlicense")){
|
|
}else if(mp.containsKey("dlicense")){
|
|
customer.setIdType("驾驶证");
|
|
customer.setIdType("驾驶证");
|
|
- customer.setIdCard("\t"+jsonOb.getString("dlicense"));
|
|
|
|
|
|
+ // customer.setIdCard("\t"+jsonOb.getString("dlicense"));
|
|
|
|
+ String dlicense = jsonOb.getString("dlicense");
|
|
|
|
+
|
|
|
|
+ if(dlicense.length()>6){
|
|
|
|
+ customer.setIdCard("\t"+dlicense.replaceAll(dlicense.substring(dlicense.length()-6), "******"));
|
|
|
|
+ }else{
|
|
|
|
+ customer.setIdCard("\t"+"******");
|
|
|
|
+ }
|
|
}else if(mp.containsKey("otheridnumber")){
|
|
}else if(mp.containsKey("otheridnumber")){
|
|
customer.setIdType("其它证件类型");
|
|
customer.setIdType("其它证件类型");
|
|
- customer.setIdCard("\t"+jsonOb.getString("otheridnumber"));
|
|
|
|
|
|
+ // customer.setIdCard("\t"+jsonOb.getString("otheridnumber"));
|
|
|
|
+ String otheridnumber = jsonOb.getString("otheridnumber");
|
|
|
|
+ if(otheridnumber.length()>6){
|
|
|
|
+ customer.setIdCard("\t"+otheridnumber.replaceAll(otheridnumber.substring(otheridnumber.length()-6), "******"));
|
|
|
|
+ }else{
|
|
|
|
+ customer.setIdCard("\t"+"******");
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|