|
|
@@ -85,7 +85,7 @@ func (this *SelectController) GetTList() {
|
|
|
asc = false
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ leftjoin := ""
|
|
|
//准入证号
|
|
|
if model.AccessCardNo != "" {
|
|
|
where = where + " and b.AccessCardNo like '%" + model.AccessCardNo + "%'"
|
|
|
@@ -213,6 +213,7 @@ func (this *SelectController) GetTList() {
|
|
|
//准入范围
|
|
|
if model.CerSubName!="" {
|
|
|
having = " having CerSubName like '%"+model.CerSubName+"%' "
|
|
|
+ leftjoin = "left join "+ OilSupplierCertSubName + " d on d.SupplierCertId = b.Id "
|
|
|
}
|
|
|
//资质
|
|
|
if model.NeedFileType!="" {
|
|
|
@@ -220,11 +221,13 @@ func (this *SelectController) GetTList() {
|
|
|
}
|
|
|
if model.CerSubName!=""&& model.NeedFileType!=""{
|
|
|
having = " having CerSubName like '%"+model.CerSubName+"%' and NeedFileType like '%"+model.NeedFileType+"%' "
|
|
|
+ leftjoin = "left join "+ OilSupplierCertSubName + " d on d.SupplierCertId = b.Id "
|
|
|
}
|
|
|
svc := selectbusiness.GetSelectService(utils.DBE)
|
|
|
var list []supplier.OilSupplierSelect
|
|
|
|
|
|
- total := svc.GetMyPagingEntitiesWithOrderBytbl(OilSupplierName, OilSupplierCertName, OilInfoChangeName,OilSupplierCertSubName,OilSupplierFileName, page.CurrentPage, page.Size, orderby, asc, &list, where,having)
|
|
|
+ total := svc.GetMyPagingEntitiesWithOrderBytbl(OilSupplierName, OilSupplierCertName, OilInfoChangeName,OilSupplierCertSubName,
|
|
|
+ OilSupplierFileName, page.CurrentPage, page.Size, orderby, asc, &list, where,having, leftjoin)
|
|
|
|
|
|
var datainfo DataInfo
|
|
|
datainfo.Items = list
|
|
|
@@ -662,6 +665,7 @@ func (this *SelectController) FileList() {
|
|
|
Prop := this.GetString("Prop")
|
|
|
subfilename := this.GetString("subfileName")
|
|
|
supplierId := this.GetString("SupplierId")
|
|
|
+ createOn := this.GetString("CreateOn")
|
|
|
|
|
|
|
|
|
if Order != "" && Prop != "" {
|
|
|
@@ -690,6 +694,14 @@ func (this *SelectController) FileList() {
|
|
|
if subfilename != "" {
|
|
|
where = where + " and NeedFileType like '%" + subfilename + "%'"
|
|
|
}
|
|
|
+ if createOn != "" {
|
|
|
+ dates := strings.Split(createOn, ",")
|
|
|
+ if len(dates) == 2 {
|
|
|
+ minDate := dates[0]
|
|
|
+ maxDate := dates[1]
|
|
|
+ where = where + " and EffectDate>='" + minDate + "' and EffectDate<='" + maxDate + "'"
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
total := svc.GetPagingEntitiesWithoutAccCode(page.CurrentPage, page.Size, orderby, asc, &list, where)
|
|
|
var datainfo DataInfo
|