You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
910 B
22 lines
910 B
|
4 years ago
|
package hrsystem
|
||
|
|
|
||
|
|
import "github.com/flipped-aurora/gin-vue-admin/server/global"
|
||
|
|
|
||
|
|
//职位等级
|
||
|
|
type PositionLevel struct {
|
||
|
|
Id int64 `json:"id" gorm:"primaryKey;column:id;type:bigint(20) unsigned;not null;comment:Id;index"`
|
||
|
|
Number string `json:"number" gorm:"column:number;type:varchar(50) unsigned;default:'';not null;comment:等级编号"`
|
||
|
|
Name string `json:"name" gorm:"column:name;type:varchar(255) unsigned;default:'';not null;comment:等级名称"`
|
||
|
|
Time int64 `json:"time" gorm:"column:time;type:bigint(20) unsigned;default:0;not null;comment:创建时间"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (PositionLevel *PositionLevel) TableName() string {
|
||
|
|
return "personnel_change_record"
|
||
|
|
}
|
||
|
|
|
||
|
|
//编辑职务分类内容
|
||
|
|
func (PositionLevel *PositionLevel) EiteCont(whereMap interface{}, saveData interface{}) (err error) {
|
||
|
|
err = global.GVA_DB_HrDataBase.Model(&PositionLevel).Where(whereMap).Updates(saveData).Error
|
||
|
|
return
|
||
|
|
}
|