``` refactor(db): 移除SQL语句中的public schema前缀
This commit is contained in:
@@ -116,7 +116,7 @@ export function getGenderAndAge(idCard) {
|
||||
const day = birthDate.substr(6, 2);
|
||||
const dateOfBirth = new Date(`${year}-${month}-${day}`);
|
||||
// 计算年龄
|
||||
const age = new Date().getFullYear() - dateOfBirth.getFullYear();
|
||||
let age = new Date().getFullYear() - dateOfBirth.getFullYear();
|
||||
const m = new Date().getMonth() - dateOfBirth.getMonth();
|
||||
if (m < 0 || (m === 0 && new Date().getDate() < dateOfBirth.getDate())) {
|
||||
age--;
|
||||
|
||||
Reference in New Issue
Block a user