瀏覽代碼

更新

master
huangjiajun 1 周之前
父節點
當前提交
8b263ebe90
共有 5 個檔案被更改,包括 14 行新增14 行删除
  1. +2
    -2
      src/super/implement/agent_settlement_implement.go
  2. +6
    -6
      src/super/implement/generate_wx_ad_data_implement.go
  3. +2
    -2
      src/super/implement/master_data_statistics_implement.go
  4. +2
    -2
      src/super/implement/medium_settlement_implement.go
  5. +2
    -2
      src/super/implement/original_wx_ad_data_implement.go

+ 2
- 2
src/super/implement/agent_settlement_implement.go 查看文件

@@ -67,10 +67,10 @@ func (a AgentSettlementDb) FindAgentSettlementList(uuid, agentId, appId, payStat
sess.And("state = ?", state)
}
if startDate != "" {
sess.And("start_date>=", startDate)
sess.And("start_date>=?", startDate)
}
if endDate != "" {
sess.And("end_date<=", endDate)
sess.And("end_date<=?", endDate)
}
if appId != "" {
sess.In("app_id", strings.Split(appId, ","))


+ 6
- 6
src/super/implement/generate_wx_ad_data_implement.go 查看文件

@@ -49,10 +49,10 @@ func (g GenerateWxAdDataDb) FindGenerateWxAdDataList(uuid, appId, mediumId, slot
sess.And("uuid = ?", uuid)
}
if startDate != "" {
sess.And("date>=", startDate)
sess.And("date>=?", startDate)
}
if endDate != "" {
sess.And("date<=", endDate)
sess.And("date<=?", endDate)
}
if appId != "" {
sess.In("app_id", strings.Split(appId, ","))
@@ -75,10 +75,10 @@ func (g GenerateWxAdDataDb) FindGenerateWxAdDataListMedium(uuid, appId, mediumId
sess.And("uuid = ?", uuid)
}
if startDate != "" {
sess.And("date>=", startDate)
sess.And("date>=?", startDate)
}
if endDate != "" {
sess.And("date<=", endDate)
sess.And("date<=?", endDate)
}
if appId != "" {
sess.In("app_id", strings.Split(appId, ","))
@@ -101,10 +101,10 @@ func (g GenerateWxAdDataDb) FindGenerateWxAdDataListMediumAll(uuid, appId, mediu
sess.And("uuid = ?", uuid)
}
if startDate != "" {
sess.And("date>=", startDate)
sess.And("date>=?", startDate)
}
if endDate != "" {
sess.And("date<=", endDate)
sess.And("date<=?", endDate)
}
if appId != "" {
sess.In("app_id", strings.Split(appId, ","))


+ 2
- 2
src/super/implement/master_data_statistics_implement.go 查看文件

@@ -57,10 +57,10 @@ func (m MasterDataStatisticsDb) FindMasterDataStatisticsList(uuid, startDate, en
sess.And("uuid = ?", uuid)
}
if startDate != "" {
sess.And("date>=", startDate)
sess.And("date>=?", startDate)
}
if endDate != "" {
sess.And("date<=", endDate)
sess.And("date<=?", endDate)
}
total, err = sess.FindAndCount(&list)
if err != nil {


+ 2
- 2
src/super/implement/medium_settlement_implement.go 查看文件

@@ -66,10 +66,10 @@ func (m MediumSettlementDb) FindMediumSettlementList(uuid, mediumId, appId, payS
sess.And("state = ?", state)
}
if startDate != "" {
sess.And("start_date>=", startDate)
sess.And("start_date>=?", startDate)
}
if endDate != "" {
sess.And("end_date<=", endDate)
sess.And("end_date<=?", endDate)
}
if appId != "" {
sess.In("app_id", strings.Split(appId, ","))


+ 2
- 2
src/super/implement/original_wx_ad_data_implement.go 查看文件

@@ -60,10 +60,10 @@ func (o OriginalWxAdDataDb) FindOriginalWxAdDataList(uuid, appId, slotId, startD
sess.And("uuid = ?", uuid)
}
if startDate != "" {
sess.And("date>=", startDate)
sess.And("date>=?", startDate)
}
if endDate != "" {
sess.And("date<=", endDate)
sess.And("date<=?", endDate)
}
if appId != "" {
sess.In("app_id", strings.Split(appId, ","))


Loading…
取消
儲存