package com.bcxin.tenant.domain.utils;

import org.apache.commons.lang3.StringUtils;

public class PassAssembleUtils {

    public static String assemble(String idNum, String passPrefix) {
        String password = idNum;
        if (idNum.length() > 6) {
            password = idNum.substring(idNum.length() - 6);
        }
        if(!StringUtils.isEmpty(passPrefix)){
            //Abcd@身份证后六位
            password = passPrefix + password;
        }
        return password;
    }
}
