|
|
|
@ -137,7 +137,7 @@ public class LoginPersonModel {
|
|
|
|
|
int flag = 0;
|
|
|
|
|
try {
|
|
|
|
|
String sql = Db.getSql("loginPerson.getIdCardIsExist");
|
|
|
|
|
List<Record> list = Db.find(sql, MysqlAesUtil.Encrypt(id_card));
|
|
|
|
|
List<Record> list = Db.find(sql, id_card);
|
|
|
|
|
if (list.size() > 0) {
|
|
|
|
|
flag = 1;
|
|
|
|
|
}
|
|
|
|
@ -160,7 +160,7 @@ public class LoginPersonModel {
|
|
|
|
|
int flag = 0;
|
|
|
|
|
try {
|
|
|
|
|
String sql = Db.getSql("loginPerson.getIdCardIsExistByPersonId");
|
|
|
|
|
List<Record> list = Db.find(sql, MysqlAesUtil.Encrypt(id_card), person_id);
|
|
|
|
|
List<Record> list = Db.find(sql, id_card, person_id);
|
|
|
|
|
if (list.size() > 0) {
|
|
|
|
|
flag = 1;
|
|
|
|
|
}
|
|
|
|
@ -184,7 +184,7 @@ public class LoginPersonModel {
|
|
|
|
|
try {
|
|
|
|
|
String sql = Db.getSql("loginPerson.getTelephoneIsExist");
|
|
|
|
|
//检查加密后的手机号是不是重复
|
|
|
|
|
String aes_telephone = MysqlAesUtil.Encrypt(telephone);
|
|
|
|
|
String aes_telephone = telephone;
|
|
|
|
|
List<Record> list = Db.find(sql, aes_telephone);
|
|
|
|
|
if (list.size() > 0) {
|
|
|
|
|
flag = 1;
|
|
|
|
@ -209,7 +209,7 @@ public class LoginPersonModel {
|
|
|
|
|
try {
|
|
|
|
|
String sql = Db.getSql("loginPerson.getTelephoneIsExistByPersonId");
|
|
|
|
|
//检查加密后的手机号是不是重复
|
|
|
|
|
String aes_telephone = MysqlAesUtil.Encrypt(telephone);
|
|
|
|
|
String aes_telephone = telephone;
|
|
|
|
|
List<Record> list = Db.find(sql, aes_telephone, person_id);
|
|
|
|
|
if (list.size() > 0) {
|
|
|
|
|
flag = 1;
|
|
|
|
|