|
|
@@ -94,7 +94,7 @@ func (this *SupplierDataEntryController) DocExport() {
|
|
|
svc.GetSelect(OilPatentStatisticalName, where5, &tabledata5)
|
|
|
where9 := "SupplierCertId = " + SupplierCertId + " LIMIT 9"
|
|
|
svc.GetSelect(OilWinningProjectName, where9, &tabledata6)
|
|
|
- where := "SupplierCertId = " + SupplierCertId
|
|
|
+ where := "SupplierCertId = " + SupplierCertId+" and Type in ('1','3') and CertSubStatus='1'"
|
|
|
svc.GetEntitysByOrderbyWhere(OilSupplierCertSubName, where, "1", &tabledata7)
|
|
|
|
|
|
datamap := StructToMapDemo(model1.OilSupplier)
|
|
|
@@ -329,11 +329,11 @@ func (this *SupplierDataEntryController) PdfExport() {
|
|
|
svc.GetEntityByWhere(OilSupplierCertName, where2, &model2)
|
|
|
|
|
|
var tabledata []supplierdataentry.SupplierCertSubEntry
|
|
|
- where3:="SupplierId = '" + Id + "' and SupplierTypecode='"+ SupplierTypeCode +"' and CertSubStatus='1'"//准入状态的准入项
|
|
|
+ where3:="SupplierId = '" + Id + "' and SupplierTypecode='"+ SupplierTypeCode +"' and CertSubStatus='1' and Type in ('1','3')"//准入状态的准入项
|
|
|
svc.GetEntitysByOrderbyWhere(OilSupplierCertSubName, where3, "1", &tabledata)
|
|
|
|
|
|
var tabledata2 []supplierdataentry.SupplierCertSubEntry
|
|
|
- where4:="SupplierId = '" + Id + "' and SupplierTypecode='"+ SupplierTypeCode +"' and CertSubStatus='2'"//暂停状态的准入项
|
|
|
+ where4:="SupplierId = '" + Id + "' and SupplierTypecode='"+ SupplierTypeCode +"' and CertSubStatus='2' and Type in ('1','3')"//暂停状态的准入项
|
|
|
svc.GetEntitysByOrderbyWhere(OilSupplierCertSubName, where4, "1", &tabledata2)
|
|
|
|
|
|
|