|
@@ -40,14 +40,15 @@ public class BirthdayLogServiceImpl extends ServiceImpl<BirthdayLogMapper, Birth
|
|
|
* @return 查询记录
|
|
|
*/
|
|
|
@Override
|
|
|
- public boolean saveBirthdayLog(BirthdayLog birthdayLog){
|
|
|
+ public BirthdayLog saveBirthdayLog(BirthdayLog birthdayLog){
|
|
|
int count = birthdayLogMapper.selectBirthdayLogCount(birthdayLog);
|
|
|
|
|
|
if(count>0) {
|
|
|
log.info("当前查询8字已存在");
|
|
|
- return true;
|
|
|
+ return birthdayLogMapper.selectBirthdayLogId(birthdayLog);
|
|
|
} else {
|
|
|
- return this.save(birthdayLog);
|
|
|
+ this.save(birthdayLog);
|
|
|
+ return birthdayLogMapper.selectBirthdayLogId(birthdayLog);
|
|
|
}
|
|
|
|
|
|
}
|