|
|
@@ -20,7 +20,7 @@ type FinWithdrawApplyDb struct { |
|
|
|
|
|
|
|
func (f FinWithdrawApplyDb) FinWithdrawApplyGetBySession(session *xorm.Session, startAt, endAt string, params map[string]interface{}) (*[]model.FinWithdrawApply, error) { |
|
|
|
var m *[]model.FinWithdrawApply |
|
|
|
session = session.Where("create_at > ?", startAt).And("create_at < ?", endAt) |
|
|
|
session = session.Where("create_at >= ?", startAt).And("create_at <= ?", endAt) |
|
|
|
if reflect.TypeOf(params["value"]).Kind() == reflect.Slice { |
|
|
|
//指定In查询 |
|
|
|
if err := session.In(zhios_order_relate_utils.AnyToString(params["key"]), params["value"]).Find(m); err != nil { |
|
|
|