From 2871cb99e018f6bf9e2ef76a424a1429a7c818f0 Mon Sep 17 00:00:00 2001
From: xiejun <xj@2023>
Date: 星期四, 13 七月 2023 11:40:07 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/entity/CodeRule.java |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/entity/CodeRule.java b/Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/entity/CodeRule.java
index e7fae53..02c3ee5 100644
--- a/Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/entity/CodeRule.java
+++ b/Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/entity/CodeRule.java
@@ -16,11 +16,15 @@
  */
 package com.vci.ubcs.code.entity;
 
+import com.baomidou.mybatisplus.annotation.TableField;
 import com.baomidou.mybatisplus.annotation.TableName;
+import com.vci.ubcs.starter.constant.CodeTableNameConstant;
 import com.vci.ubcs.starter.revision.model.BaseModel;
 import io.swagger.annotations.ApiModel;
 import lombok.Data;
 import lombok.EqualsAndHashCode;
+
+import javax.validation.constraints.NotBlank;
 
 /**
  * 缂栫爜瑙勫垯 瀹炰綋绫�
@@ -29,7 +33,7 @@
  * @since 2023-04-03
  */
 @Data
-@TableName("PL_CODE_RULE")
+@TableName(CodeTableNameConstant.PL_CODE_RULE)
 @ApiModel(value = "CodeRule瀵硅薄", description = "缂栫爜瑙勫垯")
 @EqualsAndHashCode(callSuper = true)
 public class CodeRule extends BaseModel {
@@ -42,11 +46,13 @@
 	/**
 	 * 瑙勫垯缂栧彿
 	 */
+	@NotBlank(message = "瑙勫垯缂栧彿涓嶈兘涓虹┖")
 	private String id;
 
 	/**
 	 * 瑙勫垯鐨勫悕绉�
 	 */
+	@NotBlank(message = "瑙勫垯鐨勫悕绉颁笉鑳戒负绌�")
 	private String name;
 
 	/**
@@ -54,4 +60,10 @@
 	 */
 	private String description;
 
+	/**
+	 * 渚濇嵁
+	 */
+	@NotBlank(message = "瑙勫垯渚濇嵁涓嶈兘涓虹┖")
+	private String accordingTo;
+
 }

--
Gitblit v1.9.3