|
@@ -438,11 +438,9 @@ public class TaPersonServiceImpl extends ServiceImpl<TaPersonMapper, TaPerson> i
|
438
|
438
|
taPerson.setStatus(CommConstant.STATUS_NORMAL);
|
439
|
439
|
taPerson.setCreateDate(LocalDateTime.now());
|
440
|
440
|
if (taPersonMapper.insert(taPerson) > 0) {
|
441
|
|
- taPersonMapper.upDatePersonCityToId(taPerson.getPersonId());
|
442
|
441
|
return taPerson;
|
443
|
442
|
}
|
444
|
443
|
} else {
|
445
|
|
- taPersonMapper.upDatePersonCityToId(taPersons.get(0).getPersonId());
|
446
|
444
|
return taPersons.get(0);
|
447
|
445
|
}
|
448
|
446
|
|
|
@@ -717,6 +715,10 @@ public class TaPersonServiceImpl extends ServiceImpl<TaPersonMapper, TaPerson> i
|
717
|
715
|
return page;
|
718
|
716
|
|
719
|
717
|
}
|
|
718
|
+ @Override
|
|
719
|
+ public void upDatePersonCityToId (String personId){
|
|
720
|
+ taPersonMapper.upDatePersonCityToId(personId);
|
|
721
|
+ }
|
720
|
722
|
|
721
|
723
|
public String codeGenerator (){
|
722
|
724
|
double r = Math.random();
|