| | |
| | | public class ActionUtil{ |
| | | |
| | | public static String time_yyyyMMddHHmmss = "yyyy-MM-dd HH:mm:ss"; |
| | | public static String time_yyyyMMdd = "yyyy-MM-dd"; |
| | | public static SimpleDateFormat sdfwithOutday=new SimpleDateFormat("yyyy_MM"); |
| | | |
| | | /* |
| | |
| | | if(threadBefore !=null && threadBefore.isAlive()){ |
| | | threadBefore.interrupt(); |
| | | } |
| | | BattSparePar battSparePar = ActionUtil.getGson().fromJson(message, BattSparePar.class); |
| | | BattSparePar battSparePar = ActionUtil.getGson("yyyy-MM-dd").fromJson(message, BattSparePar.class); |
| | | thread = new Thread("Thread_battSpare") { |
| | | public void run() { |
| | | while (!thread.isInterrupted()) { |