finance
黄伟 2 years ago
parent 8bbeb3d99f
commit 5aa853da17

@ -2,11 +2,9 @@ package supply
import ( import (
"context" "context"
"database/sql"
"git.oa00.com/supply-chain/service/client" "git.oa00.com/supply-chain/service/client"
"git.oa00.com/supply-chain/service/lib/bean" "git.oa00.com/supply-chain/service/lib/bean"
"github.com/shopspring/decimal" "github.com/shopspring/decimal"
"time"
) )
type skuAudit struct { type skuAudit struct {
@ -22,26 +20,41 @@ type SkuAuditSearch struct {
AdjustType uint // 加价类型 AdjustType uint // 加价类型
Status uint // 状态 1=未审核 2=通过 3=驳回 Status uint // 状态 1=未审核 2=通过 3=驳回
} }
type ArgsSkuAuditEsLists struct {
Search SkuAuditEsSearch
Page bean.Page
}
type SkuAuditEsSearch struct {
SourceId uint // 供应商id
SourceSonId uint // 沙马供应商的供应商
AdjustType uint // 加价类型
Status uint // 状态 1=未审核 2=通过 3=驳回
AfterMinDiscount decimal.Decimal // 加价后最低折扣
AfterMaxDiscount decimal.Decimal // 加价后最高折扣
}
type SkuAndAuditItem struct { type SkuAndAuditItem struct {
AuditId uint `json:"auditId"` Id uint `json:"id"`
SkuId uint `json:"skuId"` SkuId uint `json:"skuId"`
Name string `json:"name"` Name string `json:"name"`
SupplyPrice decimal.Decimal `json:"supplyPrice"` SupplyPrice decimal.Decimal `json:"supplyPrice"`
GuidePrice decimal.Decimal `json:"guidePrice"` GuidePrice decimal.Decimal `json:"guidePrice"`
AdjustType uint `json:"adjustType"` AdjustType uint `json:"adjustType"`
AdjustPrice decimal.Decimal `json:"adjustPrice"` AdjustPrice decimal.Decimal `json:"adjustPrice"`
CustomerPrice decimal.Decimal `json:"customerPrice"` AfterPrice decimal.Decimal `json:"afterPrice"`
Category string `json:"category"` AfterDiscount decimal.Decimal `json:"afterDiscount"`
BrandName string `json:"brandName"` BrandName string `json:"brandName"`
SourceName string `json:"sourceName"` SourceName string `json:"sourceName"`
AuditUserId uint `json:"auditUserId"` AuditUserId uint `json:"auditUserId"`
AuditAt sql.NullTime `json:"auditAt"` AuditAt int64 `json:"auditAt"`
ImgUrl string `json:"imgUrl"` ImgUrl string `json:"imgUrl"`
Reason string `json:"reason"` Reason string `json:"reason"`
FirstCategoryName string `json:"firstCategoryName"` FirstCategoryName string `json:"firstCategoryName"`
SecondCategoryName string `json:"secondCategoryName"` SecondCategoryName string `json:"secondCategoryName"`
ThirdCategoryName string `json:"thirdCategoryName"` ThirdCategoryName string `json:"thirdCategoryName"`
CreatedAt time.Time `json:"createdAt"` CreatedAt int64 `json:"createdAt"`
} }
type ReplySkuAuditLists struct { type ReplySkuAuditLists struct {
@ -59,6 +72,16 @@ func (s *skuAudit) Lists(ctx context.Context, args ArgsSkuAuditLists) (reply Rep
return return
} }
// ListsEs @Title 审核列表
func (s *skuAudit) ListsEs(ctx context.Context, args ArgsSkuAuditEsLists) (reply ReplySkuAuditLists, err error) {
xClient, err := client.GetClient(s)
if err != nil {
return
}
err = xClient.Call(ctx, "ListsEs", args, &reply)
return
}
type ArgsSkuAuditAdopt struct { type ArgsSkuAuditAdopt struct {
AuditUserId uint // 审核人 AuditUserId uint // 审核人
AuditIds []uint // 审核单id AuditIds []uint // 审核单id

Loading…
Cancel
Save