feat(sale): 新增销售合同效益测算审核功能

- 在 append.go 中添加 AuditBenefit 方法,用于审核效益测算
- 在 audit.go 中添加 Benefit 方法,用于效益测算审核
- 在 constant.go 中添加 BusinessTypeSaleBenefitAudit常量,用于标识销售合同效益测算审核业务类型
This commit is contained in:
2025-07-29 17:46:47 +08:00
parent 212ca5a7e5
commit 1ec6a5ca32
3 changed files with 29 additions and 0 deletions

View File

@@ -67,3 +67,21 @@ func (a *audit) Change(ctx context.Context, args ArgsAuditChange) (err error) {
err = xClient.Call(ctx, "Change", args, &reply)
return
}
type ArgsAuditBenefit struct {
StaffId int64 // 操作人
SaleId int64 // 销售合同id
AuditStaffIds []int64 // 审核人
ArgsBenefitEdit
}
// Benefit @TITLE 效益测算审核
func (a *audit) Benefit(ctx context.Context, args ArgsAuditBenefit) (err error) {
xClient, err := client.GetClient(a)
if err != nil {
return
}
reply := 0
err = xClient.Call(ctx, "Benefit", args, &reply)
return
}