From 1496a7e366a2796b825e7b989b82654ae1aca6b8 Mon Sep 17 00:00:00 2001 From: 姜友瑶 <935090232@qq.com> Date: Mon, 30 May 2022 20:48:03 +0800 Subject: [PATCH] fix:修复退款订单退款业绩没计算为负数问题 --- zq-erp/src/main/resources/mybatis/mapper/common/SysUsersDao.xml | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/zq-erp/src/main/resources/mybatis/mapper/common/SysUsersDao.xml b/zq-erp/src/main/resources/mybatis/mapper/common/SysUsersDao.xml index 9eaeb25..5027633 100644 --- a/zq-erp/src/main/resources/mybatis/mapper/common/SysUsersDao.xml +++ b/zq-erp/src/main/resources/mybatis/mapper/common/SysUsersDao.xml @@ -1333,10 +1333,17 @@ </select> <select id="selectUserByOpenId" resultMap="SysUsersMap"> - select * from sys_users where find_in_set(#{openId}, open_ids) + select *, + (select GROUP_CONCAT(role_name separator ',') from sys_role where find_in_set(role_id,role_ids) ) roleName + from sys_users where find_in_set(#{openId}, open_ids) <if test="companyId != null"> and company_id=#{companyId} </if> </select> + <update id="updateUserOpenId"> + update sys_users + set open_ids=#{openId} + where su_id=#{suId} + </update> </mapper> \ No newline at end of file -- Gitblit v1.9.1