public class ApplyTaskEntity {
@Name
@Column("APPLY_NO")
@Comment("申请批次号")
@ColDefine(type=ColType.VARCHAR, width=15)
public String applyNo;
@Column("APPLY_TYPE")
@Comment("申请类型")
@ColDefine(type=ColType.VARCHAR, width=10)
public String applyType;
@Column("ORGAN_NO")
@Comment("申请机构")
@ColDefine(type=ColType.VARCHAR, width=12)
public String organNo;
@Column("USER_NO")
@Comment("申请人编号")
@ColDefine(type=ColType.VARCHAR, width=12)
public String userNo;
@Column("RESON")
@Comment("申请原因")
@ColDefine(type=ColType.VARCHAR, width=500)
public String reson;
@Column("TIME")
@Comment("申请时间")
@ColDefine(type=ColType.DATETIME)
public Date time;
@Column("remark")
@Comment("备注")
@ColDefine(type=ColType.VARCHAR, width=500)
public String remark;
@Column("STATE")
@Comment("状态")
@ColDefine(type=ColType.VARCHAR, width=20)
public String state;
@ManyMany(from="APPLY_NO", target = FileEntity.class, to = "FILE_ID", relation = "YDM_PLEDGE_APPLY_FILE")
@Comment("附件集合")
public List<FileEntity> atts;
@Many(field = "applyNo")
@Comment("清单")
public List<ApplyInfoEntity> plgs;
@One(field = "userNo", target = User.class)
@Comment("申请人")
public User user;
}