diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/basic/domain/BmAgreementInfo.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/basic/domain/BmAgreementInfo.java
index f5d0db85..361000ca 100644
--- a/bonus-modules/bonus-material/src/main/java/com/bonus/material/basic/domain/BmAgreementInfo.java
+++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/basic/domain/BmAgreementInfo.java
@@ -8,6 +8,8 @@ import lombok.Data;
import lombok.ToString;
import com.bonus.common.core.web.domain.BaseEntity;
+import javax.validation.constraints.NotNull;
+
/**
* 协议管理对象 bm_agreement_info
*
@@ -39,6 +41,7 @@ public class BmAgreementInfo extends BaseEntity
/** 往来单位id */
@Excel(name = "往来单位id")
@ApiModelProperty(value = "往来单位id")
+ @NotNull(message = "往来单位id不能为空")
private Long unitId;
/**
@@ -51,6 +54,7 @@ public class BmAgreementInfo extends BaseEntity
/** 工程标段ID */
@Excel(name = "工程标段ID")
@ApiModelProperty(value = "工程标段ID")
+ @NotNull(message = "工程标段ID不能为空")
private Long projectId;
/** 工程标段名称 */
diff --git a/bonus-modules/bonus-material/src/main/resources/mapper/material/basic/BmAgreementInfoMapper.xml b/bonus-modules/bonus-material/src/main/resources/mapper/material/basic/BmAgreementInfoMapper.xml
index ecf6b6e7..7bc28c8e 100644
--- a/bonus-modules/bonus-material/src/main/resources/mapper/material/basic/BmAgreementInfoMapper.xml
+++ b/bonus-modules/bonus-material/src/main/resources/mapper/material/basic/BmAgreementInfoMapper.xml
@@ -105,7 +105,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{companyId},
#{fileName},
#{fileUrl},
- #{status},
+ '1',
#{protocol},
#{isSlt},