From 81f03ed030fed416dfd2153231dbf06854789562 Mon Sep 17 00:00:00 2001 From: huanghai <10402852@qq.com> Date: Tue, 18 Aug 2020 17:11:28 +0800 Subject: [PATCH] 'commit' --- .../BaseTeacherDao/BaseTeacherDao.go | 2 - .../models/t_base_teacher_import_excel.go | 45 +++++++++---------- 2 files changed, 22 insertions(+), 25 deletions(-) diff --git a/dsBaseRpc/RpcService/BaseTeacher/BaseTeacherDao/BaseTeacherDao.go b/dsBaseRpc/RpcService/BaseTeacher/BaseTeacherDao/BaseTeacherDao.go index 3025e452..205afc6e 100644 --- a/dsBaseRpc/RpcService/BaseTeacher/BaseTeacherDao/BaseTeacherDao.go +++ b/dsBaseRpc/RpcService/BaseTeacher/BaseTeacherDao/BaseTeacherDao.go @@ -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) } diff --git a/dsBaseRpc/models/t_base_teacher_import_excel.go b/dsBaseRpc/models/t_base_teacher_import_excel.go index 943d00d7..93005931 100644 --- a/dsBaseRpc/models/t_base_teacher_import_excel.go +++ b/dsBaseRpc/models/t_base_teacher_import_excel.go @@ -5,27 +5,26 @@ import ( ) type TBaseTeacherImportExcel struct { - Id string `xorm:"not null pk default ''0'' comment('ID') CHAR(36)"` - Xm string `xorm:"not null default '''' comment('教师姓名') VARCHAR(100)"` - Xbm string `xorm:"not null comment('性别码') CHAR(1)"` - Csrq time.Time `xorm:"not null comment('出生日期') DATE"` - Mzm string `xorm:"not null default '''' comment('民族码') CHAR(2)"` - Zzmmm string `xorm:"not null default '''' comment('政治面貌码') CHAR(2)"` - Sfzjlxm string `xorm:"not null default '''' comment('身份证件类型码') CHAR(1)"` - Sfzjh string `xorm:"not null default '''' comment('身份证件号') index index(sfzjlxm) VARCHAR(100)"` - Xlm string `xorm:"not null default '''' comment('学历码') CHAR(2)"` - Xwm string `xorm:"not null default '''' comment('学位码') CHAR(1)"` - Zcm string `xorm:"not null default '''' comment('职称码') CHAR(1)"` - Bzlbm string `xorm:"not null default '''' comment('编制类型码') CHAR(1)"` - StageId string `xorm:"not null default '''' comment('主要任课学段') CHAR(1)"` - SubjectId string `xorm:"not null default '''' comment('主要任课学科') CHAR(2)"` - Gwzym string `xorm:"not null default '''' comment('岗位') CHAR(2)"` - Lxdh string `xorm:"not null default '''' comment('联系电话') index VARCHAR(100)"` - 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)"` - 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)"` + Id string `xorm:"not null pk default ''0'' comment('ID') CHAR(36)"` + Xm string `xorm:"not null default '''' comment('教师姓名') VARCHAR(100)"` + Xbm string `xorm:"not null comment('性别码') CHAR(1)"` + Csrq time.Time `xorm:"not null comment('出生日期') DATE"` + Mzm string `xorm:"not null default '''' comment('民族码') CHAR(2)"` + Zzmmm string `xorm:"not null default '''' comment('政治面貌码') CHAR(2)"` + Sfzjlxm string `xorm:"not null default '''' comment('身份证件类型码') CHAR(1)"` + Sfzjh string `xorm:"not null default '''' comment('身份证件号') index index(sfzjlxm) VARCHAR(100)"` + Xlm string `xorm:"not null default '''' comment('学历码') CHAR(2)"` + Xwm string `xorm:"not null default '''' comment('学位码') CHAR(1)"` + Zcm string `xorm:"not null default '''' comment('职称码') CHAR(1)"` + Bzlbm string `xorm:"not null default '''' comment('编制类型码') CHAR(1)"` + StageId string `xorm:"not null default '''' comment('主要任课学段') CHAR(1)"` + SubjectId string `xorm:"not null default '''' comment('主要任课学科') CHAR(2)"` + Gwzym string `xorm:"not null default '''' comment('岗位') CHAR(2)"` + Lxdh string `xorm:"not null default '''' comment('联系电话') index VARCHAR(100)"` + 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 index(org_id) index(org_name) index index(sfzjlxm) CHAR(36)"` + RowNumber int32 `xorm:"not null default 0 comment('对应的EXCEL是第几行的数据') INT(11)"` + PersonId string `xorm:"not null default '''' comment('人员ID') CHAR(36)"` }