修复错误

This commit is contained in:
2026-07-14 10:19:03 +08:00
parent cc9f6c4d71
commit 238f210d52
3 changed files with 6 additions and 6 deletions
+5 -5
View File
@@ -577,7 +577,7 @@ func (c *BackendErpController) GetPosition() {
qs := models.Orm.QueryTable(new(models.BackendErpPosition))
if tid > 0 {
qs = qs.Filter("tenant_id", tid)
qs = qs.Filter("tid", tid)
}
if departmentID > 0 {
qs = qs.Filter("department_id", departmentID)
@@ -641,7 +641,7 @@ func (c *BackendErpController) CreatePosition() {
sortVal, _ := c.getUintValue(body, "sort")
row := models.BackendErpPosition{
TenantID: tenantID,
Tid: tenantID,
DepartmentID: departmentID,
PositionCode: positionCode,
PositionName: positionName,
@@ -675,7 +675,7 @@ func (c *BackendErpController) EditPosition() {
update := orm.Params{}
if v, has := c.getUint64Value(body, "tenant_id", "tid"); has {
update["tenant_id"] = v
update["tid"] = v
}
if v, has := c.getUint64Value(body, "department_id"); has {
update["department_id"] = v
@@ -848,8 +848,8 @@ func (c *BackendErpController) organizationNameByIDString(idValue string) string
func (c *BackendErpController) positionDTO(row models.BackendErpPosition) erpPositionDTO {
return erpPositionDTO{
ID: row.ID,
TenantID: row.TenantID,
Tid: row.TenantID,
TenantID: row.Tid,
Tid: row.Tid,
DepartmentID: row.DepartmentID,
PositionCode: row.PositionCode,
PositionName: row.PositionName,