Commit 7c84077d by 唐功亮

【修改】 修改手机号BUG

parent 4a46116f
......@@ -168,7 +168,7 @@ public class MemberServiceImpl extends ServiceImpl<MemberDao, MemberEntity> impl
String date = timescodeChphoneEntity.getDate();
String date_1 = DateUtils.getDay();
if (date_1.equals(date)) {
times = times + 1;
times_validate = times_validate + 1;
date = date_1;
//更新数据
timescodeChphoneDao.updateById(new TimescodeChphoneEntity(phone, date, times, times_validate));
......@@ -179,7 +179,7 @@ public class MemberServiceImpl extends ServiceImpl<MemberDao, MemberEntity> impl
}
} else {
//不是同一天修改 数据并初始化数据
times = 1;
times_validate = 1;
date = date_1;
timescodeChphoneDao.updateById(new TimescodeChphoneEntity(phone, date, times, times_validate));
flag = 1;
......@@ -370,6 +370,7 @@ public class MemberServiceImpl extends ServiceImpl<MemberDao, MemberEntity> impl
//不是同一天修改 数据并初始化数据
times = 1;
date = date_1;
times_validate=0;
timescodeChphoneDao.updateById(new TimescodeChphoneEntity(phone, date, times, times_validate));
flag = 1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment