mirror of https://github.com/elunez/eladmin
status去掉默认值
parent
9061be818b
commit
403e47ea5f
|
@ -58,7 +58,7 @@ public class CustomerInfo implements Serializable {
|
|||
@Column(name = "customer_contact")
|
||||
private String customerContact;
|
||||
|
||||
@NotNull
|
||||
// @NotNull
|
||||
private Boolean status;
|
||||
|
||||
public void copy(CustomerInfo source){
|
||||
|
|
|
@ -35,7 +35,7 @@ public class IncomeCategory implements Serializable {
|
|||
@NotBlank
|
||||
private String name;
|
||||
|
||||
@NotNull
|
||||
// @NotNull
|
||||
private Boolean status;
|
||||
|
||||
/**
|
||||
|
|
|
@ -35,7 +35,7 @@ public class MaterialCategory implements Serializable {
|
|||
@NotBlank
|
||||
private String name;
|
||||
|
||||
@NotNull
|
||||
// @NotNull
|
||||
private Boolean status;
|
||||
|
||||
/**
|
||||
|
|
|
@ -70,7 +70,7 @@ public class MaterialInfo implements Serializable {
|
|||
@Column(name = "material_initial_setup_total_number")
|
||||
private String materialInitialSetupTotalNumber;
|
||||
|
||||
@NotNull
|
||||
// @NotNull
|
||||
private Boolean status;
|
||||
|
||||
// 创建时间
|
||||
|
|
|
@ -34,7 +34,7 @@ public class MeasureUnit implements Serializable {
|
|||
@NotBlank
|
||||
private String name;
|
||||
|
||||
@NotNull
|
||||
// @NotNull
|
||||
private Boolean status;
|
||||
|
||||
/**
|
||||
|
|
|
@ -57,7 +57,7 @@ public class OutSourceCompanyInfo implements Serializable {
|
|||
@Column(name = "out_source_company_contact")
|
||||
private String outSourceCompanyContact;
|
||||
|
||||
@Column(name = "status")
|
||||
// @Column(name = "status")
|
||||
private Boolean status;
|
||||
|
||||
public void copy(OutSourceCompanyInfo source){
|
||||
|
|
|
@ -35,7 +35,7 @@ public class ProductCategory implements Serializable {
|
|||
@NotBlank
|
||||
private String name;
|
||||
|
||||
@NotNull
|
||||
// @NotNull
|
||||
private Boolean status;
|
||||
|
||||
/**
|
||||
|
|
|
@ -74,7 +74,7 @@ public class ProductInfo implements Serializable {
|
|||
@Column(name = "update_time")
|
||||
private Timestamp updateTime;
|
||||
|
||||
@NotNull
|
||||
// @NotNull
|
||||
private Boolean status;
|
||||
|
||||
public void copy(ProductInfo source){
|
||||
|
|
|
@ -35,7 +35,7 @@ public class SpendCategory implements Serializable {
|
|||
@NotBlank
|
||||
private String name;
|
||||
|
||||
@NotNull
|
||||
// @NotNull
|
||||
private Boolean status;
|
||||
|
||||
/**
|
||||
|
|
|
@ -35,7 +35,7 @@ public class SupplierCategory implements Serializable {
|
|||
@NotBlank
|
||||
private String name;
|
||||
|
||||
@NotNull
|
||||
// @NotNull
|
||||
private Boolean status;
|
||||
|
||||
/**
|
||||
|
|
|
@ -57,7 +57,7 @@ public class SupplierInfo implements Serializable {
|
|||
@Column(name = "supplier_contact")
|
||||
private String supplierContact;
|
||||
|
||||
@Column(name = "status")
|
||||
// @Column(name = "status")
|
||||
private Boolean status;
|
||||
|
||||
// 供应商类别主键
|
||||
|
|
|
@ -43,9 +43,7 @@ public class WareHouse implements Serializable {
|
|||
@NotBlank
|
||||
private String wareHouseCode;
|
||||
|
||||
|
||||
|
||||
@NotNull
|
||||
// @NotNull
|
||||
private Boolean status;
|
||||
|
||||
/**
|
||||
|
|
|
@ -34,6 +34,7 @@ public class MeasureUnitServiceImpl implements MeasureUnitService {
|
|||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public MeasureUnitDTO create(MeasureUnit resources) {
|
||||
resources.getName();
|
||||
resources.setStatus(true);
|
||||
return measureUnitMapper.toDto(measureUnitRepository.save(resources));
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
server:
|
||||
port: 8000
|
||||
port: 8888
|
||||
|
||||
spring:
|
||||
profiles:
|
||||
|
|
Loading…
Reference in New Issue