From d6ae12eff8c6701083bbe5c9d380c0c3f67be5d8 Mon Sep 17 00:00:00 2001 From: yjieliang Date: Thu, 25 Jan 2024 15:12:09 +0800 Subject: [PATCH] =?UTF-8?q?bug=EF=BC=9A=20=E7=94=A8=E6=88=B7=E7=BB=84?= =?UTF-8?q?=E7=BB=87=E6=9E=B6=E6=9E=84=E6=96=B0=E5=A2=9E=E7=BA=BF=E4=B8=80?= =?UTF-8?q?=E7=BA=A7=E5=88=AB=E7=BB=84=E7=BB=87=E5=B1=82=E7=BA=A7=EF=BC=8C?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E4=BF=A1=E6=81=AF=E8=8E=B7=E5=8F=96=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E6=9C=AA=E6=9B=B4=E6=96=B0=E5=AF=BC=E8=87=B4=E9=83=A8?= =?UTF-8?q?=E5=88=86=E7=BB=84=E7=BB=87=E6=9E=B6=E6=9E=84=E6=A0=A1=E9=AA=8C?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E6=A0=A1=E9=AA=8C=E5=A4=B1=E8=B4=A5=20#9967?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/kotlin/com/tencent/devops/project/dao/UserDao.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/ci/core/project/biz-project/src/main/kotlin/com/tencent/devops/project/dao/UserDao.kt b/src/backend/ci/core/project/biz-project/src/main/kotlin/com/tencent/devops/project/dao/UserDao.kt index ba610fea4c8..f1bc03fe3c0 100644 --- a/src/backend/ci/core/project/biz-project/src/main/kotlin/com/tencent/devops/project/dao/UserDao.kt +++ b/src/backend/ci/core/project/biz-project/src/main/kotlin/com/tencent/devops/project/dao/UserDao.kt @@ -109,8 +109,8 @@ class UserDao { .set(GROUP_NAME, userDeptDetail.groupName) .set(UPDATE_TIME, LocalDateTime.now()) userDeptDetail.businessLineId?.let { baseStep.set(BUSINESS_LINE_ID, it.toLong()) } - baseStep.where(USER_ID.eq(userDeptDetail.userId)) - .execute() + userDeptDetail.businessLineName?.let { baseStep.set(BUSINESS_LINE_NAME, it) } + baseStep.where(USER_ID.eq(userDeptDetail.userId)).execute() } } }