注册新增登录时间及次数

main
cheney 10 months ago
parent e7eff1902d
commit 20c544fbee
  1. 8
      nakadai/src/main/java/com/huoran/nakadai/mapper/xml/HrStaffMapper.xml
  2. 1
      nakadai/src/main/java/com/huoran/nakadai/service/impl/PlatformTeamAccountServiceImpl.java

@ -6,17 +6,17 @@
<insert id="addUserInfo" parameterType="com.huoran.nakadai.entity.UserInfo" useGeneratedKeys="true"
keyProperty="userId">
INSERT INTO nakadai.hr_user_info (user_name, unique_identification, email,role_id,school_id,create_time,
update_time,user_avatars)
VALUES (#{userName}, #{uniqueIdentification}, #{email},0,0,now(), now(),#{userAvatars})
update_time,user_avatars,last_login_time,login_number)
VALUES (#{userName}, #{uniqueIdentification}, #{email},0,0,now(), now(),#{userAvatars},now(),#{loginNumber})
</insert>
<!--新增账号信息-->
<insert id="addUserAccount" parameterType="com.huoran.common.entity.UserAccount" useGeneratedKeys="true"
keyProperty="id">
INSERT INTO nakadai.hr_user_account(user_id, account,phone , password, work_number, school_id, platform_id,
type, create_time, update_time,app_open_id)
type, create_time, update_time,app_open_id,platform_bind_time,phone_binding_time)
VALUES (#{userId}, #{account},#{phone}, #{password}, #{workNumber}, 0, #{platformId}, #{type},
now(), now(),#{appOpenId})
now(), now(),#{appOpenId},now(),now())
</insert>
<update id="modifyUserInfo" parameterType="com.huoran.nakadai.entity.UserInfo">

@ -310,7 +310,6 @@ public class PlatformTeamAccountServiceImpl extends ServiceImpl<PlatformTeamAcco
UserInfo userInfo = new UserInfo();
userInfo.setUserName(userName);
userInfo.setLoginNumber(1);
userInfo.setLastLoginTime(new Date());
staffMapper.addUserInfo(userInfo);
// 创建并设置用户账户

Loading…
Cancel
Save