|
|
@@ -853,13 +853,13 @@ func (this *InfoChangeController) GetAddSupplierList() {
|
|
|
where := "1=1"
|
|
|
//企业用户必须加创建人条件
|
|
|
if this.User.IsCompanyUser == 1 {
|
|
|
- where = where + " and CreateUserId = '" + this.User.Id + "'"
|
|
|
+ where = where + " and a.CreateUserId = '" + this.User.Id + "'"
|
|
|
} else {
|
|
|
//超级管理员和有查看所有数据权限的用户不加条件
|
|
|
svcPerm := permission.GetPermissionService(utils.DBE)
|
|
|
isauth := svcPerm.IsAuthorized(this.User.Id, "oil_supplier.marketAccess.AllRecord")
|
|
|
if !svcPerm.IsAdmin(this.User.Id) && !isauth {
|
|
|
- where = where + " and CreateUserId = '" + this.User.Id + "'"
|
|
|
+ where = where + " and a.CreateUserId = '" + this.User.Id + "'"
|
|
|
}
|
|
|
}
|
|
|
supplierlist = svc.GetSupplierList(""+OilSupplierName, where)
|