File was renamed from src/main/java/com/whyc/dto/A200stopReason.java |
| | |
| | | package com.whyc.dto; |
| | | |
| | | public class A200stopReason { |
| | | public class A200StopReason { |
| | | |
| | | /* //a200停止原因 |
| | | public static String getStopReason(int stopType){ |
File was renamed from src/main/java/com/whyc/dto/ActmstopReason.java |
| | |
| | | package com.whyc.dto; |
| | | |
| | | public class ActmstopReason { |
| | | public class ActmStopReason { |
| | | /*//actm停止原因 |
| | | public static String getStopReason(int stopType){ |
| | | String stopReason="未知"; |
File was renamed from src/main/java/com/whyc/dto/RtstateDto.java |
| | |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class RtstateDto { |
| | | public class RtStateDto { |
| | | private int devId; |
| | | private int devType; |
| | | } |
| | |
| | | package com.whyc.service; |
| | | |
| | | import com.whyc.dto.ActmstopReason; |
| | | import com.whyc.dto.ActmStopReason; |
| | | import com.whyc.pojo.db_batt_testdata.BatttestdataId; |
| | | import com.whyc.pojo.db_batt_testdata.BatttestdataInf; |
| | | import com.whyc.util.ActionUtil; |
| | |
| | | |
| | | String[] titiles3=new String[]{"电池包序号:","模组编号:","工作模式:","电池类型:","电池串数:","电压阀值(v):" |
| | | ,"工作电流(A):","开始测试时间:","结束测试时间:","停止原因:"}; |
| | | String[] titiles4=new String[]{String.valueOf(tinf.getBattIdx()+1),tinf.getBatteryName(),ActmstopReason.getTestType(tinf.getTestType()),ActmstopReason.getBattType(tinf.getBattType()),String.valueOf(tinf.getBatteryNumber()),String.format("%.1f",tinf.getVolThreshold()) |
| | | String[] titiles4=new String[]{String.valueOf(tinf.getBattIdx()+1),tinf.getBatteryName(), ActmStopReason.getTestType(tinf.getTestType()), ActmStopReason.getBattType(tinf.getBattType()),String.valueOf(tinf.getBatteryNumber()),String.format("%.1f",tinf.getVolThreshold()) |
| | | ,String.format("%.1f",tinf.getTestCurr()), ActionUtil.sdf.format(tinf.getTestStarttime()),ActionUtil.sdf.format(tinf.getRecordTime()), tinf.getStopTypeReason()}; |
| | | |
| | | int rowNum=5; |
| | |
| | | |
| | | import com.whyc.config.WebSocketConfig; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.dto.RtstateDto; |
| | | import com.whyc.dto.RtStateDto; |
| | | import com.whyc.service.A200RealstateService; |
| | | import com.whyc.service.ActmRealstateService; |
| | | import com.whyc.service.BattRtdataService; |
| | |
| | | } |
| | | @OnMessage |
| | | public void onMessage(Session session, String message) { |
| | | RtstateDto dto= ActionUtil.getGson().fromJson(message,RtstateDto.class); |
| | | RtStateDto dto= ActionUtil.getGson().fromJson(message, RtStateDto.class); |
| | | thread = new Thread("Thread_RtstateSocket") { |
| | | @Override |
| | | public void run() { |