From 156b6f07a91871c42aa504dade043b187b6dadb6 Mon Sep 17 00:00:00 2001
From: sxu <602087911@qq.com>
Date: Tue, 12 Nov 2024 14:18:42 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A2=86=E6=96=99=E6=8E=A5=E5=8F=A3=E4=BC=98?=
=?UTF-8?q?=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../java/com/bonus/material/basic/domain/BmAgreementInfo.java | 4 ++++
.../resources/mapper/material/basic/BmAgreementInfoMapper.xml | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
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},