部署
This commit is contained in:
		
							parent
							
								
									94ca32e113
								
							
						
					
					
						commit
						3838a43615
					
				@ -29,5 +29,6 @@ const (
 | 
				
			|||||||
type ExportType = string // 导出类型
 | 
					type ExportType = string // 导出类型
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const (
 | 
					const (
 | 
				
			||||||
	ExportTypeSalePi = "salePi" // 销售pi导出
 | 
						ExportTypeSalePi      = "salePi"      // 销售pi导出
 | 
				
			||||||
 | 
						ExportTypeSaleBenefit = "saleBenefit" // 效益测算导出
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
				
			|||||||
@ -50,6 +50,7 @@ type ProductItem struct {
 | 
				
			|||||||
	Barcode        string           `json:"barcode"`
 | 
						Barcode        string           `json:"barcode"`
 | 
				
			||||||
	SellCountry    string           `json:"sellCountry"`
 | 
						SellCountry    string           `json:"sellCountry"`
 | 
				
			||||||
	Info           string           `json:"info"`
 | 
						Info           string           `json:"info"`
 | 
				
			||||||
 | 
						QuotePrice     *decimal.Decimal `json:"quotePrice"`
 | 
				
			||||||
	CreatedStaffId int64            `json:"createdStaffId"`
 | 
						CreatedStaffId int64            `json:"createdStaffId"`
 | 
				
			||||||
	DepartmentId   int64            `json:"departmentId"`
 | 
						DepartmentId   int64            `json:"departmentId"`
 | 
				
			||||||
	CreatedAt      *time.Time       `json:"createdAt"`
 | 
						CreatedAt      *time.Time       `json:"createdAt"`
 | 
				
			||||||
 | 
				
			|||||||
@ -5,6 +5,7 @@ import (
 | 
				
			|||||||
	"git.kumo.work/shama/service/client"
 | 
						"git.kumo.work/shama/service/client"
 | 
				
			||||||
	bean2 "git.kumo.work/shama/service/erp/bean"
 | 
						bean2 "git.kumo.work/shama/service/erp/bean"
 | 
				
			||||||
	product2 "git.kumo.work/shama/service/erp/product"
 | 
						product2 "git.kumo.work/shama/service/erp/product"
 | 
				
			||||||
 | 
						"git.kumo.work/shama/service/lib/bean"
 | 
				
			||||||
	"github.com/shopspring/decimal"
 | 
						"github.com/shopspring/decimal"
 | 
				
			||||||
	"time"
 | 
						"time"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
@ -12,6 +13,41 @@ import (
 | 
				
			|||||||
type product struct {
 | 
					type product struct {
 | 
				
			||||||
	product2.Product
 | 
						product2.Product
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					type ArgsProductList struct {
 | 
				
			||||||
 | 
						Page   bean.Page
 | 
				
			||||||
 | 
						Search ProductSearch
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					type ProductSearch struct {
 | 
				
			||||||
 | 
						PiSerial        string  // PiSerial
 | 
				
			||||||
 | 
						PoSerial        string  // PoSerial
 | 
				
			||||||
 | 
						CustomSerial    string  // 客户货号
 | 
				
			||||||
 | 
						Serial          string  // 货号
 | 
				
			||||||
 | 
						CreatedStaffIds []int64 // 录入人
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					type ReplyProductList struct {
 | 
				
			||||||
 | 
						Total int64             `json:"total"`
 | 
				
			||||||
 | 
						List  []ProductListItem `json:"list"`
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					type ProductListItem struct {
 | 
				
			||||||
 | 
						ProductItem
 | 
				
			||||||
 | 
						CreatedStaffId  int64      `json:"createdStaffId"`
 | 
				
			||||||
 | 
						CreatedAt       *time.Time `json:"createdAt"`
 | 
				
			||||||
 | 
						PiSerial        string     `json:"piSerial"`
 | 
				
			||||||
 | 
						PoSerial        string     `json:"poSerial"`
 | 
				
			||||||
 | 
						CustomShortName string     `json:"customShortName"`
 | 
				
			||||||
 | 
						CustomName      string     `json:"customName"`
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// List @TITLE 产品列表
 | 
				
			||||||
 | 
					func (p *product) List(ctx context.Context, args ArgsProductList) (reply ReplyProductList, err error) {
 | 
				
			||||||
 | 
						xClient, err := client.GetClient(p)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						err = xClient.Call(ctx, "List", args, &reply)
 | 
				
			||||||
 | 
						return
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
type ProductItem struct {
 | 
					type ProductItem struct {
 | 
				
			||||||
	Id                 int64            `json:"id"`
 | 
						Id                 int64            `json:"id"`
 | 
				
			||||||
	Mold               int64            `json:"mold"`
 | 
						Mold               int64            `json:"mold"`
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user