|
@@ -82,6 +82,31 @@ func (s *SelectService) GetMyPagingEntitiesWithOrderBytbl(supplierTableName, sup
|
|
|
return total
|
|
return total
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func (s *SelectService) GetMyPagingEntitiesWithOrderBytbl2(entitiesPtr interface{}, where string) {
|
|
|
|
|
+
|
|
|
|
|
+ var sql string
|
|
|
|
|
+ sql = `select a.Id,a.SupplierName,b.AccessCardNo, a.OldSupplierName, b.SupplierTypeCode,`
|
|
|
|
|
+ sql += `a.LegalPerson,a.RegCapital,a.Mobile,b.AuditDate,b.ApplyTime,b.EffectEndTime,b.InFlag,a.ContactName,a.CommercialNo, `
|
|
|
|
|
+ sql += `a.DepositBank,a.HseTraining,a.CompanyType,a.SetupTime,a.Address,a.Province,a.City,a.Street, `
|
|
|
|
|
+ sql += `a.LinkAddress,a.LinkProvince,a.LinkCity,a.LinkStreet,a.BusinessScope, `
|
|
|
|
|
+ sql += `b.InStyle, b.Id CertId, b.RecUnitName as CheckUnitName, b.Remark `
|
|
|
|
|
+ sql += `from OilSupplier a `
|
|
|
|
|
+ sql += `left join OilSupplierCert b on b.SupplierId = a.Id `
|
|
|
|
|
+ sql += `where ` + where
|
|
|
|
|
+ s.DBE.SQL(sql).Find(entitiesPtr)
|
|
|
|
|
+
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (s *SelectService) GetFileList(entitiesPtr interface{}, where string) {
|
|
|
|
|
+
|
|
|
|
|
+ var sql string
|
|
|
|
|
+ sql = `select FileName, EffectDate,FileUrl,OtherRemark `
|
|
|
|
|
+ sql += `from OilSupplierFile `
|
|
|
|
|
+ sql += `where ` + where
|
|
|
|
|
+ s.DBE.SQL(sql).Find(entitiesPtr)
|
|
|
|
|
+
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
func (s *SelectService) GetMyPagingEntitiesWithOrderBytblForExport(supplierTableName, supplierCertTableName, OilInfoChangeName, OilCorporateInfoName, OilSupplierCertSubName,
|
|
func (s *SelectService) GetMyPagingEntitiesWithOrderBytblForExport(supplierTableName, supplierCertTableName, OilInfoChangeName, OilCorporateInfoName, OilSupplierCertSubName,
|
|
|
OilSupplierFileName string, pageIndex, itemsPerPage int64, orderby string, asc bool, entitiesPtr interface{}, where, having, CerSubName string, Ids string, NeedFileType string) (total int64) {
|
|
OilSupplierFileName string, pageIndex, itemsPerPage int64, orderby string, asc bool, entitiesPtr interface{}, where, having, CerSubName string, Ids string, NeedFileType string) (total int64) {
|
|
|
|
|
|