master
huanghai 5 years ago
parent 6c8002374f
commit 81f03ed030

@ -558,8 +558,6 @@ func readToTable(excelPath string, s1 ExcelUtil.TemplateStruct, MapOrgName map[s
m.BatchId = batchId
//第几行的数据
m.RowNumber = int32(i + 1)
//新增还是修改,默认是新增
m.InsertOrUpdate = 1
//添加到数组中
ms = append(ms, m)
}

@ -24,8 +24,7 @@ type TBaseTeacherImportExcel struct {
Dzxx string `xorm:"not null default '''' comment('电子信箱') index VARCHAR(100)"`
OrgId string `xorm:"not null default '''' comment('部门ID') index(org_id) CHAR(36)"`
OrgName string `xorm:"not null default '''' comment('部门名称') index(org_name) VARCHAR(100)"`
BatchId string `xorm:"not null default '''' comment('批次ID') index index(batch_id_2) index(org_id) index(org_name) index index(sfzjlxm) CHAR(36)"`
BatchId string `xorm:"not null default '''' comment('批次ID') index index index(org_id) index(org_name) index index(sfzjlxm) CHAR(36)"`
RowNumber int32 `xorm:"not null default 0 comment('对应的EXCEL是第几行的数据') INT(11)"`
InsertOrUpdate int32 `xorm:"not null default 1 comment('是新增加还是修改1新增2:修改') index(batch_id_2) INT(11)"`
PersonId string `xorm:"not null default '''' comment('人员ID') CHAR(36)"`
}

Loading…
Cancel
Save