|
|
@@ -903,15 +903,19 @@ func (this *InfoChangeController) GetAddSupplierList() {
|
|
|
//企业用户必须加创建人条件
|
|
|
if this.User.IsCompanyUser == 1 {
|
|
|
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 a.CreateUserId = '" + this.User.Id + "'"
|
|
|
- }
|
|
|
}
|
|
|
- supplierlist = svc.GetSupplierList(""+OilSupplierName, where)
|
|
|
+ //else { // 二级单位可以为所有企业提交信息变更 2020-03-12
|
|
|
+ // //超级管理员和有查看所有数据权限的用户不加条件
|
|
|
+ // 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 a.CreateUserId = '" + this.User.Id + "'"
|
|
|
+ // }
|
|
|
+ //}
|
|
|
+ //supplierlist = svc.GetSupplierList(""+OilSupplierName, where)
|
|
|
+
|
|
|
+ svc.GetEntitysByWhere(OilSupplierName, where, &supplierlist)
|
|
|
+
|
|
|
var datainfo DataInfo
|
|
|
datainfo.Items = supplierlist
|
|
|
this.Data["json"] = &datainfo
|