aa
This commit is contained in:
@@ -1572,7 +1572,7 @@ func UpdateJob(ctx *jxcontext.Context, payload map[string]interface{}) (err erro
|
|||||||
job2 = &model.Job{}
|
job2 = &model.Job{}
|
||||||
)
|
)
|
||||||
utils.Map2StructByJson(payload, &jobExt, false)
|
utils.Map2StructByJson(payload, &jobExt, false)
|
||||||
job2.ID = payload["id"].(int)
|
job2.ID = int(utils.MustInterface2Int64(payload["id"]))
|
||||||
dao.GetEntity(db, job2)
|
dao.GetEntity(db, job2)
|
||||||
valid := dao.StrictMakeMapByStructObject(payload, job2, ctx.GetUserName())
|
valid := dao.StrictMakeMapByStructObject(payload, job2, ctx.GetUserName())
|
||||||
fmt.Println(".......................................", utils.Format4Output(valid, false))
|
fmt.Println(".......................................", utils.Format4Output(valid, false))
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package dao
|
package dao
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.rosy.net.cn/baseapi/utils"
|
"git.rosy.net.cn/baseapi/utils"
|
||||||
@@ -190,11 +189,6 @@ type GetPayStatisticsResult struct {
|
|||||||
MemberIncome int `json:"memberIncome"` //会员收益
|
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{}) {
|
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 += `
|
sql += `
|
||||||
(SELECT SUM(IFNULL(b.pay_price,0)) total_pay
|
(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 += `
|
sql += `
|
||||||
) t4`
|
) t4`
|
||||||
fmt.Println(sql)
|
|
||||||
fmt.Println(sqlParams)
|
|
||||||
err = GetRow(db, &getPayStatisticsResult, sql, sqlParams)
|
err = GetRow(db, &getPayStatisticsResult, sql, sqlParams)
|
||||||
fmt.Println(utils.Format4Output(getPayStatisticsResult, false))
|
|
||||||
sqlParams2 := []interface{}{}
|
sqlParams2 := []interface{}{}
|
||||||
getPayStatisticsResult1 := &GetPayStatisticsResult{}
|
getPayStatisticsResult1 := &GetPayStatisticsResult{}
|
||||||
sql2 := `
|
sql2 := `
|
||||||
|
|||||||
Reference in New Issue
Block a user