测试问题代码体积

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

View File

@ -132,4 +132,6 @@ public interface SysUserMapper
* @return 结果
*/
List<SysUser> selectUserByRole(SysUser sysUser);
void updatePurchaseNoticePerson(SysUser user);
}

View File

@ -306,6 +306,7 @@ public class SysUserServiceImpl implements ISysUserService {
userPostMapper.deleteUserPostByUserId(userId);
// 新增用户与岗位管理
insertUserPost(user);
userMapper.updatePurchaseNoticePerson(user);
return userMapper.updateUser(user);
}

View File

@ -235,8 +235,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>