保存进度!
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"java.configuration.updateBuildConfiguration": "interactive",
|
"java.configuration.updateBuildConfiguration": "automatic",
|
||||||
"java.compile.nullAnalysis.mode": "automatic"
|
"java.compile.nullAnalysis.mode": "automatic"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,8 +19,8 @@
|
|||||||
<maven.compiler.source>18</maven.compiler.source>
|
<maven.compiler.source>18</maven.compiler.source>
|
||||||
<maven.compiler.target>18</maven.compiler.target>
|
<maven.compiler.target>18</maven.compiler.target>
|
||||||
<spring.version>6.2.11</spring.version>
|
<spring.version>6.2.11</spring.version>
|
||||||
<log4j.version>2.24.3</log4j.version>
|
<log4j.version>2.25.3</log4j.version>
|
||||||
<jackson.version>2.18.3</jackson.version>
|
<jackson.version>2.20.1</jackson.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
@@ -76,6 +76,7 @@
|
|||||||
<artifactId>log4j-api</artifactId>
|
<artifactId>log4j-api</artifactId>
|
||||||
<version>${log4j.version}</version>
|
<version>${log4j.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- jackson -->
|
<!-- jackson -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.fasterxml.jackson.core</groupId>
|
<groupId>com.fasterxml.jackson.core</groupId>
|
||||||
@@ -90,7 +91,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.fasterxml.jackson.core</groupId>
|
<groupId>com.fasterxml.jackson.core</groupId>
|
||||||
<artifactId>jackson-annotations</artifactId>
|
<artifactId>jackson-annotations</artifactId>
|
||||||
<version>${jackson.version}</version>
|
<version>2.20</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
@@ -107,7 +108,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>commons-io</groupId>
|
<groupId>commons-io</groupId>
|
||||||
<artifactId>commons-io</artifactId>
|
<artifactId>commons-io</artifactId>
|
||||||
<version>2.18.0</version>
|
<version>2.21.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
/**
|
||||||
|
* @Author: Kane Wang <wangkane@qq.com>
|
||||||
|
* @Date: 2025-12-26 17:16:22
|
||||||
|
* @LastEditors: Kane Wang
|
||||||
|
* @LastModified: 2025-12-26 17:16:22
|
||||||
|
* @FilePath: src/main/java/com/cpic/xim/web/controllers/regulatory/AddNewRegulatoryController.java
|
||||||
|
* @Description: 新增制度的控制器
|
||||||
|
*
|
||||||
|
* Copyright (c) 2025 by Kane All rights reserved
|
||||||
|
*/
|
||||||
|
package com.cpic.xim.web.controllers.regulatory;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("/regulatory")
|
||||||
|
public class AddNewRegulatoryController
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,110 @@
|
|||||||
|
/**
|
||||||
|
* @Author: Kane Wang <wangkane@qq.com>
|
||||||
|
* @Date: 2025-12-26 17:25:13
|
||||||
|
* @LastEditors: Kane Wang
|
||||||
|
* @LastModified: 2025-12-26 17:39:30
|
||||||
|
* @FilePath: src/main/java/com/cpic/xim/web/controllers/regulatory/AddNewRegulatoryRequest.java
|
||||||
|
* @Description:
|
||||||
|
*
|
||||||
|
* Copyright (c) 2025 by Kane All rights reserved
|
||||||
|
*/
|
||||||
|
package com.cpic.xim.web.controllers.regulatory;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.cpic.xim.utils.files.UploadedFile;
|
||||||
|
import java.util.Vector;
|
||||||
|
|
||||||
|
public class AddNewRegulatoryRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public AddNewRegulatoryRequest()
|
||||||
|
{
|
||||||
|
this.regulatoryName = "";
|
||||||
|
this.departmentName = "";
|
||||||
|
this.releaseYear = "";
|
||||||
|
this.comment = "";
|
||||||
|
this.regulatoryFiles = new Vector<UploadedFile>();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public AddNewRegulatoryRequest(
|
||||||
|
String regulatoryName,
|
||||||
|
String departmentName,
|
||||||
|
String releaseYear,
|
||||||
|
String comment,
|
||||||
|
Vector<UploadedFile> regulatoryFiles
|
||||||
|
)
|
||||||
|
{
|
||||||
|
this.regulatoryName = regulatoryName;
|
||||||
|
this.departmentName = departmentName;
|
||||||
|
this.releaseYear = releaseYear;
|
||||||
|
this.comment = comment;
|
||||||
|
this.regulatoryFiles = regulatoryFiles;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRegulatoryName()
|
||||||
|
{
|
||||||
|
return regulatoryName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRegulatoryName( String regulatoryName )
|
||||||
|
{
|
||||||
|
this.regulatoryName = regulatoryName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDepartmentName()
|
||||||
|
{
|
||||||
|
return departmentName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDepartmentName( String departmentName )
|
||||||
|
{
|
||||||
|
this.departmentName = departmentName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getReleaseYear()
|
||||||
|
{
|
||||||
|
return releaseYear;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setReleaseYear( String releaseYear )
|
||||||
|
{
|
||||||
|
this.releaseYear = releaseYear;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getComment()
|
||||||
|
{
|
||||||
|
return comment;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setComment( String comment )
|
||||||
|
{
|
||||||
|
this.comment = comment;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Vector<UploadedFile> getRegulatoryFiles()
|
||||||
|
{
|
||||||
|
return regulatoryFiles;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRegulatoryFiles( Vector<UploadedFile> regulatoryFiles )
|
||||||
|
{
|
||||||
|
this.regulatoryFiles = regulatoryFiles;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonProperty("regulatory_name")
|
||||||
|
private String regulatoryName;
|
||||||
|
|
||||||
|
@JsonProperty("department_name")
|
||||||
|
private String departmentName;
|
||||||
|
|
||||||
|
@JsonProperty("release_year")
|
||||||
|
private String releaseYear;
|
||||||
|
|
||||||
|
@JsonProperty("comment")
|
||||||
|
private String comment;
|
||||||
|
|
||||||
|
@JsonProperty("regulatory_files")
|
||||||
|
private Vector<UploadedFile> regulatoryFiles;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user