|
|
@@ -5,6 +5,7 @@ import (
|
|
|
"dashoo.cn/backend/api/business/oilsupplier/infochange"
|
|
|
"dashoo.cn/backend/api/business/oilsupplier/qualchange"
|
|
|
"dashoo.cn/backend/api/business/oilsupplier/suppliercertappend"
|
|
|
+ "dashoo.cn/backend/api/business/register"
|
|
|
"encoding/json"
|
|
|
// "fmt"
|
|
|
|
|
|
@@ -271,12 +272,16 @@ func (this *SelectController) GetProcessAuditList() {
|
|
|
asc = true
|
|
|
}
|
|
|
}
|
|
|
+ svc := supplier.GetOilSupplierService(utils.DBE)
|
|
|
tabinx := this.GetString("tabinx")
|
|
|
supplierTypeCode := this.GetString("SupplierTypeCode")
|
|
|
supplierName := this.GetString("SupplierName")
|
|
|
//企业用户必须加创建人条件
|
|
|
+ var registerUser register.OilCorporateInfo
|
|
|
+ sql := " UserName='" + this.User.Username + "'"
|
|
|
+ svc.GetEntity(®isterUser,sql)
|
|
|
if this.User.IsCompanyUser == 1 {
|
|
|
- where = where + " and b.CreateUserId = '" + this.User.Id + "'"
|
|
|
+ where = where + " and (b.CreateUserId = '" + this.User.Id + "' or a.CommercialNo='"+registerUser.CommercialNo+"')"
|
|
|
}
|
|
|
if supplierTypeCode != "" {
|
|
|
where = where + " and b.SupplierTypeCode like '%" + supplierTypeCode + "%'"
|
|
|
@@ -289,7 +294,7 @@ func (this *SelectController) GetProcessAuditList() {
|
|
|
var datainfo DataInfo
|
|
|
if tabinx == "0" {
|
|
|
var list []supplier.OilSupplierView
|
|
|
- svc := supplier.GetOilSupplierService(utils.DBE)
|
|
|
+
|
|
|
total = svc.GetMyPagingEntitiesWithOrderBytbl(OilSupplierName, OilSupplierCertName, page.CurrentPage, page.Size, orderby, asc, &list, where)
|
|
|
datainfo.Items = list
|
|
|
} else if tabinx == "1" {
|