修改
This commit is contained in:
parent
3ced669383
commit
07a606c59f
@ -246,7 +246,7 @@ func CreateBundleOrderSignature(c *gin.Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 组装订单信息
|
// 组装订单信息
|
||||||
req = logic.BuildOrderRequest(&req, userInfo, bundleDetail, addRecords, addTotalPrice, lastContractNo, signContract)
|
req = logic.BuildOrderRequest(req, userInfo, bundleDetail, addRecords, addTotalPrice, lastContractNo, signContract)
|
||||||
|
|
||||||
// 创建订单
|
// 创建订单
|
||||||
res, err := service.BundleProvider.CreateOrderRecord(context.Background(), &req)
|
res, err := service.BundleProvider.CreateOrderRecord(context.Background(), &req)
|
||||||
|
@ -177,7 +177,7 @@ func buildAddRecord(addService *bundle.ValueAddServiceLang, uid string, price fl
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 组装订单请求
|
// 组装订单请求
|
||||||
func BuildOrderRequest(req *bundle.OrderCreateRecord, userInfo login.Info,
|
func BuildOrderRequest(req bundle.OrderCreateRecord, userInfo login.Info,
|
||||||
bundleDetail *bundle.BundleProfileLang, addRecords []*bundle.OrderCreateAddRecord,
|
bundleDetail *bundle.BundleProfileLang, addRecords []*bundle.OrderCreateAddRecord,
|
||||||
addTotalPrice float32, lastContractNo, signContract string) bundle.OrderCreateRecord {
|
addTotalPrice float32, lastContractNo, signContract string) bundle.OrderCreateRecord {
|
||||||
|
|
||||||
|
@ -1,22 +1,16 @@
|
|||||||
package logic
|
package logic
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"fonchain-fiee/api/bundle"
|
|
||||||
"fonchain-fiee/pkg/model"
|
"fonchain-fiee/pkg/model"
|
||||||
"fonchain-fiee/pkg/model/login"
|
|
||||||
"fonchain-fiee/pkg/service"
|
|
||||||
"fonchain-fiee/pkg/service/bundle/common"
|
"fonchain-fiee/pkg/service/bundle/common"
|
||||||
bundleModel "fonchain-fiee/pkg/service/bundle/model"
|
|
||||||
"fonchain-fiee/pkg/service/upload"
|
"fonchain-fiee/pkg/service/upload"
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
|
||||||
"github.com/signintech/gopdf"
|
"github.com/signintech/gopdf"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user