| | |
| | | |
| | | import com.google.common.base.Strings; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springblade.modules.FTP.Result; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | desensitizedIdNumberBy4("360728199205280059"); |
| | | // desensitizedIdNumberBy4("360728199205280059"); |
| | | desensitizedSecurityNumber("赣洪202100124"); |
| | | String s = "赣洪202222124"; |
| | | |
| | | Map<String, Object> map = new HashMap<>(1); |
| | | String a = "sdafa-445sdaf-fsafdsaf"; |
| | | map.put(a,"abc"); |
| | | System.out.println("map = " + map.keySet()); |
| | | Object o = map.get(a); |
| | | System.out.println("o = " + o); |
| | | int min = 22110; |
| | | int max = 23110; |
| | | //截取,这个范围的不校验 |
| | | String pre = s.substring(0,6); |
| | | String number = s.substring(6); |
| | | if (pre.equals("赣洪2022")){ |
| | | int num = Integer.parseInt(number); |
| | | if (num>=22110 && num<=max){ |
| | | System.out.println("符合要求" + num); |
| | | } |
| | | } |
| | | |
| | | // Map<String, Object> map = new HashMap<>(1); |
| | | // String a = "sdafa-445sdaf-fsafdsaf"; |
| | | // map.put(a,"abc"); |
| | | // System.out.println("map = " + map.keySet()); |
| | | // Object o = map.get(a); |
| | | // System.out.println("o = " + o); |
| | | } |
| | | |
| | | |