|
|
|
@ -26,69 +26,70 @@ import java.io.Serializable;
|
|
|
|
|
@JsonInclude(value = JsonInclude.Include.NON_EMPTY) //""或null属性不参加序列转换
|
|
|
|
|
public abstract class BaseBean implements Serializable {
|
|
|
|
|
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
|
|
|
|
//此处使用hibernate的主键策略方式
|
|
|
|
|
//手动设置,使用iplus-platform-common中的idtool生成
|
|
|
|
|
@Id
|
|
|
|
|
@GeneratedValue(generator = "IDGenerator")
|
|
|
|
|
@GenericGenerator(name = "IDGenerator", strategy = "assigned")
|
|
|
|
|
@Column(name="id")
|
|
|
|
|
@ApiParam(value = "主键",example = "0")
|
|
|
|
|
//将Long类型系列化成String避免精度丢失
|
|
|
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
|
|
|
|
public Long id;
|
|
|
|
|
//get单独处理
|
|
|
|
|
public Long getId() {
|
|
|
|
|
if(id != null) {
|
|
|
|
|
return id.longValue();
|
|
|
|
|
}else{
|
|
|
|
|
return id;
|
|
|
|
|
}
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
|
|
|
|
//此处使用hibernate的主键策略方式
|
|
|
|
|
//手动设置,使用iplus-platform-common中的idtool生成
|
|
|
|
|
//将Long类型系列化成String避免精度丢失
|
|
|
|
|
@Id
|
|
|
|
|
@GeneratedValue(generator = "IDGenerator")
|
|
|
|
|
@GenericGenerator(name = "IDGenerator", strategy = "assigned")
|
|
|
|
|
@Column(name="id")
|
|
|
|
|
@ApiParam(value = "主键",example = "0")
|
|
|
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
|
|
|
|
public Long id;
|
|
|
|
|
|
|
|
|
|
//get单独处理
|
|
|
|
|
public Long getId() {
|
|
|
|
|
if(id != null) {
|
|
|
|
|
return id.longValue();
|
|
|
|
|
}else{
|
|
|
|
|
return id;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Column(name="factory_code")
|
|
|
|
|
@ApiParam(value = "工厂代码")
|
|
|
|
|
public String factoryCode;
|
|
|
|
|
@Column(name="factory_code")
|
|
|
|
|
@ApiParam(value = "工厂代码")
|
|
|
|
|
public String factoryCode;
|
|
|
|
|
|
|
|
|
|
@Column(name="is_valid")
|
|
|
|
|
@ApiParam(value = "有效性",example = "1")
|
|
|
|
|
public Integer isValid; //EnumUtil.isValid;
|
|
|
|
|
@Column(name="is_valid")
|
|
|
|
|
@ApiParam(value = "有效性",example = "1")
|
|
|
|
|
public Integer isValid; //EnumUtil.isValid;
|
|
|
|
|
|
|
|
|
|
@Column(name="create_user")
|
|
|
|
|
@ApiParam(value = "创建日期")
|
|
|
|
|
public String createUser;
|
|
|
|
|
@Column(name="create_user")
|
|
|
|
|
@ApiParam(value = "创建日期")
|
|
|
|
|
public String createUser;
|
|
|
|
|
|
|
|
|
|
@Column(name="create_date")
|
|
|
|
|
@ApiParam(value = "创建日期")
|
|
|
|
|
public String createDatetime;
|
|
|
|
|
@Column(name="create_date")
|
|
|
|
|
@ApiParam(value = "创建日期")
|
|
|
|
|
public String createDatetime;
|
|
|
|
|
|
|
|
|
|
@Column(name="modify_user")
|
|
|
|
|
@ApiParam(value = "修改人")
|
|
|
|
|
public String modifyUser;
|
|
|
|
|
@Column(name="modify_user")
|
|
|
|
|
@ApiParam(value = "修改人")
|
|
|
|
|
public String modifyUser;
|
|
|
|
|
|
|
|
|
|
@Column(name="modify_date")
|
|
|
|
|
@ApiParam(value = "修改日期")
|
|
|
|
|
public String modifyDatetime;
|
|
|
|
|
@Column(name="modify_date")
|
|
|
|
|
@ApiParam(value = "修改日期")
|
|
|
|
|
public String modifyDatetime;
|
|
|
|
|
|
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
|
|
|
@ApiParam(value="创建日期查询用,查询起始日期",example = "2000-01-01 01:00:00")
|
|
|
|
|
public transient String createDateTimeStart;
|
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
|
|
|
@ApiParam(value="创建日期查询用,查询起始日期",example = "2000-01-01 01:00:00")
|
|
|
|
|
public transient String createDateTimeStart;
|
|
|
|
|
|
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
|
|
|
@ApiParam(value="创建日期查询用,查询结束日期",example = "2000-01-01 01:00:00")
|
|
|
|
|
public transient String createDateTimeEnd;
|
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
|
|
|
@ApiParam(value="创建日期查询用,查询结束日期",example = "2000-01-01 01:00:00")
|
|
|
|
|
public transient String createDateTimeEnd;
|
|
|
|
|
|
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
|
|
|
@ApiParam(value="修改日期查询用,查询起始日期",example = "用于前台查询")
|
|
|
|
|
public transient String modifyDateTimeStart;
|
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
|
|
|
@ApiParam(value="修改日期查询用,查询起始日期",example = "用于前台查询")
|
|
|
|
|
public transient String modifyDateTimeStart;
|
|
|
|
|
|
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
|
|
|
@ApiParam(value = "修改日期查询用,查询结束日期",example = "用于前台查询")
|
|
|
|
|
public transient String modifyDateTimeEnd;
|
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
|
|
|
@ApiParam(value = "修改日期查询用,查询结束日期",example = "用于前台查询")
|
|
|
|
|
public transient String modifyDateTimeEnd;
|
|
|
|
|
|
|
|
|
|
@ApiParam(value = "排序属性")
|
|
|
|
|
public transient String orderByParam;
|
|
|
|
|
@ApiParam(value = "排序属性")
|
|
|
|
|
public transient String orderByParam;
|
|
|
|
|
|
|
|
|
|
@ApiParam(value = "排序属性",example = "1")
|
|
|
|
|
//CommonEnumUtil.ASC_OR_DESC 1 asc,2 desc
|
|
|
|
|