理财潜在客户分析
This commit is contained in:
+17
-1
@@ -56,7 +56,23 @@ public class DateUtilCustom {
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取近几天的时间范围
|
||||
* @return
|
||||
*/
|
||||
public static Map<String, String> getLatelyDate(int days) {
|
||||
Map<String, String> map = new HashMap<String, String>();
|
||||
DateTime dt = new DateTime();
|
||||
// 昨天
|
||||
DateTime yesterday = dt.minusDays(days);
|
||||
String start = yesterday.toString("yyyy-MM-dd") + " 00:00:00";
|
||||
String end = dt.toString("yyyy-MM-dd") + " 00:00:00";
|
||||
map.put("start", start);
|
||||
map.put("end", end);
|
||||
return map;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
getTopMonth();
|
||||
System.err.println(JsonUtils.toJson(getLatelyDate(3)));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user