refactor(wms): 优化用户昵称获取逻辑
- 移除XML映射文件中的冗余用户关联查询 - 在服务层统一处理创建人和更新人昵称填充 - 新增getUserNickname方法通过用户名获取用户昵称 - 优化异常处理,确保获取失败时返回原始用户名 - 减少数据库查询次数,提升接口性能
This commit is contained in:
@@ -50,13 +50,9 @@
|
||||
wmc.enter_coil_no as enterCoilNo,
|
||||
wmc.supplier_coil_no as supplierCoilNo,
|
||||
wmc.item_id as itemId,
|
||||
wmc.item_type as itemType,
|
||||
su_create.nick_name as createByName,
|
||||
su_operator.nick_name as operatorByName
|
||||
wmc.item_type as itemType
|
||||
from wms_coil_pending_action wcpa
|
||||
inner join wms_material_coil wmc ON wcpa.coil_id = wmc.coil_id AND wmc.del_flag = 0
|
||||
left join sys_user su_create ON wcpa.create_by = su_create.user_name AND su_create.del_flag = '0'
|
||||
left join sys_user su_operator ON wcpa.operator_name = su_operator.user_name AND su_operator.del_flag = '0'
|
||||
${ew.customSqlSegment}
|
||||
</select>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user