|
@@ -609,14 +609,14 @@ namespace GxPress.Repository.Implement
|
|
|
public async Task<IEnumerable<GroupDetailResult>> GetGroupDetailResults()
|
|
|
{
|
|
|
string sql = @"SELECT
|
|
|
- a.*, b.Name AS CategroyName, c.Name AS UserName
|
|
|
- FROM
|
|
|
- tede_group a
|
|
|
- INNER JOIN
|
|
|
- tede_user c ON a.UserId = c.Id
|
|
|
- LEFT JOIN
|
|
|
- tede_category b ON a.GroupCategroyId = b.Id
|
|
|
- ORDER BY a.Sort DESC , a.CreatedDate DESC;";
|
|
|
+ a.*, b.PiazzaName AS CategroyName, c.Name AS UserName
|
|
|
+ FROM
|
|
|
+ tede_group a
|
|
|
+ INNER JOIN
|
|
|
+ tede_user c ON a.UserId = c.Id
|
|
|
+ LEFT JOIN
|
|
|
+ tede_group_piazza b ON a.GroupCategroyId = b.Id
|
|
|
+ ORDER BY a.Sort DESC , a.CreatedDate DESC";
|
|
|
var databaseType = StringUtils.ToEnum<DatabaseType>(_databaseTypeStr, DatabaseType.MySql);
|
|
|
var database = new Database(databaseType, _connectionString);
|
|
|
var connection = database.GetConnection();
|