|
@@ -106,7 +106,7 @@ public class ShopUserTypeComponent {
|
|
|
String dateString = userShopExtMapper.searchRunTime();
|
|
String dateString = userShopExtMapper.searchRunTime();
|
|
|
// 截取前3位毫秒数
|
|
// 截取前3位毫秒数
|
|
|
String truncatedDate = dateString.substring(0, dateString.lastIndexOf('.') + 4);
|
|
String truncatedDate = dateString.substring(0, dateString.lastIndexOf('.') + 4);
|
|
|
- SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS");
|
|
|
|
|
|
|
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm");
|
|
|
Date date = sdf.parse(truncatedDate);
|
|
Date date = sdf.parse(truncatedDate);
|
|
|
String runTime = sdf.format(date);
|
|
String runTime = sdf.format(date);
|
|
|
//获取上次同步时间进行增量同步
|
|
//获取上次同步时间进行增量同步
|
|
@@ -238,6 +238,7 @@ public class ShopUserTypeComponent {
|
|
|
SysUser userVoExt = sysUserMapper.selectUserByLoginName(loginName);
|
|
SysUser userVoExt = sysUserMapper.selectUserByLoginName(loginName);
|
|
|
// 新增用户与角色管理
|
|
// 新增用户与角色管理
|
|
|
user.setUserId(userVoExt.getUserId());
|
|
user.setUserId(userVoExt.getUserId());
|
|
|
|
|
+ user.setShopType(usertype);
|
|
|
sysUserService.insertShopUserRole(user);
|
|
sysUserService.insertShopUserRole(user);
|
|
|
/**======== 构建门店用户扩展信息表 start===============*/
|
|
/**======== 构建门店用户扩展信息表 start===============*/
|
|
|
SysUserShopExt shopExt = new SysUserShopExt();
|
|
SysUserShopExt shopExt = new SysUserShopExt();
|
|
@@ -283,6 +284,13 @@ public class ShopUserTypeComponent {
|
|
|
//用户id
|
|
//用户id
|
|
|
shopExt.setUserId(user.getUserId().toString());
|
|
shopExt.setUserId(user.getUserId().toString());
|
|
|
userShopExtMapper.insertSysUserShopExt(shopExt);
|
|
userShopExtMapper.insertSysUserShopExt(shopExt);
|
|
|
|
|
+ //去掉该用户和角色的关联关系
|
|
|
|
|
+ userRoleMapper.deleteUserRoleByUserIdAndExt(user.getUserId(),roleId,usertype);
|
|
|
|
|
+ user.setRoleId(roleId);
|
|
|
|
|
+ user.setUserId(user.getUserId());
|
|
|
|
|
+ user.setShopType(usertype);
|
|
|
|
|
+ sysUserService.insertShopUserRole(user);
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|