tomap
This commit is contained in:
@@ -2,7 +2,6 @@ package dao
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
"regexp"
|
||||
"strconv"
|
||||
"time"
|
||||
@@ -940,7 +939,7 @@ func GetOrders(db *DaoDB, ids []int64, isIncludeSku, isIncludeFake bool, fromDat
|
||||
} else {
|
||||
sqlWhere += " AND IF(t1.jx_store_id != 0, t1.jx_store_id, t1.store_id) IN (" + GenQuestionMarks(len(storeIDs)) + ")"
|
||||
sqlParams = append(sqlParams, storeIDs)
|
||||
globals.SugarLogger.Debugf("sqlParams storeIDs========%d", storeIDs)
|
||||
//globals.SugarLogger.Debugf("sqlParams storeIDs========%d", storeIDs)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -952,7 +951,7 @@ func GetOrders(db *DaoDB, ids []int64, isIncludeSku, isIncludeFake bool, fromDat
|
||||
if len(statuss) > 0 {
|
||||
sqlWhere += " AND t1.status IN (" + GenQuestionMarks(len(statuss)) + ")"
|
||||
sqlParams = append(sqlParams, statuss)
|
||||
globals.SugarLogger.Debugf("sqlParams statuss===========%d", statuss)
|
||||
//globals.SugarLogger.Debugf("sqlParams statuss===========%d", statuss)
|
||||
}
|
||||
}
|
||||
if params["lockStatuss"] != nil {
|
||||
@@ -1024,7 +1023,7 @@ func GetOrders(db *DaoDB, ids []int64, isIncludeSku, isIncludeFake bool, fromDat
|
||||
if params["adjustCount"] != nil {
|
||||
sqlWhere += " AND t1.adjust_count >= ?"
|
||||
sqlParams = append(sqlParams, params["adjustCount"])
|
||||
globals.SugarLogger.Debugf("sqlParams params[adjustCount]=========%d", params["adjustCount"])
|
||||
//globals.SugarLogger.Debugf("sqlParams params[adjustCount]=========%d", params["adjustCount"])
|
||||
}
|
||||
if mustInvoice, ok := params["mustInvoice"].(bool); ok && mustInvoice {
|
||||
sqlWhere += " AND t1.invoice_taxer_id <> ''"
|
||||
@@ -1038,7 +1037,7 @@ func GetOrders(db *DaoDB, ids []int64, isIncludeSku, isIncludeFake bool, fromDat
|
||||
if len(vendorIDs) > 0 {
|
||||
sqlWhere += " AND t1.vendor_id IN (" + GenQuestionMarks(len(vendorIDs)) + ")"
|
||||
sqlParams = append(sqlParams, vendorIDs)
|
||||
globals.SugarLogger.Debugf("sqlParams vendorIDs================%d", vendorIDs)
|
||||
//globals.SugarLogger.Debugf("sqlParams vendorIDs================%d", vendorIDs)
|
||||
}
|
||||
}
|
||||
if userID != "" {
|
||||
@@ -1064,14 +1063,14 @@ func GetOrders(db *DaoDB, ids []int64, isIncludeSku, isIncludeFake bool, fromDat
|
||||
) a WHERE 1 = 1`
|
||||
|
||||
if params["jxIncomeBegin"] != nil {
|
||||
globals.SugarLogger.Debugf("test begin====%d", utils.MustInterface2Int64(params["jxIncomeBegin"]))
|
||||
//globals.SugarLogger.Debugf("test begin====%d", utils.MustInterface2Int64(params["jxIncomeBegin"]))
|
||||
//if utils.MustInterface2Int64(params["jxIncomeBegin"]) != 0 {
|
||||
sql += " AND a.jx_income >= ?"
|
||||
sqlParams = append(sqlParams, utils.MustInterface2Int64(params["jxIncomeBegin"]))
|
||||
//}
|
||||
}
|
||||
if params["jxIncomeEnd"] != nil {
|
||||
globals.SugarLogger.Debugf("test end=====%d", utils.MustInterface2Int64(params["jxIncomeEnd"]))
|
||||
//globals.SugarLogger.Debugf("test end=====%d", utils.MustInterface2Int64(params["jxIncomeEnd"]))
|
||||
//if utils.MustInterface2Int64(params["jxIncomeEnd"]) != 0 {
|
||||
sql += " AND a.jx_income <= ?"
|
||||
sqlParams = append(sqlParams, utils.MustInterface2Int64(params["jxIncomeEnd"]))
|
||||
|
||||
@@ -1519,6 +1519,7 @@ func (c *StoreController) GetDDScope() {
|
||||
// @router /CreateDDStoreFence [post]
|
||||
func (c *StoreController) CreateDDStoreFence() {
|
||||
c.callCreateDDStoreFence(func(params *tStoreCreateDDStoreFenceParams) (retVal interface{}, errCode string, err error) {
|
||||
globals.SugarLogger.Debugf("进入callCreateDDStoreFence")
|
||||
payload := make(map[string]map[string]string)
|
||||
info := make(map[string]map[string]string)
|
||||
if result, err := utils.Unmarshal2Map([]byte(params.Payload), &payload); err == nil {
|
||||
|
||||
Reference in New Issue
Block a user