用户管理界面更新用户信息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
public void deleteUserCompanyRel(Long userId) {
UserCompanyRel ucr = getUserCompanyRelEntity(userId);
userCompanyRelDAO.deleteByPrimaryKey(ucr.getId());
UserCompanyRelExample example = new UserCompanyRelExample();
example.createCriteria().andUserIdEqualTo(userId);
userCompanyRelDAO.deleteByExample(example);
}
@Override