feat(erp): 新增做账合同生成功能和数据归档接口
- 在 accounting 模块中新增 Gen 方法用于生成做账合同 - 在 shipment 模块中新增 ArchiveData 方法用于数据归档 - 调整 import 包顺序并优化 rpcx 客户端初始化逻辑 -为 erp服务添加本地调试用的 p2p discovery 配置
This commit is contained in:
@@ -2,12 +2,13 @@ package erp
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
"git.kumo.work/shama/service/client"
|
||||
bean2 "git.kumo.work/shama/service/erp/bean"
|
||||
shipment2 "git.kumo.work/shama/service/erp/shipment"
|
||||
"git.kumo.work/shama/service/lib/bean"
|
||||
"github.com/shopspring/decimal"
|
||||
"time"
|
||||
)
|
||||
|
||||
type shipment struct {
|
||||
@@ -261,3 +262,13 @@ func (s *shipment) Clone(ctx context.Context, args ArgsShipmentClone) (reply int
|
||||
err = xClient.Call(ctx, "Clone", args, &reply)
|
||||
return
|
||||
}
|
||||
|
||||
// ArchiveData @TITLE 归档
|
||||
func (s *shipment) ArchiveData(ctx context.Context, shipmentIds []int64) (reply int64, err error) {
|
||||
xClient, err := client.GetClient(s)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
err = xClient.Call(ctx, "ArchiveData", shipmentIds, &reply)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user