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


Зареждане…
Отказ
Запис