|
@@ -41,8 +41,8 @@ public class ProductClassifyServiceImpl extends ServiceImpl<ProductClassifyMappe
|
|
|
public void transferClass() {
|
|
|
List<ProductClassify> list = this.list();
|
|
|
Map<String,Long> map = list.stream().distinct().collect(Collectors.toMap(ProductClassify::getYunfanId,ProductClassify::getId));
|
|
|
- List<SysUser> userList = iSysUserService.list(Wrappers.<SysUser>query().lambda().isNotNull(SysUser::getYfUserId));
|
|
|
- Map<String,Long> userMap = userList.stream().distinct().collect(Collectors.toMap(SysUser::getYfUserId,SysUser::getUserId));
|
|
|
+// List<SysUser> userList = iSysUserService.list(Wrappers.<SysUser>query().lambda().isNotNull(SysUser::getYfUserId));
|
|
|
+// Map<String,Long> userMap = userList.stream().distinct().collect(Collectors.toMap(SysUser::getYfUserId,SysUser::getUserId));
|
|
|
for(ProductClassify p : list){
|
|
|
if(StringUtils.equals(p.getYunfanParentId(),"0")){
|
|
|
p.setParentId(0L);
|
|
@@ -61,12 +61,12 @@ public class ProductClassifyServiceImpl extends ServiceImpl<ProductClassifyMappe
|
|
|
p.setParentIdSet(stringBuilder.toString());
|
|
|
}
|
|
|
}
|
|
|
- if(StringUtils.isNotEmpty(p.getCu())){
|
|
|
- p.setCreateUser(userMap.get(p.getCu()));
|
|
|
- }
|
|
|
- if(StringUtils.isNotEmpty(p.getUu())){
|
|
|
- p.setUpdateUser(userMap.get(p.getUu()));
|
|
|
- }
|
|
|
+// if(StringUtils.isNotEmpty(p.getCu())){
|
|
|
+// p.setCreateUser(userMap.get(p.getCu()));
|
|
|
+// }
|
|
|
+// if(StringUtils.isNotEmpty(p.getUu())){
|
|
|
+// p.setUpdateUser(userMap.get(p.getUu()));
|
|
|
+// }
|
|
|
}
|
|
|
this.updateBatchById(list);
|
|
|
}
|