Merge branch 'main' of https://dd3skj.picp.vip/zhaoxinyu/v4
# Conflicts: # src/main/resources/static/assets/platform/js/util/commonUtil.js # src/main/resources/views/layouts/platform.html
This commit is contained in:
@@ -84,6 +84,7 @@ RoleConstant {
|
||||
LOVE_ASSIST_WORK_GROUP_LEADER("爱心扶助小组组长"),
|
||||
LOVE_ASSIST_WORK_GROUP_MEMBER("爱心扶助小组审批员"),
|
||||
|
||||
PSYCHOLOGY_DOCTOR("心理咨询师"),
|
||||
;
|
||||
/**
|
||||
* 避免和枚举类的name冲突
|
||||
|
||||
@@ -136,4 +136,12 @@ public class DateUtil {
|
||||
return day + "天" + hour + "小时" + min + "分钟";
|
||||
}
|
||||
|
||||
public static long formatDate(String data) {
|
||||
try {
|
||||
return new SimpleDateFormat("yyyy-MM-dd HH:mm").parse(data).getTime();
|
||||
} catch (ParseException e) {
|
||||
e.printStackTrace();
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user