diff --git a/business/jxstore/cms/job.go b/business/jxstore/cms/job.go index 2af2e23ba..76b7477c5 100644 --- a/business/jxstore/cms/job.go +++ b/business/jxstore/cms/job.go @@ -1572,7 +1572,7 @@ func UpdateJob(ctx *jxcontext.Context, payload map[string]interface{}) (err erro job2 = &model.Job{} ) utils.Map2StructByJson(payload, &jobExt, false) - job2.ID = payload["id"].(int) + job2.ID = int(utils.MustInterface2Int64(payload["id"])) dao.GetEntity(db, job2) valid := dao.StrictMakeMapByStructObject(payload, job2, ctx.GetUserName()) fmt.Println(".......................................", utils.Format4Output(valid, false)) diff --git a/business/model/dao/dao_order.go b/business/model/dao/dao_order.go index 9a3636b6f..55c7563c8 100644 --- a/business/model/dao/dao_order.go +++ b/business/model/dao/dao_order.go @@ -1,7 +1,6 @@ package dao import ( - "fmt" "time" "git.rosy.net.cn/baseapi/utils" @@ -190,11 +189,6 @@ type GetPayStatisticsResult struct { MemberIncome int `json:"memberIncome"` //会员收益 } -func getWhereSql(sqlP []interface{}, fromTime, toTime time.Time, orderTypes []int) (sql string) { - - return sql -} - func getFromSql(orderType, status int, alies string, userID string, pop int, cityCodes []int, mobile string, fromTime, toTime time.Time, orderTypes []int) (sql string, sqlParams []interface{}) { sql += ` (SELECT SUM(IFNULL(b.pay_price,0)) total_pay @@ -293,10 +287,7 @@ func GetPayStatistics(db *DaoDB, userID string, pop int, cityCodes []int, mobile } sql += ` ) t4` - fmt.Println(sql) - fmt.Println(sqlParams) err = GetRow(db, &getPayStatisticsResult, sql, sqlParams) - fmt.Println(utils.Format4Output(getPayStatisticsResult, false)) sqlParams2 := []interface{}{} getPayStatisticsResult1 := &GetPayStatisticsResult{} sql2 := `