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