|
|
@@ -250,15 +250,10 @@ func (this *SelectController) GetTList() {
|
|
|
//}
|
|
|
|
|
|
having := ""
|
|
|
+ model.CerSubName = strings.ReplaceAll(model.CerSubName, ",", ",")
|
|
|
CerSubName := strings.Split(model.CerSubName, ",")
|
|
|
- comma := strings.Contains(model.CerSubName, ",")
|
|
|
|
|
|
- if comma {
|
|
|
- CerSubName = strings.Split(model.CerSubName, ",")
|
|
|
- } else {
|
|
|
- CerSubName = strings.Split(model.CerSubName, ",")
|
|
|
- }
|
|
|
- var Ids supplier.OilCertIds
|
|
|
+ Ids := ""
|
|
|
//准入范围
|
|
|
if model.CerSubName != "" {
|
|
|
svc := supplier.GetOilSupplierService(utils.DBE)
|
|
|
@@ -271,7 +266,7 @@ func (this *SelectController) GetTList() {
|
|
|
}
|
|
|
}
|
|
|
where1 += ") "
|
|
|
- svc.GetCertIds(&Ids, where1)
|
|
|
+ Ids = svc.GetCertIds(where1)
|
|
|
}
|
|
|
//资质
|
|
|
if model.NeedFileType != "" {
|
|
|
@@ -282,7 +277,7 @@ func (this *SelectController) GetTList() {
|
|
|
var list []supplier.OilSupplierSelect
|
|
|
|
|
|
total := svc.GetMyPagingEntitiesWithOrderBytbl(OilSupplierName, OilSupplierCertName, OilInfoChangeName, OilCorporateInfoName, OilSupplierCertSubName,
|
|
|
- OilSupplierFileName, page.CurrentPage, page.Size, orderby, asc, &list, where, having, model.CerSubName, Ids.Ids, model.NeedFileType)
|
|
|
+ OilSupplierFileName, page.CurrentPage, page.Size, orderby, asc, &list, where, having, model.CerSubName, Ids, model.NeedFileType)
|
|
|
|
|
|
var datainfo DataInfo
|
|
|
datainfo.Items = list
|
|
|
@@ -328,7 +323,7 @@ func (this *SelectController) ExportCompanyList() {
|
|
|
}
|
|
|
|
|
|
having := ""
|
|
|
- var Ids supplier.OilCertIds
|
|
|
+ Ids := ""
|
|
|
if selectedCertIdList != "" {
|
|
|
where = where + " and b.Id in (" + selectedCertIdList + ") "
|
|
|
} else {
|
|
|
@@ -469,15 +464,8 @@ func (this *SelectController) ExportCompanyList() {
|
|
|
where = where + " and b.InStyle ='" + model.InStyle + "'"
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ model.CerSubName = strings.ReplaceAll(model.CerSubName, ",", ",")
|
|
|
CerSubName := strings.Split(model.CerSubName, ",")
|
|
|
- comma := strings.Contains(model.CerSubName, ",")
|
|
|
-
|
|
|
- if comma {
|
|
|
- CerSubName = strings.Split(model.CerSubName, ",")
|
|
|
- } else {
|
|
|
- CerSubName = strings.Split(model.CerSubName, ",")
|
|
|
- }
|
|
|
|
|
|
//准入范围
|
|
|
if model.CerSubName != "" {
|
|
|
@@ -491,7 +479,7 @@ func (this *SelectController) ExportCompanyList() {
|
|
|
}
|
|
|
}
|
|
|
where1 += ") "
|
|
|
- svc.GetCertIds(&Ids, where1)
|
|
|
+ Ids = svc.GetCertIds(where1)
|
|
|
}
|
|
|
//资质
|
|
|
if model.NeedFileType != "" {
|
|
|
@@ -504,7 +492,7 @@ func (this *SelectController) ExportCompanyList() {
|
|
|
var list []supplier.OilSupplierSelect
|
|
|
|
|
|
total := svc.GetMyPagingEntitiesWithOrderBytblForExport(OilSupplierName, OilSupplierCertName, OilInfoChangeName, OilCorporateInfoName, OilSupplierCertSubName,
|
|
|
- OilSupplierFileName, page.CurrentPage, page.Size, orderby, asc, &list, where, having, model.CerSubName, Ids.Ids, model.NeedFileType)
|
|
|
+ OilSupplierFileName, page.CurrentPage, page.Size, orderby, asc, &list, where, having, model.CerSubName, Ids, model.NeedFileType)
|
|
|
log.Print("共导出供方信息:", total)
|
|
|
// 获取到所有符合条件的供方信息列表 ↑
|
|
|
|