Compare commits
2 Commits
8de8393c07
...
34a9bcdd37
| Author | SHA1 | Date | |
|---|---|---|---|
| 34a9bcdd37 | |||
| 96993c312a |
@@ -9,18 +9,20 @@ import (
|
|||||||
type factory struct {
|
type factory struct {
|
||||||
}
|
}
|
||||||
type ArgsFactorySave struct {
|
type ArgsFactorySave struct {
|
||||||
FactoryId int64 // 工厂id
|
FactoryId int64 // 工厂id
|
||||||
Number string // 工厂编码
|
Number string // 工厂编码
|
||||||
Name string // 工厂名称
|
Name string // 工厂名称
|
||||||
ShortName string // 简称
|
ShortName string // 简称
|
||||||
Address string // 地址
|
Address string // 地址
|
||||||
ZipCode string
|
ZipCode string
|
||||||
LegalPerson string
|
LegalPerson string
|
||||||
TaxNumber string
|
TaxNumber string
|
||||||
RegAddress string
|
RegAddress string
|
||||||
Bank string
|
Bank string
|
||||||
BankAccount string
|
BankAccount string
|
||||||
Contacts []FactoryContactItem
|
Contacts []FactoryContactItem
|
||||||
|
DepartmentNumber string // 部门编号
|
||||||
|
StaffNumber string // 员工编号
|
||||||
}
|
}
|
||||||
|
|
||||||
type FactoryContactItem struct {
|
type FactoryContactItem struct {
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.kumo.work/shama/service/client"
|
"git.kumo.work/shama/service/client"
|
||||||
"git.kumo.work/shama/service/ik3cloud"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type department struct {
|
type department struct {
|
||||||
@@ -97,13 +96,20 @@ func (d *department) SetStaff(ctx context.Context, args ArgsDepartmentSetStaff)
|
|||||||
return xClient.Call(ctx, "SetStaff", args, &reply)
|
return xClient.Call(ctx, "SetStaff", args, &reply)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type ReplyDepartmentIk3cloudInfo struct {
|
||||||
|
Id int64 `json:"id"` // 金蝶员工id
|
||||||
|
Number string `json:"number"` // 金蝶员工编码
|
||||||
|
PositionId int64 `json:"positionId"` // 金蝶部门职位id
|
||||||
|
PositionNumber string `json:"positionNumber"` // 金蝶部门职位编码
|
||||||
|
}
|
||||||
|
|
||||||
// Ik3cloudInfo @TITLE 金蝶同步信息
|
// Ik3cloudInfo @TITLE 金蝶同步信息
|
||||||
func (d *department) Ik3cloudInfo(ctx context.Context, departmentId int64) (entity ik3cloud.Entity, err error) {
|
func (d *department) Ik3cloudInfo(ctx context.Context, departmentId int64) (reply ReplyDepartmentIk3cloudInfo, err error) {
|
||||||
xClient, err := client.GetClient(d)
|
xClient, err := client.GetClient(d)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
err = xClient.Call(ctx, "Ik3cloudInfo", departmentId, &entity)
|
err = xClient.Call(ctx, "Ik3cloudInfo", departmentId, &reply)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
16
oa/staff.go
16
oa/staff.go
@@ -5,7 +5,6 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.kumo.work/shama/service/client"
|
"git.kumo.work/shama/service/client"
|
||||||
"git.kumo.work/shama/service/ik3cloud"
|
|
||||||
"git.kumo.work/shama/service/lib/bean"
|
"git.kumo.work/shama/service/lib/bean"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -267,13 +266,24 @@ func (s *staff) Enable(ctx context.Context, staffIds []int64) (err error) {
|
|||||||
return xClient.Call(ctx, "Enable", staffIds, &reply)
|
return xClient.Call(ctx, "Enable", staffIds, &reply)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type ReplyStaffIk3cloudInfo struct {
|
||||||
|
Id int64 `json:"id"` // 金蝶员工id
|
||||||
|
Number string `json:"number"` // 金蝶员工编码
|
||||||
|
PositionId int64 `json:"positionId"` // 金蝶部门职位id
|
||||||
|
PositionNumber string `json:"positionNumber"` // 金蝶部门职位编码
|
||||||
|
XsyId int64 `json:"xsyId"` // 金蝶员工销售员id
|
||||||
|
XsyNumber string `json:"xsyNumber"` // 金蝶员工销售员编码
|
||||||
|
CgyId int64 `json:"cgyId"` // 金蝶员工采购员id
|
||||||
|
CgyNumber string `json:"cgyNumber"` // 金蝶员工采购员编码
|
||||||
|
}
|
||||||
|
|
||||||
// Ik3cloudInfo @TITLE 金蝶同步信息
|
// Ik3cloudInfo @TITLE 金蝶同步信息
|
||||||
func (s *staff) Ik3cloudInfo(ctx context.Context, staffId int64) (entity ik3cloud.Entity, err error) {
|
func (s *staff) Ik3cloudInfo(ctx context.Context, staffId int64) (reply ReplyStaffIk3cloudInfo, err error) {
|
||||||
xClient, err := client.GetClient(s)
|
xClient, err := client.GetClient(s)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
err = xClient.Call(ctx, "Ik3cloudInfo", staffId, &entity)
|
err = xClient.Call(ctx, "Ik3cloudInfo", staffId, &reply)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user