diff --git a/op-modules/op-device/src/main/resources/mapper/device/EquRepairOrderMapper.xml b/op-modules/op-device/src/main/resources/mapper/device/EquRepairOrderMapper.xml index 40c7bc48..fdaac173 100644 --- a/op-modules/op-device/src/main/resources/mapper/device/EquRepairOrderMapper.xml +++ b/op-modules/op-device/src/main/resources/mapper/device/EquRepairOrderMapper.xml @@ -348,7 +348,7 @@ sn.notice_type noticeType, sn.notice_content noticeContent, btu.user_name userCode, - btu.wx_id wxId + case when btu.wx_id is null then btu.user_name else btu.wx_id end wxId from sys_notice_group sng left join sys_notice sn on sng.notice_id = sn.notice_id left join base_team_user btu on sng.group_code = btu.team_code diff --git a/op-modules/op-open/src/main/resources/mapper/open/OpenMapper.xml b/op-modules/op-open/src/main/resources/mapper/open/OpenMapper.xml index c6e8efcb..fb3d6d09 100644 --- a/op-modules/op-open/src/main/resources/mapper/open/OpenMapper.xml +++ b/op-modules/op-open/src/main/resources/mapper/open/OpenMapper.xml @@ -392,7 +392,7 @@ sn.notice_type noticeType, sn.notice_content noticeContent, btu.user_name userCode, - btu.wx_id wxId + case when btu.wx_id is null then btu.user_name else btu.wx_id end wxId from sys_notice_group sng left join sys_notice sn on sng.notice_id = sn.notice_id left join base_team_user btu on sng.group_code = btu.team_code diff --git a/op-modules/op-quality/src/main/resources/mapper/quality/QcCheckTaskIncomeMapper.xml b/op-modules/op-quality/src/main/resources/mapper/quality/QcCheckTaskIncomeMapper.xml index f30ebd2a..bb9b1093 100644 --- a/op-modules/op-quality/src/main/resources/mapper/quality/QcCheckTaskIncomeMapper.xml +++ b/op-modules/op-quality/src/main/resources/mapper/quality/QcCheckTaskIncomeMapper.xml @@ -492,7 +492,7 @@ sn.notice_type noticeType, sn.notice_content noticeContent, btu.user_name userCode, - btu.wx_id wxId + case when btu.wx_id is null then btu.user_name else btu.wx_id end wxId from sys_notice_group sng left join sys_notice sn on sng.notice_id = sn.notice_id left join base_team_user btu on sng.group_code = btu.team_code