mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-13 21:32:07 +08:00
代码规范修正
This commit is contained in:
+6
-1
@@ -7,6 +7,8 @@ import lombok.Data;
|
|||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
import javax.validation.constraints.NotNull;
|
import javax.validation.constraints.NotNull;
|
||||||
|
import java.io.Serial;
|
||||||
|
import java.io.Serializable;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@@ -19,7 +21,10 @@ import java.util.List;
|
|||||||
@Builder
|
@Builder
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
public class ReportDatasetSaveReqVO {
|
public class ReportDatasetSaveReqVO implements Serializable {
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = -2253718976788111670L;
|
||||||
|
|
||||||
@Schema(description = "数据集id", example = "1")
|
@Schema(description = "数据集id", example = "1")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -58,6 +58,6 @@ public class SqlInjectionUtil {
|
|||||||
*/
|
*/
|
||||||
public static String removeEscapeCharacter(String text) {
|
public static String removeEscapeCharacter(String text) {
|
||||||
Objects.nonNull(text);
|
Objects.nonNull(text);
|
||||||
return text.replaceAll("\"", "").replaceAll("'", "");
|
return text.replace("\"", "").replace("'", "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user