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