This commit is contained in:
苏尹岚
2021-01-04 15:41:37 +08:00
parent ccc536b83f
commit a3e80c306c
2 changed files with 1 additions and 10 deletions

View File

@@ -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))

View File

@@ -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 := `