|
|
@@ -2887,14 +2887,15 @@ func (this *OilSupplierController) CheckSupplierFileNew() {
|
|
|
this.ServeJSON()
|
|
|
}
|
|
|
|
|
|
-// @Title 对外
|
|
|
+// @Title 对外-招投标系统
|
|
|
// @Description
|
|
|
// @Success 200 {object}
|
|
|
-// @router /getCompanyList [post]
|
|
|
-func (this *OilSupplierController) GetCompanyList() {
|
|
|
+// @router /getSupplierList [post]
|
|
|
+func (this *OilSupplierController) GetSupplierList() {
|
|
|
|
|
|
//获取分页信息
|
|
|
- page := this.GetPageInfoForm()
|
|
|
+ CurrentPage, _ := this.GetInt64("pageIndex",1)
|
|
|
+ Size, _ := this.GetInt64("pageSize",10)
|
|
|
where := " b.InFlag = 1 "
|
|
|
orderby := "Id"
|
|
|
asc := false
|
|
|
@@ -2906,9 +2907,9 @@ func (this *OilSupplierController) GetCompanyList() {
|
|
|
asc = true
|
|
|
}
|
|
|
}
|
|
|
- SupplierName := this.GetString("SupplierName")
|
|
|
+ SupplierName := this.GetString("Keyword")
|
|
|
SupplierTypeName := this.GetString("SupplierTypeName")
|
|
|
- SupplierTypeCode := this.GetString("SupplierTypeCode")
|
|
|
+ SupplierTypeCode := this.GetString("accessCategoryCode")
|
|
|
if SupplierName != "" {
|
|
|
where = where + " and a.SupplierName like '%" + SupplierName + "%'"
|
|
|
}
|
|
|
@@ -2923,15 +2924,13 @@ func (this *OilSupplierController) GetCompanyList() {
|
|
|
|
|
|
var total int64
|
|
|
var list []supplier.CompanyList
|
|
|
- if this.User.Username == "ceshi2" {
|
|
|
- total = svc.GetMyPagingEntitiesWithOrderBytbl4(OilSupplierName, OilSupplierCertName, page.CurrentPage, page.Size, orderby, asc, &list, where)
|
|
|
- }
|
|
|
+ total = svc.GetMyPagingEntitiesWithOrderBytbl4(OilSupplierName, OilSupplierCertName, CurrentPage, Size, orderby, asc, &list, where)
|
|
|
|
|
|
var datainfo DataInfo
|
|
|
datainfo.Items = list
|
|
|
datainfo.CurrentItemCount = total
|
|
|
- datainfo.PageIndex = page.CurrentPage
|
|
|
- datainfo.ItemsPerPage = page.Size
|
|
|
+ datainfo.PageIndex = CurrentPage
|
|
|
+ datainfo.ItemsPerPage = Size
|
|
|
this.Data["json"] = &datainfo
|
|
|
this.ServeJSON()
|
|
|
|