소스 검색

更新

master
huangjiajun 2 달 전
부모
커밋
fe715cd52c
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. +2
    -2
      app/svc/svc_data_center.go
  2. +1
    -1
      app/svc/svc_index.go

+ 2
- 2
app/svc/svc_data_center.go 파일 보기

@@ -444,7 +444,7 @@ func commAgentProfit(c *gin.Context, isTotal int, req md.DataCenterProfitRecordR
where %s %s
`
user := GetUser(c)
where := "uuid=" + c.GetString("mid") + " and agent_id =" + utils.IntToStr(user.AgentId)
where := "is_generate_report=1 and uuid=" + c.GetString("mid") + " and agent_id =" + utils.IntToStr(user.AgentId)
if req.AppId != "" || req.Platform != "" {
where += " and app_id in(" + appId + ")"
}
@@ -542,7 +542,7 @@ func commAgent(c *gin.Context, isTotal int, req md.DataCenterRecordReq) ([]map[s
where %s
`
user := GetUser(c)
whereAgent := "original_data_id in(" + strings.Join(ids, ",") + ") and agent_id=" + utils.IntToStr(user.AgentId)
whereAgent := "is_generate_report=1 and original_data_id in(" + strings.Join(ids, ",") + ") and agent_id=" + utils.IntToStr(user.AgentId)
sqlAgent = fmt.Sprintf(sqlAgent, whereAgent)
nativeStringAgent, _ := db.QueryNativeString(db.Db, sqlAgent)
agentMap := make(map[string]map[string]string)


+ 1
- 1
app/svc/svc_index.go 파일 보기

@@ -167,7 +167,7 @@ func commTotalAgent(c *gin.Context, startDate, endDate string) []map[string]stri
where %s
`
user := GetUser(c)
where := "uuid=" + c.GetString("mid") + " and agent_id =" + utils.IntToStr(user.AgentId)
where := "is_generate_report=1 and uuid=" + c.GetString("mid") + " and agent_id =" + utils.IntToStr(user.AgentId)
if startDate != "" {
where += " and date>='" + startDate + "'"
}


불러오는 중...
취소
저장