|
|
@@ -4,6 +4,7 @@ import (
|
|
|
"dashoo.cn/backend/api/business/oilsupplier/suppliercert"
|
|
|
"dashoo.cn/backend/api/business/paymentinfo"
|
|
|
. "dashoo.cn/backend/api/controllers"
|
|
|
+ "dashoo.cn/business2/permission"
|
|
|
"dashoo.cn/utils"
|
|
|
"encoding/json"
|
|
|
"strconv"
|
|
|
@@ -43,6 +44,12 @@ func (this *PaymentInfoController) GetEntityList() {
|
|
|
//svc := suppliercert.GetOilSupplierCertService(utils.DBE)
|
|
|
//var list []suppliercert.OilSupplierCert
|
|
|
|
|
|
+ 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 c.CreateUserId = '" + this.User.Id + "'"
|
|
|
+ }
|
|
|
+
|
|
|
var paylist []paymentinfo.PaymentinfoList
|
|
|
svc := paymentinfo.GetPaymentService(utils.DBE)
|
|
|
total := svc.GetPaymentinfoList( page.CurrentPage, page.Size, orderby, asc, &paylist, where)
|