|
|
@ -97,7 +97,7 @@ export class PersonalIdGenerator { |
|
|
|
tempGender = randomGenerator.generate(1, 999) > 500 ? Gender.FEMALE : Gender.MALE |
|
|
|
tempGender = randomGenerator.generate(1, 999) > 500 ? Gender.FEMALE : Gender.MALE |
|
|
|
} |
|
|
|
} |
|
|
|
console.log(year, 'year', typeof year) |
|
|
|
console.log(year, 'year', typeof year) |
|
|
|
return Gender.MALE === tempGender ? (year > 2000 ? '3' : '5') : (year < 2000 ? '4' : '6') |
|
|
|
return Gender.MALE === tempGender ? (year < 2000 ? '3' : '5') : (year < 2000 ? '4' : '6') |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|