Compare commits
No commits in common. "f9fe5505280b69eec2603ff80f7b8f04fb806b73" and "44f40ee10f2bec85ced1fa40de42894ca5fb7289" have entirely different histories.
f9fe550528
...
44f40ee10f
@ -2,7 +2,6 @@ package dao
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
|
||||||
"micro-bundle/internal/model"
|
"micro-bundle/internal/model"
|
||||||
"micro-bundle/pb/bundle"
|
"micro-bundle/pb/bundle"
|
||||||
"micro-bundle/pkg/app"
|
"micro-bundle/pkg/app"
|
||||||
@ -204,10 +203,10 @@ func GetUsedRecord(req *bundle.GetUsedRecordListReq) (data []model.CostLog, tota
|
|||||||
session = session.Where("title = ?", req.Title)
|
session = session.Where("title = ?", req.Title)
|
||||||
}
|
}
|
||||||
if req.Platform != 0 {
|
if req.Platform != 0 {
|
||||||
session = session.Where(fmt.Sprintf("JSON_CONTAINS(platform_ids,'%d')", req.Platform))
|
session = session.Where("JSON_CONTAINS(platform_ids,?)", req.Platform)
|
||||||
}
|
}
|
||||||
if req.Account != 0 {
|
if req.Account != 0 {
|
||||||
session = session.Where(fmt.Sprintf("JSON_CONTAINS(media_names,'%d')", req.Account))
|
session = session.Where("JSON_CONTAINS(media_names,?)", req.Account)
|
||||||
}
|
}
|
||||||
if req.SubmitTimeEnd != 0 {
|
if req.SubmitTimeEnd != 0 {
|
||||||
session = session.Where("submit_time <= ?", time.UnixMilli(req.SubmitTimeEnd))
|
session = session.Where("submit_time <= ?", time.UnixMilli(req.SubmitTimeEnd))
|
||||||
|
Loading…
Reference in New Issue
Block a user