提交 4260aa4f 作者: 丁双波

核心包项目提交

上级 60e5c818
...@@ -21,7 +21,7 @@ public class BaseTools { ...@@ -21,7 +21,7 @@ public class BaseTools {
} }
/** /**
* *
* @param type 类型 1 yyyy-MM-dd HH:mm:ss 2 yyyy-MM-dd * @param type 类型 1 yyyy-MM-dd HH:mm:ss 2 yyyy-MM-dd 3yyyyMMdd
* @return 当前时间格式化后的字符串 * @return 当前时间格式化后的字符串
*/ */
public static String getNowTime(int type){ public static String getNowTime(int type){
...@@ -34,6 +34,9 @@ public class BaseTools { ...@@ -34,6 +34,9 @@ public class BaseTools {
case 2: case 2:
simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd"); simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
break; break;
case 3:
simpleDateFormat = new SimpleDateFormat("yyyyMMdd");
break;
default: default:
break; break;
} }
......
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4" />
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论