用户标签
parent
a7f9e22c50
commit
4e81ecad34
|
|
@ -108,7 +108,7 @@ public class AppUser extends BaseEntity
|
||||||
|
|
||||||
/** 技能id */
|
/** 技能id */
|
||||||
@Excel(name = "技能id")
|
@Excel(name = "技能id")
|
||||||
private Long skillId;
|
private String skillId;
|
||||||
|
|
||||||
/** 工作内容 */
|
/** 工作内容 */
|
||||||
@Excel(name = "工作内容")
|
@Excel(name = "工作内容")
|
||||||
|
|
@ -359,12 +359,12 @@ public class AppUser extends BaseEntity
|
||||||
{
|
{
|
||||||
return jobType;
|
return jobType;
|
||||||
}
|
}
|
||||||
public void setSkillId(Long skillId)
|
public void setSkillId(String skillId)
|
||||||
{
|
{
|
||||||
this.skillId = skillId;
|
this.skillId = skillId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Long getSkillId()
|
public String getSkillId()
|
||||||
{
|
{
|
||||||
return skillId;
|
return skillId;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
package com.ruoyi.app.domain.vo;
|
package com.ruoyi.app.domain.vo;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import com.ruoyi.app.domain.AppSkill;
|
||||||
import com.ruoyi.app.domain.AppUser;
|
import com.ruoyi.app.domain.AppUser;
|
||||||
import com.ruoyi.app.domain.UserSkill;
|
import com.ruoyi.app.domain.UserSkill;
|
||||||
import com.ruoyi.common.core.annotation.Excel;
|
import com.ruoyi.common.core.annotation.Excel;
|
||||||
|
|
@ -26,7 +27,7 @@ public class AppUserVo extends AppUser
|
||||||
@Excel(name = "学校名称")
|
@Excel(name = "学校名称")
|
||||||
private String schoolName;
|
private String schoolName;
|
||||||
|
|
||||||
private List<UserSkill> userSkillList;
|
private List<AppSkill> userSkillList;
|
||||||
|
|
||||||
private String cityName;
|
private String cityName;
|
||||||
|
|
||||||
|
|
@ -37,11 +38,11 @@ public class AppUserVo extends AppUser
|
||||||
private Integer attentionNum;
|
private Integer attentionNum;
|
||||||
|
|
||||||
private int fansNum;
|
private int fansNum;
|
||||||
public void setUserSkillList(List<UserSkill> userSkillList) {
|
public void setUserSkillList(List<AppSkill> userSkillList) {
|
||||||
this.userSkillList = userSkillList;
|
this.userSkillList = userSkillList;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<UserSkill> getUserSkillList() {
|
public List<AppSkill> getUserSkillList() {
|
||||||
return userSkillList;
|
return userSkillList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,9 @@ public class AppUserServiceImpl implements IAppUserService
|
||||||
@Autowired
|
@Autowired
|
||||||
private AppUserFansMapper appUserFansMapper;
|
private AppUserFansMapper appUserFansMapper;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private AppSkillMapper appSkillMapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询app用户
|
* 查询app用户
|
||||||
*
|
*
|
||||||
|
|
@ -49,14 +52,16 @@ public class AppUserServiceImpl implements IAppUserService
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public AppUserVo selectAppUserById(Long id) {
|
public AppUserVo selectAppUserById(Long id) {
|
||||||
UserSkill userSkill = new UserSkill();
|
|
||||||
userSkill.setUserId(id);
|
|
||||||
List<UserSkill> userSkillList = userSkillMapper.selectUserSkillList(userSkill);
|
|
||||||
AppUserVo appUser = appUserMapper.selectAppUserById(id);
|
AppUserVo appUser = appUserMapper.selectAppUserById(id);
|
||||||
if(CollectionUtils.isNotEmpty(userSkillList)) {
|
List<AppSkill> appSkills = new ArrayList<>();
|
||||||
appUser.setUserSkillList(userSkillList);
|
if (appUser.getSkillId() != null) {
|
||||||
|
List<String> skillIds = Arrays.asList(appUser.getSkillId().split(","));
|
||||||
|
for (String skillId : skillIds) {
|
||||||
|
AppSkill appSkill = appSkillMapper.selectAppSkillById(Long.valueOf(skillId));
|
||||||
|
appSkills.add(appSkill);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
appUser.setUserSkillList(appSkills);
|
||||||
return appUser;
|
return appUser;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -111,7 +116,7 @@ public class AppUserServiceImpl implements IAppUserService
|
||||||
public int updateAppUser(AppUser appUser)
|
public int updateAppUser(AppUser appUser)
|
||||||
{
|
{
|
||||||
appUser.setUpdateTime(DateUtils.getNowDate());
|
appUser.setUpdateTime(DateUtils.getNowDate());
|
||||||
if (StringUtils.isNotBlank(appUser.getSkills())) {
|
/*if (StringUtils.isNotBlank(appUser.getSkills())) {
|
||||||
// 删除标签
|
// 删除标签
|
||||||
userSkillMapper.deleteUserSkillByUserId(appUser.getId());
|
userSkillMapper.deleteUserSkillByUserId(appUser.getId());
|
||||||
// 保存技能标签
|
// 保存技能标签
|
||||||
|
|
@ -122,7 +127,7 @@ public class AppUserServiceImpl implements IAppUserService
|
||||||
userSkill.setUserId(appUser.getId());
|
userSkill.setUserId(appUser.getId());
|
||||||
userSkillMapper.insertUserSkill(userSkill);
|
userSkillMapper.insertUserSkill(userSkill);
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
return appUserMapper.updateAppUser(appUser);
|
return appUserMapper.updateAppUser(appUser);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue