测试问题提交

This commit is contained in:
liang.chao 2024-06-24 14:05:22 +08:00
parent 56ee954dab
commit 55ef6f5b96
3 changed files with 8 additions and 2 deletions

View File

@ -140,4 +140,6 @@ public interface SysUserMapper
List<SysUser> selectUserByEm();
List<SysUser> selectUserByDm();
void updatePurchaseNoticePerson(SysUser user);
}

View File

@ -328,6 +328,7 @@ public class SysUserServiceImpl implements ISysUserService {
//表示属于分公司下的某个部门
user.setCompanyId(Long.parseLong(split[2]));
}
userMapper.updatePurchaseNoticePerson(user);
return userMapper.updateUser(user);
}

View File

@ -342,8 +342,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<update id="resetUserPwd" parameterType="com.bonus.sgzb.system.api.domain.SysUser">
update sys_user set password = #{password} where user_name = #{userName}
</update>
<delete id="deleteUserById" parameterType="Long">
<update id="updatePurchaseNoticePerson">
update purchase_notice_person set telphone = #{phonenumber} where user_id = #{userId}
</update>
<delete id="deleteUserById" parameterType="Long">
update sys_user set del_flag = '2' where user_id = #{userId}
</delete>