소스 검색

更新

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

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

@@ -62,7 +62,7 @@ func DataCenterRecordTotal(c *gin.Context, req md.DataCenterTableReq) md.DataCen
where %s
`
user := GetUser(c)
where := "uuid=" + c.GetString("mid") + " and medium_id=" + utils.IntToStr(user.MediumId)
where := "is_generate_report=1 and uuid=" + c.GetString("mid") + " and medium_id=" + utils.IntToStr(user.MediumId)
if req.AppId != "" || req.Platform != "" {
where += " and app_id in(" + appId + ")"
}
@@ -195,7 +195,7 @@ func comm(c *gin.Context, isTotal int, req md.DataCenterRecordReq) ([]map[string
where %s %s
`
user := GetUser(c)
where := "uuid=" + c.GetString("mid") + " and medium_id=" + utils.IntToStr(user.MediumId)
where := "is_generate_report=1 and uuid=" + c.GetString("mid") + " and medium_id=" + utils.IntToStr(user.MediumId)
if req.AppId != "" || req.Platform != "" {
where += " and app_id in(" + appId + ")"
}


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

@@ -118,7 +118,7 @@ func commTotal(c *gin.Context, startDate, endDate string) []map[string]string {
where %s
`
user := GetUser(c)
where := "uuid=" + c.GetString("mid") + " and medium_id=" + utils.IntToStr(user.MediumId)
where := "is_generate_report=1 and uuid=" + c.GetString("mid") + " and medium_id=" + utils.IntToStr(user.MediumId)
if startDate != "" {
where += " and date>='" + startDate + "'"
}
@@ -149,7 +149,7 @@ func commTotalByApp(c *gin.Context, req md.IndexAppListReq, appId []string) []ma
where %s group by app_id order by %s,id asc limit 10
`
user := GetUser(c)
where := "uuid=" + c.GetString("mid") + " and medium_id=" + utils.IntToStr(user.MediumId)
where := "is_generate_report=1 and uuid=" + c.GetString("mid") + " and medium_id=" + utils.IntToStr(user.MediumId)
if req.StartDate != "" {
where += " and date>='" + req.StartDate + "'"
}


+ 1
- 1
go.mod 파일 보기

@@ -6,7 +6,7 @@ go 1.18

//
require (
code.fnuoos.com/zhimeng/model.git v0.0.3-0.20240918130541-2345c97fc95a
code.fnuoos.com/zhimeng/model.git v0.0.3-0.20241009031730-6c5d31eb7458
github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5
github.com/boombuler/barcode v1.0.1
github.com/dchest/uniuri v0.0.0-20200228104902-7aecb25e1fe5


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