Browse Source

wip:新建订单增加订单审核状态

fuwencai 3 years ago
parent
commit
ab52ae4e62
3 changed files with 3 additions and 0 deletions
  1. 1 0
      api/internal/logic/createorderlogic.go
  2. 1 0
      api/internal/types/types.go
  3. 1 0
      service/orderService.go

+ 1 - 0
api/internal/logic/createorderlogic.go

@@ -86,6 +86,7 @@ func (l *CreateOrderLogic) CreateOrder(req types.Request) (*types.Response, erro
 		PaybackCompany:    req.PaybackCompany,
 		SalespersonId:     req.SalesPersonId,
 		CreatePerson:      req.CreatePerson,
+		AuditStatus:       req.AuditStatus,
 	})
 	if err != nil {
 		return nil, err

+ 1 - 0
api/internal/types/types.go

@@ -63,6 +63,7 @@ type Request struct {
 	CreatePerson        string `form:"create_person,optional"`
 	LastUpdatePerson    string `form:"last_update_person,optional"`
 	LastUpdateTime      string `form:"last_update_time,optional"`
+	AuditStatus         int64  `form:"audit_status,optional"`
 }
 
 type Response struct {

+ 1 - 0
service/orderService.go

@@ -68,6 +68,7 @@ func (s OrderService) CreateOrder(in *jyOrder.Request) (int64, string, int64) {
 	order["original_price"] = in.OriginalPrice
 	order["order_code"] = in.OrderCode
 	order["create_person"] = in.CreatePerson
+	order["audit_status"] = in.AuditStatus
 	if in.OrderChannel == "d03" {
 		delete(order, "return_status")
 	}