Browse Source

Merge branch 'V20220125' of git.openi.org.cn:OpenI/aiforge into benchmark

pull/1405/head
lewis 3 years ago
parent
commit
ca4dbd8b71
4 changed files with 4 additions and 6 deletions
  1. +1
    -0
      models/action.go
  2. +1
    -1
      models/user_business_analysis.go
  3. +1
    -1
      routers/repo/user_data_analysis.go
  4. +1
    -4
      web_src/js/components/UserAnalysis.vue

+ 1
- 0
models/action.go View File

@@ -350,6 +350,7 @@ func GetLast20PublicFeeds(opTypes []int) ([]*Action, error) {
cond := builder.NewCond() cond := builder.NewCond()
cond = cond.And(builder.Eq{"is_private": false}) cond = cond.And(builder.Eq{"is_private": false})
cond = cond.And(builder.Eq{"is_deleted": false}) cond = cond.And(builder.Eq{"is_deleted": false})
cond = cond.And(builder.Expr("user_id=act_user_id"))
cond = cond.And(builder.In("op_type", opTypes)) cond = cond.And(builder.In("op_type", opTypes))


actions := make([]*Action, 0, 20) actions := make([]*Action, 0, 20)


+ 1
- 1
models/user_business_analysis.go View File

@@ -387,7 +387,7 @@ func refreshUserStaticTable(wikiCountMap map[string]int, CommitCodeSizeMap map[s


OpenIIndexMap := queryUserRepoOpenIIndex(startTime.Unix(), end_unix) OpenIIndexMap := queryUserRepoOpenIIndex(startTime.Unix(), end_unix)


DataDate := currentTimeNow.Format("2006-01-02")
DataDate := currentTimeNow.Format("2006-01-02") + " 00:01"


cond := "type != 1 and is_active=true" cond := "type != 1 and is_active=true"
count, err := sess.Where(cond).Count(new(User)) count, err := sess.Where(cond).Count(new(User))


+ 1
- 1
routers/repo/user_data_analysis.go View File

@@ -88,7 +88,7 @@ func queryUserDataPage(ctx *context.Context, tableName string, queryObj interfac
xlsx.SetCellValue(sheetName, "P"+rows, formatTime[0:len(formatTime)-3]) xlsx.SetCellValue(sheetName, "P"+rows, formatTime[0:len(formatTime)-3])


formatTime = userRecord.DataDate formatTime = userRecord.DataDate
xlsx.SetCellValue(sheetName, "Q"+rows, formatTime+" 00:01")
xlsx.SetCellValue(sheetName, "Q"+rows, formatTime)
} }


//设置默认打开的表单 //设置默认打开的表单


+ 1
- 4
web_src/js/components/UserAnalysis.vue View File

@@ -135,13 +135,10 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="CountDate"
prop="DataDate"
label="系统统计时间" label="系统统计时间"
width="120px" width="120px"
align="center"> align="center">
<template slot-scope="scope">
{{scope.row.CountDate | transformTimestamp}}
</template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>


Loading…
Cancel
Save