Commit fde5f90e by 杨树贤

修复问题

parent eaff939b
......@@ -43,6 +43,12 @@ class AttachmentAuditFilter
} else {
$query->whereRaw("(create_uid in $inUserIdSql)");
}
}else{
$query->where(function ($selfQuery) use ($userId, $codeId) {
$selfQuery->where('create_uid', $userId)
->orWhere('purchase_uid', $codeId)
->orWhere('channel_uid', 'like', '%' . $codeId . '%');
});
}
}
// 默认只显示审核中的数据
......
......@@ -36,9 +36,9 @@ class AttachmentAuditTransformer
$item['supplier_code'] = $item['supplier']['supplier_code'];
// 获取采购员信息
$yunxinChannelUid = $item['supplier']['yunxin_channel_uid'];
if ($yunxinChannelUid) {
$item['purchase_user_name'] = $adminUserService->getAdminUserNameByCodeId($yunxinChannelUid);
$channelUid = $item['supplier']['channel_uid'];
if ($channelUid) {
$item['purchase_user_name'] = (new SupplierTransformer())->getChannelUserNames($item['supplier']['channel_uid']);
} else {
$item['purchase_user_name'] = '';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment