feat(k3cloud): 添加动作编号字段映射常量

- 为部门、员工、岗位等实体添加 FNumber 字段映射
- 为应收、应付单据添加 FBillNo 字段映射
- 扩展 ActionNumberField 映射表以支持更多业务实体
- 统一编号字段访问逻辑,提升代码可维护性
This commit is contained in:
2025-12-17 15:25:02 +08:00
parent 28d650a7bc
commit 5b4a26d13d

View File

@@ -41,6 +41,25 @@ var ActionIdField = map[Action]string{
ActionPayment: "FID",
ActionInformation: "FEntryID",
}
var ActionNumberField = map[Action]string{
ActionDepartment: "FNumber",
ActionStaff: "FNumber",
ActionStaffPosition: "FNumber",
ActionOperatorType: "FNumber",
ActionPosition: "FNumber",
ActionFactory: "FNumber",
ActionContact: "FNumber",
ActionCustom: "FNumber",
ActionReceivable: "FBillNo",
ActionPayable: "FBillNo",
ActionProduct: "FNumber",
ActionCurrency: "FNumber",
ActionSettleType: "FNumber",
ActionRecPayPurpose: "FNumber",
ActionExpense: "FNumber",
ActionPayment: "FBillNo",
ActionInformation: "FNumber",
}
type OperatorType = string