用户管理界面更新用户信息bug修改

This commit is contained in:
joylink_zhangsai 2020-12-03 19:57:26 +08:00
parent e799f3c5da
commit 712b08d450

View File

@ -107,8 +107,9 @@ public class CompanyService implements ICompanyService {
@Override @Override
public void deleteUserCompanyRel(Long userId) { public void deleteUserCompanyRel(Long userId) {
UserCompanyRel ucr = getUserCompanyRelEntity(userId); UserCompanyRelExample example = new UserCompanyRelExample();
userCompanyRelDAO.deleteByPrimaryKey(ucr.getId()); example.createCriteria().andUserIdEqualTo(userId);
userCompanyRelDAO.deleteByExample(example);
} }
@Override @Override