| | |
| | | return s.substring(0,5)+"*******"+s.substring(l-6,l); |
| | | } |
| | | |
| | | |
| | | public static String carCodeTuominStr(String s){ |
| | | if(StringUtils.isEmpty(s)){ |
| | | return ""; |
| | | } |
| | | int l = s.length(); |
| | | if(Constants.equalsInteger(l,7)){ |
| | | return s.substring(0,3)+"***"+s.substring(l-1,l); |
| | | } |
| | | if(l <= 8){ |
| | | return s.substring(0,3)+"****"+s.substring(l-1,l); |
| | | } |
| | | return s; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 切分逗号拼接的整形集合 |
| | | * @param memberIds |
| | |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | System.out.println(Constants.getVehiclePlateNo("皖AA10991").getDescription()); |
| | | System.out.println(Constants.carCodeTuominStr("皖A10991")); |
| | | System.out.println(Constants.carCodeTuominStr("皖AA10991")); |
| | | // System.out.println(Constants.getVehiclePlateNo("湘B140D17").getDescription()); |
| | | // System.out.println(Constants.getVehiclePlateNo("宿AP0637").getDescription()); |
| | | |
| | |
| | | return reqJson; |
| | | } |
| | | |
| | | |
| | | public enum NoticeType { |
| | | |
| | | ZERO(0, "待审核","","","待审核","待处理","处理中"), |
| | | ONE(1, "企业待签署","","","工种待审核","","已结案"), |
| | | TWO(2, "待出单","待审核","待审核","","",""), |
| | | THREE(3, "申请退回","申请退回","申请退回","","",""), |
| | | FOUR(4, "已退回","已退回","已退回","","","已撤销"), |
| | | FIVE(5, "申请驳回","申请驳回","申请驳回","","",""), |
| | | //续保通知 |
| | | SIX(6, "","","","","",""), |
| | | //商户端 委托保 - 投保待审核 加减保 换厂 待审核 |
| | | SEVEN(7, "待审核","待审核","待审核","","",""), |
| | | EIGHT(8, "","","","","",""), |
| | | NINE(9, "","","","","",""), |
| | | ; |
| | | |
| | | // 成员变量 |
| | | private int status; |
| | | private String insuranceApplyDetail; |
| | | private String applyChangeDetail; |
| | | private String changeFactoryDetail; |
| | | private String dispatchUnitDetail; |
| | | private String taxesDetail; |
| | | private String settleClaimsDetail; |
| | | |
| | | // 构造方法 |
| | | NoticeType(int status, String insuranceApplyDetail,String applyChangeDetail |
| | | , String changeFactoryDetail,String dispatchUnitDetail |
| | | , String taxesDetail,String settleClaimsDetail) { |
| | | this.status = status; |
| | | this.insuranceApplyDetail = insuranceApplyDetail; |
| | | this.applyChangeDetail = applyChangeDetail; |
| | | this.changeFactoryDetail = changeFactoryDetail; |
| | | this.dispatchUnitDetail = dispatchUnitDetail; |
| | | this.taxesDetail = taxesDetail; |
| | | this.settleClaimsDetail = settleClaimsDetail; |
| | | } |
| | | |
| | | |
| | | // get set 方法 |
| | | public int getStatus() { |
| | | return status; |
| | | } |
| | | |
| | | public void setStatus(int status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | public String getInsuranceApplyDetail() { |
| | | return insuranceApplyDetail; |
| | | } |
| | | |
| | | public void setInsuranceApplyDetail(String name) { |
| | | this.insuranceApplyDetail = insuranceApplyDetail; |
| | | } |
| | | |
| | | public String getApplyChangeDetail() { |
| | | return applyChangeDetail; |
| | | } |
| | | |
| | | public void setApplyChangeDetail(String info) { |
| | | this.applyChangeDetail = applyChangeDetail; |
| | | } |
| | | |
| | | public String getChangeFactoryDetail() { |
| | | return changeFactoryDetail; |
| | | } |
| | | |
| | | public void setChangeFactoryDetail(String info) { |
| | | this.changeFactoryDetail = changeFactoryDetail; |
| | | } |
| | | |
| | | public String getDispatchUnitDetail() { |
| | | return dispatchUnitDetail; |
| | | } |
| | | |
| | | public void setDispatchUnitDetail(String info) { |
| | | this.dispatchUnitDetail = dispatchUnitDetail; |
| | | } |
| | | |
| | | public String getTaxesDetail() { |
| | | return taxesDetail; |
| | | } |
| | | |
| | | public void setTaxesDetail(String info) { |
| | | this.taxesDetail = taxesDetail; |
| | | } |
| | | |
| | | public String getSettleClaimsDetail() { |
| | | return settleClaimsDetail; |
| | | } |
| | | |
| | | public void setSettleClaimsDetail(String info) { |
| | | this.settleClaimsDetail = settleClaimsDetail; |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | public enum PlatformWarnEvent { |
| | | STOP_TIMEOUT(0, "停靠超时","${carCode}月台停靠超时" ), |
| | |
| | | 4. 超时停靠:皖A12345月台停靠超时,请尽快驶离请尽快驶离 |
| | | */ |
| | | public enum PlatformBroadcastContent { |
| | | CALLING(1, "叫号中"," ${param}请前往${param2}等待作业"), |
| | | CALLING(1, "叫号中","${param}请前往${param2}等待作业"), |
| | | DONE(2, "作业完成","${param}作业完成,请尽快驶离" ), |
| | | WRONG_IN(3, "错误停靠","${param}月台停靠错误,请尽快驶离" ), |
| | | TIMEOUT_IN(4, "超时停靠","${param}月台停靠超时,请尽快驶离请尽快驶离" ), |