|
@@ -5,6 +5,8 @@ import java.text.SimpleDateFormat;
|
|
|
import java.util.Date;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.Map;
|
|
|
+import java.util.Random;
|
|
|
+
|
|
|
import javax.xml.parsers.ParserConfigurationException;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
@@ -91,14 +93,9 @@ public class DataService {
|
|
|
|
|
|
public static void main(String[] args) throws IOException, ParserConfigurationException {
|
|
|
|
|
|
- SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
|
|
|
- Date date = new Date();
|
|
|
- long dInteger = date.getTime() - 86400000;
|
|
|
- String daString = sdf.format(new Date(dInteger));
|
|
|
- System.out.println(daString.replace("0", "o"));
|
|
|
- Date ddDate =new Date();
|
|
|
- System.out.println(ddDate.toString());
|
|
|
-
|
|
|
+ Random r = new Random();
|
|
|
+ Integer ran1 = r.nextInt(10000);
|
|
|
+ System.out.print(ran1);
|
|
|
}
|
|
|
|
|
|
}
|