feat(k3cloud): 添加ActionIdField映射常量
- 为不同Action类型定义对应的ID字段映射关系 - 支持部门、员工、岗位等18种业务实体的ID字段配置 - 提供统一的Action到数据库字段的映射查询接口
This commit is contained in:
@@ -22,6 +22,26 @@ const (
|
||||
ActionInformation Action = "BOS_ASSISTANTDATA_DETAIL" // 辅助资料
|
||||
)
|
||||
|
||||
var ActionIdField = map[Action]string{
|
||||
ActionDepartment: "FDEPTID",
|
||||
ActionStaff: "FID",
|
||||
ActionStaffPosition: "FSTAFFID",
|
||||
ActionOperatorType: "FOperatorId",
|
||||
ActionPosition: "FPOSTID",
|
||||
ActionFactory: "FSupplierId",
|
||||
ActionContact: "FCONTACTID",
|
||||
ActionCustom: "FCUSTID",
|
||||
ActionReceivable: "FID",
|
||||
ActionPayable: "FID",
|
||||
ActionProduct: "FMATERIALID",
|
||||
ActionCurrency: "",
|
||||
ActionSettleType: "",
|
||||
ActionRecPayPurpose: "",
|
||||
ActionExpense: "",
|
||||
ActionPayment: "FID",
|
||||
ActionInformation: "FEntryID",
|
||||
}
|
||||
|
||||
type OperatorType = string
|
||||
|
||||
const (
|
||||
|
||||
Reference in New Issue
Block a user