aa
This commit is contained in:
@@ -1945,7 +1945,7 @@ func UpdateJdsOrdersStatus(ctx *jxcontext.Context, orderCreatedStart, orderCreat
|
||||
|
||||
func SaveJdsOrders(ctx *jxcontext.Context, orderCreatedStart, orderCreatedEnd time.Time) (err error) {
|
||||
var (
|
||||
pageSize = 20
|
||||
pageSize = 10
|
||||
)
|
||||
orderResult, err := jdshop.CurPurchaseHandler.GetJdsOrders(ctx, utils.Time2Str(orderCreatedStart), utils.Time2Str(orderCreatedEnd), 1, pageSize)
|
||||
if err != nil {
|
||||
|
||||
29
business/jxcallback/orderman/order_test.go
Normal file
29
business/jxcallback/orderman/order_test.go
Normal file
@@ -0,0 +1,29 @@
|
||||
package orderman
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils/jxcontext"
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
|
||||
func TestSaveJdsOrders(t *testing.T) {
|
||||
type args struct {
|
||||
ctx *jxcontext.Context
|
||||
orderCreatedStart time.Time
|
||||
orderCreatedEnd time.Time
|
||||
}
|
||||
tests := []struct {
|
||||
name string
|
||||
args args
|
||||
wantErr bool
|
||||
}{
|
||||
// TODO: Add test cases.
|
||||
}
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
if err := SaveJdsOrders(tt.args.ctx, tt.args.orderCreatedStart, tt.args.orderCreatedEnd); (err != nil) != tt.wantErr {
|
||||
t.Errorf("SaveJdsOrders() error = %v, wantErr %v", err, tt.wantErr)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user