|
|
@@ -24,8 +24,8 @@ func (s *SelectService) GetMyPagingEntitiesWithOrderBytbl(supplierTableName, sup
|
|
|
//获取总记录数
|
|
|
sqlCount := `select count(*) from ` + supplierTableName + ` a `
|
|
|
sqlCount += ` left join ` + supplierCertTableName + " b on b.SupplierId = a.Id"
|
|
|
- sqlCount += ` left join ` + OilInfoChangeName + " c on c.SupplierId = a.Id"
|
|
|
- sqlCount += ` left join ` + OilSupplierFileName + ` d on d.SupplierId = a.Id `
|
|
|
+ // sqlCount += ` left join ` + OilInfoChangeName + " c on c.SupplierId = a.Id"
|
|
|
+ // sqlCount += ` left join ` + OilSupplierFileName + ` d on d.SupplierId = a.Id `
|
|
|
sqlCount += ` where ` + where
|
|
|
|
|
|
var sql string
|
|
|
@@ -42,12 +42,12 @@ func (s *SelectService) GetMyPagingEntitiesWithOrderBytbl(supplierTableName, sup
|
|
|
sql += ` b.SkillerTotal, `
|
|
|
sql += ` b.Status, `
|
|
|
sql += ` b.WorkflowId, `
|
|
|
- sql += ` b.ApplyTime, `
|
|
|
- sql += ` c.OldSupplierName `
|
|
|
+ sql += ` b.ApplyTime `
|
|
|
+ // sql += ` c.OldSupplierName `
|
|
|
sql += ` from ` + supplierTableName + ` a `
|
|
|
sql += ` left join ` + supplierCertTableName + ` b on b.SupplierId = a.Id `
|
|
|
- sql += ` left join ` + OilInfoChangeName + ` c on c.SupplierId = a.Id `
|
|
|
- sql += ` left join ` + OilSupplierFileName + ` d on d.SupplierId = a.Id `
|
|
|
+ // sql += ` right join ` + OilInfoChangeName + ` c on c.SupplierId = a.Id `
|
|
|
+ // sql += ` left join ` + OilSupplierFileName + ` d on d.SupplierId = a.Id `
|
|
|
sql += ` where ` + where
|
|
|
if asc {
|
|
|
sql += ` order by ` + orderby + ` ASC `
|