Bladeren bron

项目导入字段修改

user5 2 jaren geleden
bovenliggende
commit
468d442249

+ 4 - 4
jeeplus-module/jeeplus-test/src/main/java/com/jeeplus/test/projectRecords/service/dto/ProjectDTO.java

@@ -46,7 +46,7 @@ public class ProjectDTO extends BaseDTO {
     /**
      * 评估基准日ui
      */
-    @Excel(name = "评估基准日")
+    @Excel(name = "评估基准日",format = "yyyy/MM/dd")
     private String evaluationBaseDateUi;
 
     /**
@@ -58,7 +58,7 @@ public class ProjectDTO extends BaseDTO {
     /**
      * 评估报告日ui
      */
-    @Excel(name = "评估报告日")
+    @Excel(name = "评估报告日",format = "yyyy/MM/dd")
     private String evaluationReportDateUi;
 
     /**
@@ -136,7 +136,7 @@ public class ProjectDTO extends BaseDTO {
     /**
      * 开票日期ui
      */
-    @Excel(name = "开票日期")
+    @Excel(name = "开票日期",format = "yyyy/MM/dd")
     private String invoiceDateUi;
 
     /**
@@ -202,7 +202,7 @@ public class ProjectDTO extends BaseDTO {
     /**
      * 报销日期ui
      */
-    @Excel(name = "报销日期")
+    @Excel(name = "报销日期",format = "yyyy/MM/dd")
     private String reimbursementDateUi;
 
     /**

+ 19 - 0
jeeplus-platform/jeeplus-admin/src/main/java/com/jeeplus/sys/utils/StringUtils.java

@@ -757,4 +757,23 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils {
 		String dateString = formatter.format(currentTime);
 		return dateString;
 	}
+
+
+	//@ author: walker
+
+	/**
+	 * ⽤正则表达式判断字符串是否为数字(含负数)
+	 * @param str
+	 * @return
+	 */
+	public static boolean isNumeric(String str) {
+		String regEx = "^-?[0-9]+$";
+		Pattern pat = Pattern.compile(regEx);
+		Matcher mat = pat.matcher(str);
+		if (mat.find()) {
+			return true;
+		}else {
+			return false;
+		}
+	}
 }