1
This commit is contained in:
@@ -15,7 +15,7 @@ func QueryPrintBindStore(printNo string) ([]*model.PrintBindStore, error) {
|
||||
}
|
||||
|
||||
// BindStoreList 绑定门店信息
|
||||
func BindStoreList(req *model.AddPrinterParam) error {
|
||||
func BindStoreList(req *model.AddPrinterParam, userId string) error {
|
||||
param := &model.PrintBindStore{
|
||||
CreatedAt: time.Now(),
|
||||
UpdatedAt: time.Now(),
|
||||
@@ -23,9 +23,13 @@ func BindStoreList(req *model.AddPrinterParam) error {
|
||||
StoreName: req.Name,
|
||||
StoreVendor: 9, // 绑定平台,全平台
|
||||
PrintNo: req.PrintNo,
|
||||
UserId: "system", // 所属用户
|
||||
StoreStatus: 1, // 门店开启
|
||||
BindStatus: 1, // 绑定状态
|
||||
StoreStatus: 1, // 门店开启
|
||||
BindStatus: 1, // 绑定状态
|
||||
}
|
||||
if userId != "" {
|
||||
param.UserId = userId
|
||||
} else {
|
||||
param.UserId = "system"
|
||||
}
|
||||
return CreateEntity(GetDB(), param)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user