Bladeren bron

更新

master
huangjiajun 1 week geleden
bovenliggende
commit
8b263ebe90
5 gewijzigde bestanden met toevoegingen van 14 en 14 verwijderingen
  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 Bestand weergeven

@@ -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 Bestand weergeven

@@ -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 Bestand weergeven

@@ -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 Bestand weergeven

@@ -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 Bestand weergeven

@@ -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, ","))


Laden…
Annuleren
Opslaan