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

View File

@ -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;
/** /**

View File

@ -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;
/** /**

View File

@ -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;
// 创建时间 // 创建时间

View File

@ -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;
/** /**

View File

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

View File

@ -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;
/** /**

View File

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

View File

@ -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;
/** /**

View File

@ -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;
/** /**

View File

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

View File

@ -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;
/** /**

View File

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

View File

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