Compare commits
No commits in common. "4687a172f295181e8868ae842c845d4f4a74d536" and "40badd2edf15eaa033fe0603902c2008d22dcc5b" have entirely different histories.
4687a172f2
...
40badd2edf
@ -422,11 +422,7 @@ func GetUsedRecord(req *bundle.GetUsedRecordListReq) (data []model.CostLogPo, to
|
|||||||
session = session.Where("ccl.submit_time >= ?", time.UnixMilli(req.SubmitTimeStart))
|
session = session.Where("ccl.submit_time >= ?", time.UnixMilli(req.SubmitTimeStart))
|
||||||
}
|
}
|
||||||
if req.CostType != 0 {
|
if req.CostType != 0 {
|
||||||
if req.CostType == 1 {
|
session = session.Where("cwl.cost_type = ?", req.CostType)
|
||||||
session = session.Where("cwl.cost_type = ?", req.CostType)
|
|
||||||
} else {
|
|
||||||
session = session.Where("cwl.cost_type in ?", []int{3, 2})
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if req.User != "" {
|
if req.User != "" {
|
||||||
if utils.IsPhoneNumber(req.User) {
|
if utils.IsPhoneNumber(req.User) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user