status去掉默认值

pull/451/head
starrysky 2019-08-13 09:08:55 +08:00
parent 9061be818b
commit 403e47ea5f
14 changed files with 14 additions and 15 deletions

View File

@ -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){

View File

@ -35,7 +35,7 @@ public class IncomeCategory implements Serializable {
@NotBlank
private String name;
@NotNull
// @NotNull
private Boolean status;
/**

View File

@ -35,7 +35,7 @@ public class MaterialCategory implements Serializable {
@NotBlank
private String name;
@NotNull
// @NotNull
private Boolean status;
/**

View File

@ -70,7 +70,7 @@ public class MaterialInfo implements Serializable {
@Column(name = "material_initial_setup_total_number")
private String materialInitialSetupTotalNumber;
@NotNull
// @NotNull
private Boolean status;
// 创建时间

View File

@ -34,7 +34,7 @@ public class MeasureUnit implements Serializable {
@NotBlank
private String name;
@NotNull
// @NotNull
private Boolean status;
/**

View File

@ -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){

View File

@ -35,7 +35,7 @@ public class ProductCategory implements Serializable {
@NotBlank
private String name;
@NotNull
// @NotNull
private Boolean status;
/**

View File

@ -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){

View File

@ -35,7 +35,7 @@ public class SpendCategory implements Serializable {
@NotBlank
private String name;
@NotNull
// @NotNull
private Boolean status;
/**

View File

@ -35,7 +35,7 @@ public class SupplierCategory implements Serializable {
@NotBlank
private String name;
@NotNull
// @NotNull
private Boolean status;
/**

View File

@ -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;
// 供应商类别主键

View File

@ -43,9 +43,7 @@ public class WareHouse implements Serializable {
@NotBlank
private String wareHouseCode;
@NotNull
// @NotNull
private Boolean status;
/**

View File

@ -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));
}

View File

@ -1,5 +1,5 @@
server:
port: 8000
port: 8888
spring:
profiles: