|
|
@@ -152,7 +152,7 @@ func (s *OilSupplierCertAppendService) GetMyPagingEntitiesWithOrderBytbl(supplie
|
|
|
func (s *OilSupplierCertAppendService) GetTodoEntitie(supplierTableName, supplierCertAppendName string, entitiesPtr interface{}, where string) bool {
|
|
|
|
|
|
var sql string
|
|
|
- sql = `select a.SupplierName, b.AppendType SupplierTypeCode, b.Status `
|
|
|
+ sql = `select b.Id, a.SupplierName, b.AppendType SupplierTypeCode, b.Status `
|
|
|
sql += ` from ` + supplierTableName + ` a `
|
|
|
sql += ` left join ` + supplierCertAppendName + " b on b.SupplierId = a.Id"
|
|
|
sql += ` where ` + where
|