diff --git a/src/super/implement/agent_settlement_implement.go b/src/super/implement/agent_settlement_implement.go index dfb1977..7324611 100644 --- a/src/super/implement/agent_settlement_implement.go +++ b/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, ",")) diff --git a/src/super/implement/generate_wx_ad_data_implement.go b/src/super/implement/generate_wx_ad_data_implement.go index a12c032..f136968 100644 --- a/src/super/implement/generate_wx_ad_data_implement.go +++ b/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, ",")) diff --git a/src/super/implement/master_data_statistics_implement.go b/src/super/implement/master_data_statistics_implement.go index 06a7cc4..9a2d18a 100644 --- a/src/super/implement/master_data_statistics_implement.go +++ b/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 { diff --git a/src/super/implement/medium_settlement_implement.go b/src/super/implement/medium_settlement_implement.go index 06b3d82..1505bd0 100644 --- a/src/super/implement/medium_settlement_implement.go +++ b/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, ",")) diff --git a/src/super/implement/original_wx_ad_data_implement.go b/src/super/implement/original_wx_ad_data_implement.go index d60295f..b6f99ed 100644 --- a/src/super/implement/original_wx_ad_data_implement.go +++ b/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, ","))