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