部分实体类添加序列化ID
This commit is contained in:
parent
667e6bd43c
commit
7217d255c3
|
@ -9,12 +9,15 @@ import org.springframework.data.annotation.CreatedDate;
|
|||
import org.springframework.data.annotation.LastModifiedBy;
|
||||
import org.springframework.data.annotation.LastModifiedDate;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Data
|
||||
public class BaseEntity implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1580095503473529464L;
|
||||
@ApiModelProperty("启用状态,1启动,0禁用")
|
||||
public Integer status = 1;
|
||||
|
||||
|
|
|
@ -5,9 +5,14 @@ import lombok.Data;
|
|||
import org.springframework.data.annotation.Id;
|
||||
import org.springframework.data.relational.core.mapping.Table;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@Table("city")
|
||||
public class CityEntity {
|
||||
public class CityEntity implements Serializable {
|
||||
@Serial
|
||||
private static final long serialVersionUID = -2785576371239661506L;
|
||||
@Id
|
||||
private Long id;
|
||||
private String city;
|
||||
|
|
|
@ -4,9 +4,14 @@ import lombok.Data;
|
|||
import org.springframework.data.annotation.Id;
|
||||
import org.springframework.data.relational.core.mapping.Table;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@Table("country")
|
||||
public class CountryEntity {
|
||||
public class CountryEntity implements Serializable {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1725253575288490864L;
|
||||
@Id
|
||||
private Long id;
|
||||
private Integer country; // 注意:在Kotlin中是Int,在Java中对应的是Integer
|
||||
|
|
|
@ -8,6 +8,8 @@ import org.springframework.data.annotation.Id;
|
|||
import org.springframework.data.relational.core.mapping.MappedCollection;
|
||||
import org.springframework.data.relational.core.mapping.Table;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
|
@ -19,7 +21,9 @@ import java.util.List;
|
|||
|
||||
@Data
|
||||
@Table("c_trip_airport_poi_info")
|
||||
public class AirportPOIInfoEntity {
|
||||
public class AirportPOIInfoEntity implements Serializable {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 6884758087696416899L;
|
||||
@Id
|
||||
private Long id;
|
||||
private String airportCode;
|
||||
|
|
|
@ -9,12 +9,17 @@ import org.springframework.data.annotation.Id;
|
|||
import org.springframework.data.relational.core.mapping.MappedCollection;
|
||||
import org.springframework.data.relational.core.mapping.Table;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@Table("c_trip_country_info")
|
||||
public class CountryInfoEntity {
|
||||
public class CountryInfoEntity implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 3538204187271667228L;
|
||||
@Id
|
||||
private Long id;
|
||||
private Long countryId;
|
||||
|
|
|
@ -7,6 +7,9 @@ import lombok.Data;
|
|||
import org.springframework.data.annotation.Id;
|
||||
import org.springframework.data.relational.core.mapping.Table;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author wanglf3
|
||||
* @date 2024-03-02
|
||||
|
@ -15,7 +18,9 @@ import org.springframework.data.relational.core.mapping.Table;
|
|||
|
||||
@Data
|
||||
@Table("c_trip_country_level_info")
|
||||
public class CountryLevelInfoEntity {
|
||||
public class CountryLevelInfoEntity implements Serializable {
|
||||
@Serial
|
||||
private static final long serialVersionUID = -3622189228854591969L;
|
||||
@Id
|
||||
private Long id;
|
||||
private Long countyId;
|
||||
|
|
|
@ -9,6 +9,8 @@ import org.springframework.data.annotation.Id;
|
|||
import org.springframework.data.relational.core.mapping.MappedCollection;
|
||||
import org.springframework.data.relational.core.mapping.Table;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
|
@ -20,7 +22,10 @@ import java.util.List;
|
|||
|
||||
@Data
|
||||
@Table("c_trip_province_info")
|
||||
public class POIDataInfoEntity {
|
||||
public class POIDataInfoEntity implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1099360955965573849L;
|
||||
@Id
|
||||
private Long id;
|
||||
private Long provinceId;
|
||||
|
|
|
@ -7,6 +7,8 @@ import org.springframework.data.annotation.Id;
|
|||
import org.springframework.data.relational.core.mapping.MappedCollection;
|
||||
import org.springframework.data.relational.core.mapping.Table;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
|
@ -18,7 +20,11 @@ import java.util.List;
|
|||
|
||||
@Data
|
||||
@Table("c_trip_prefecture_level_city_info")
|
||||
public class PrefectureLevelCityInfoEntity {
|
||||
public class PrefectureLevelCityInfoEntity implements Serializable {
|
||||
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = -5962911148695897275L;
|
||||
@Id
|
||||
private Long id;
|
||||
private Long cityId;
|
||||
|
|
|
@ -6,11 +6,15 @@ import org.springframework.data.annotation.Id;
|
|||
import org.springframework.data.annotation.Transient;
|
||||
import org.springframework.data.relational.core.mapping.Column;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Data
|
||||
public class ApprovalEvent implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 3576417750943244614L;
|
||||
@Id
|
||||
private Long approvalEventId;
|
||||
@Column("route_id")
|
||||
|
|
|
@ -3,10 +3,14 @@ package com.chint.domain.aggregates.order;
|
|||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class ApproveOrderNo implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = -4124060029779709530L;
|
||||
@ApiModelProperty("billcode")
|
||||
private String fakeOrderNo;
|
||||
@ApiModelProperty("系统标识")
|
||||
|
|
|
@ -4,11 +4,15 @@ import lombok.Data;
|
|||
import org.springframework.data.annotation.Id;
|
||||
import org.springframework.data.relational.core.mapping.Table;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@Table("car_order_detail")
|
||||
public class CarOrderDetail implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = -6363099758094263721L;
|
||||
@Id
|
||||
private Long id;
|
||||
|
||||
|
|
|
@ -3,6 +3,9 @@ package com.chint.domain.aggregates.order;
|
|||
import lombok.Data;
|
||||
import org.springframework.data.relational.core.mapping.Table;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author wanglf3
|
||||
* @date 2024-02-28
|
||||
|
@ -11,7 +14,9 @@ import org.springframework.data.relational.core.mapping.Table;
|
|||
|
||||
@Data
|
||||
@Table("client")
|
||||
public class Client {
|
||||
public class Client implements Serializable {
|
||||
@Serial
|
||||
private static final long serialVersionUID = -3535888928850258641L;
|
||||
private Long id;
|
||||
private String clientId;
|
||||
private String clientSecret;
|
||||
|
|
|
@ -4,11 +4,14 @@ import lombok.Data;
|
|||
import org.springframework.data.annotation.Id;
|
||||
import org.springframework.data.relational.core.mapping.Table;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@Table("flight_order_detail")
|
||||
public class FlightOrderDetail implements Serializable {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1477918306209404564L;
|
||||
@Id
|
||||
private Long id;
|
||||
|
||||
|
|
|
@ -5,11 +5,15 @@ import lombok.Data;
|
|||
import org.springframework.data.annotation.Id;
|
||||
import org.springframework.data.relational.core.mapping.Table;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@Table("hotel_order_detail_customer")
|
||||
public class HotelOrderDetailCustomer implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = -4749739286701371347L;
|
||||
@Id
|
||||
private Long id;
|
||||
// 入住人性别
|
||||
|
|
|
@ -16,6 +16,7 @@ import org.springframework.data.relational.core.mapping.Column;
|
|||
import org.springframework.data.relational.core.mapping.MappedCollection;
|
||||
import org.springframework.data.relational.core.mapping.Table;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
|
@ -30,7 +31,8 @@ import static com.chint.infrastructure.constant.LegConstant.*;
|
|||
@Table("leg")
|
||||
@NoArgsConstructor
|
||||
public class Leg implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1127655864081547575L;
|
||||
@Id
|
||||
private Long legId;
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@ import org.springframework.data.annotation.Transient;
|
|||
import org.springframework.data.relational.core.mapping.Column;
|
||||
import org.springframework.data.relational.core.mapping.Table;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
@ -14,6 +15,9 @@ import java.util.List;
|
|||
@Data
|
||||
@Table("leg_event")
|
||||
public class LegEvent implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = -1959898560086209925L;
|
||||
@Id
|
||||
private Long legEventId;
|
||||
@Column("leg_id")
|
||||
|
|
|
@ -6,6 +6,7 @@ import org.springframework.data.annotation.Id;
|
|||
import org.springframework.data.annotation.Transient;
|
||||
import org.springframework.data.relational.core.mapping.Table;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
|
@ -14,6 +15,8 @@ import java.util.List;
|
|||
@Data
|
||||
@Table("leg_extension_field")
|
||||
public class LegExtensionField implements Serializable {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 5140531091310152869L;
|
||||
@Id
|
||||
private Long id;
|
||||
private Long legId;
|
||||
|
|
|
@ -9,6 +9,7 @@ import org.springframework.data.relational.core.mapping.Column;
|
|||
import org.springframework.data.relational.core.mapping.MappedCollection;
|
||||
import org.springframework.data.relational.core.mapping.Table;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
|
@ -17,7 +18,8 @@ import java.util.List;
|
|||
@NoArgsConstructor
|
||||
@Table("location_2")
|
||||
public class Location implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = -4974427694646166097L;
|
||||
@Id
|
||||
private Long locationId;
|
||||
private String locationPath;
|
||||
|
|
|
@ -9,6 +9,7 @@ import org.springframework.data.annotation.Transient;
|
|||
import org.springframework.data.relational.core.mapping.MappedCollection;
|
||||
import org.springframework.data.relational.core.mapping.Table;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.ArrayList;
|
||||
|
@ -22,6 +23,9 @@ import static com.chint.infrastructure.constant.OrderConstant.ORDER_EVENT_PREPAR
|
|||
@Data
|
||||
@Table("order_detail")
|
||||
public class OrderDetail implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 3362123085136873921L;
|
||||
@Id
|
||||
private Long orderId; // 使用 order_id 作为主键
|
||||
private Long legId; // 使用行程节点关联leg
|
||||
|
|
|
@ -7,12 +7,16 @@ import org.springframework.data.annotation.Transient;
|
|||
import org.springframework.data.relational.core.mapping.Column;
|
||||
import org.springframework.data.relational.core.mapping.Table;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Data
|
||||
@Table("order_event")
|
||||
public class OrderEvent implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = -5062771725532963652L;
|
||||
@Id
|
||||
private Long orderEventId;
|
||||
@Column("order_id")
|
||||
|
|
|
@ -8,12 +8,16 @@ import org.springframework.data.annotation.Id;
|
|||
import org.springframework.data.relational.core.mapping.Column;
|
||||
import org.springframework.data.relational.core.mapping.Table;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Table("order_travel")
|
||||
public class OrderTravel {
|
||||
|
||||
public class OrderTravel implements Serializable {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 243833637817633915L;
|
||||
@Id
|
||||
private Long id;
|
||||
private String orderNo;
|
||||
|
|
|
@ -4,11 +4,15 @@ import lombok.Data;
|
|||
import org.springframework.data.annotation.Id;
|
||||
import org.springframework.data.relational.core.mapping.Table;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@Table("other_order_detail")
|
||||
public class OtherOrderDetail implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = -2115415804895705130L;
|
||||
@Id
|
||||
private Long id;
|
||||
}
|
||||
|
|
|
@ -24,6 +24,7 @@ import org.springframework.data.relational.core.mapping.Embedded;
|
|||
import org.springframework.data.relational.core.mapping.MappedCollection;
|
||||
import org.springframework.data.relational.core.mapping.Table;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.time.Duration;
|
||||
import java.time.LocalDateTime;
|
||||
|
@ -38,6 +39,9 @@ import static com.chint.infrastructure.constant.UtilConstant.RESULT_ORDER_DETAIL
|
|||
@Data
|
||||
@Table("route_order")
|
||||
public class RouteOrder implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 7518163780781923990L;
|
||||
@Id
|
||||
@Column("route_id")
|
||||
private Long routeId;
|
||||
|
|
|
@ -6,12 +6,16 @@ import lombok.experimental.Accessors;
|
|||
import org.springframework.data.annotation.Id;
|
||||
import org.springframework.data.relational.core.mapping.Table;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@Table("train_order_detail")
|
||||
@Accessors(chain = true)
|
||||
public class TrainOrderDetail implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 705751801225505546L;
|
||||
@Id
|
||||
private Long id;
|
||||
|
||||
|
|
|
@ -5,6 +5,9 @@ import lombok.Data;
|
|||
import org.springframework.data.annotation.Id;
|
||||
import org.springframework.data.relational.core.mapping.Table;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
/**
|
||||
* @author wanglf3
|
||||
|
@ -13,7 +16,11 @@ import org.springframework.data.relational.core.mapping.Table;
|
|||
**/
|
||||
@Data
|
||||
@Table("c_trip_order_car_settlement_base_info")
|
||||
public class CtripCarOrderDetail {
|
||||
public class CtripCarOrderDetail implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 4583214623558870145L;
|
||||
|
||||
@Id
|
||||
private Long id;
|
||||
private Long recordId;
|
||||
|
|
|
@ -8,6 +8,8 @@ import lombok.Data;
|
|||
import org.springframework.data.annotation.Id;
|
||||
import org.springframework.data.relational.core.mapping.Table;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
|
@ -17,7 +19,10 @@ import java.util.ArrayList;
|
|||
**/
|
||||
@Data
|
||||
@Table("c_trip_order_flight_settlement_base_info")
|
||||
public class CtripFlightOrderDetail {
|
||||
public class CtripFlightOrderDetail implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = -2563945926793686074L;
|
||||
@Id
|
||||
private Long id;
|
||||
|
||||
|
|
|
@ -6,6 +6,8 @@ import lombok.Data;
|
|||
import org.springframework.data.annotation.Id;
|
||||
import org.springframework.data.relational.core.mapping.Table;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Date;
|
||||
|
@ -17,7 +19,9 @@ import java.util.Date;
|
|||
**/
|
||||
@Data
|
||||
@Table("c_trip_order_hotel_settlement_base_info")
|
||||
public class CtripHotelOrderDetail {
|
||||
public class CtripHotelOrderDetail implements Serializable {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 3087333171110684513L;
|
||||
@Id
|
||||
private Long id;
|
||||
private Long recordId;
|
||||
|
|
|
@ -6,6 +6,9 @@ import lombok.Data;
|
|||
import org.springframework.data.annotation.Id;
|
||||
import org.springframework.data.relational.core.mapping.Table;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
/**
|
||||
* @author wanglf3
|
||||
|
@ -14,7 +17,9 @@ import org.springframework.data.relational.core.mapping.Table;
|
|||
**/
|
||||
@Data
|
||||
@Table("c_trip_order_train_settlement_base_info")
|
||||
public class CtripTrainOrderDetail {
|
||||
public class CtripTrainOrderDetail implements Serializable {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1642492804808714974L;
|
||||
@Id
|
||||
private Long id;
|
||||
private Long recordId;
|
||||
|
|
|
@ -5,9 +5,14 @@ import org.springframework.data.annotation.Id;
|
|||
import org.springframework.data.annotation.Transient;
|
||||
import org.springframework.data.relational.core.mapping.Table;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@Table("difference_standards")
|
||||
public class DifferenceStandards {
|
||||
public class DifferenceStandards implements Serializable {
|
||||
@Serial
|
||||
private static final long serialVersionUID = -4408959151918432220L;
|
||||
@Id
|
||||
private int id;
|
||||
// private String standardLevel;
|
||||
|
|
|
@ -5,6 +5,7 @@ import org.springframework.data.annotation.Id;
|
|||
import org.springframework.data.relational.core.mapping.MappedCollection;
|
||||
import org.springframework.data.relational.core.mapping.Table;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
@ -12,6 +13,8 @@ import java.util.List;
|
|||
@Table("ranks")
|
||||
@Data
|
||||
public class Ranks implements Serializable {
|
||||
@Serial
|
||||
private static final long serialVersionUID = -4352969401747878470L;
|
||||
@Id
|
||||
private Integer rankId;
|
||||
private String rankName;
|
||||
|
|
|
@ -10,6 +10,7 @@ import org.springframework.boot.context.properties.bind.DefaultValue;
|
|||
import org.springframework.data.annotation.Id;
|
||||
import org.springframework.data.relational.core.mapping.Table;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
|
@ -20,7 +21,9 @@ import java.io.Serializable;
|
|||
*/
|
||||
@Data
|
||||
@Table("staff_rank")
|
||||
public class StaffRank {
|
||||
public class StaffRank implements Serializable{
|
||||
@Serial
|
||||
private static final long serialVersionUID = -1180982339480309913L;
|
||||
@Id
|
||||
@ExcelIgnore
|
||||
private Integer id;
|
||||
|
|
|
@ -5,6 +5,9 @@ import lombok.experimental.Accessors;
|
|||
import org.springframework.data.annotation.Id;
|
||||
import org.springframework.data.relational.core.mapping.Table;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* (TravelStandards)表实体类
|
||||
*
|
||||
|
@ -14,7 +17,9 @@ import org.springframework.data.relational.core.mapping.Table;
|
|||
@Data
|
||||
@Accessors(chain = true)
|
||||
@Table("travel_standards")
|
||||
public class TravelStandards {
|
||||
public class TravelStandards implements Serializable {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 6235086806530793738L;
|
||||
@Id
|
||||
private Integer id;
|
||||
//商品类型
|
||||
|
|
|
@ -5,9 +5,14 @@ import lombok.Data;
|
|||
import org.springframework.data.annotation.Id;
|
||||
import org.springframework.data.relational.core.mapping.Table;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@Table("company_black_list")
|
||||
public class CompanyBlackList {
|
||||
public class CompanyBlackList implements Serializable {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 6177700149940338000L;
|
||||
@Id
|
||||
private Long id;
|
||||
private String companyName;
|
||||
|
|
|
@ -4,9 +4,15 @@ import lombok.Data;
|
|||
import org.springframework.data.annotation.Id;
|
||||
import org.springframework.data.relational.core.mapping.Table;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@Table("company_info")
|
||||
public class CompanyInfo {
|
||||
public class CompanyInfo implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 7383041462829949036L;
|
||||
@Id
|
||||
private Long id;
|
||||
private Long systemId;
|
||||
|
|
|
@ -4,9 +4,14 @@ import lombok.Data;
|
|||
import org.springframework.data.annotation.Id;
|
||||
import org.springframework.data.relational.core.mapping.Table;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@Table("jt_company")
|
||||
public class JTCompany {
|
||||
public class JTCompany implements Serializable {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 8129705687554745382L;
|
||||
@Id
|
||||
private Long id;
|
||||
private String companyName;
|
||||
|
|
|
@ -5,11 +5,15 @@ import org.springframework.data.annotation.Id;
|
|||
import org.springframework.data.relational.core.mapping.MappedCollection;
|
||||
import org.springframework.data.relational.core.mapping.Table;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@Table("system_code")
|
||||
public class SystemCode {
|
||||
public class SystemCode implements Serializable {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 5003390047348155214L;
|
||||
@Id
|
||||
private Long id;
|
||||
private String systemName;
|
||||
|
|
|
@ -13,6 +13,8 @@ import org.springframework.data.annotation.Id;
|
|||
import org.springframework.data.annotation.Transient;
|
||||
import org.springframework.data.relational.core.mapping.Table;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
@ -25,7 +27,9 @@ import static com.chint.infrastructure.constant.FSSCConstant.*;
|
|||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Table("user")
|
||||
public class User {
|
||||
public class User implements Serializable {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 5602115854952241146L;
|
||||
@Id
|
||||
private Long userId;
|
||||
private String employeeNo;
|
||||
|
|
Loading…
Reference in New Issue