Staff.groovy
上传用户:steveyhw
上传日期:2019-05-13
资源大小:307k
文件大小:2k
- class Staff {
- Person person
- String staId //员工编号
- String staName //员工姓名 *
- String staEname //员工英文名
- String staPass//领薪水确认码
- String staCard //身份证号 *
- Code staSex //性别
- Date staBirth //生日
- byte[] staImage //照片
- Code staType //员工类型 *
- Code staDepartment //所属部门 *
- Code staPosition //职位
- Date staCallinTime //调入时间 *
- Date staCometime //进本公司时间 *
- Code staWorkstate //在职状态 *
- String staEmail //邮箱
- String staTel1 //电话 *
- String staTel2 //备用电话
- String staLinkman //紧急联系人
- String staLinktel //紧急联系人电话
- String staMemo //备注
- String staDel //删除状态
- Date staCreatetime
- String staCreater
- Date staLastchange
- String staLastchanger
- String toString(){
- " ${this.staName}"
- }
- static constraints = {
- person(nullable:true)
- staId(maxSize:12,unique:true)
- staName(maxSize:10,blank:false)
- staEname(maxSize:20,nullable:true)
- staPass(maxSize:20,nullable:true)
- staCard(maxSize:20,unique:true,blank:false)
- staSex(blank:false)
- staBirth(blank:false)
- staImage(maxSize:100000,nullable:true)
- staType(blank:false)
- staDepartment(blank:false)
- staPosition(nullable:true)
- staCallinTime(blank:false)
- staCometime(blank:false)
- staWorkstate(blank:false)
- staEmail(maxSize:20,nullable:true)
- staTel1(maxSize:20,blank:false)
- staTel2(maxSize:20,nullable:true)
- staLinkman(maxSize:10,nullable:true)
- staLinktel(maxSize:20,nullable:true)
- staMemo(maxSize:2000,nullable:true)
- staDel(maxSize:2,blank:false)
- staCreatetime(blank:false)
- staCreater(maxSize:12,blank:false)
- staLastchange(blank:false)
- staLastchanger(maxSize:12,blank:false)
- }
- }