diff --git a/src/main/java/club/joylink/rtss/simulation/cbtc/CTC/rail/cmd/vo/DisCmdSrcVo.java b/src/main/java/club/joylink/rtss/simulation/cbtc/CTC/rail/cmd/vo/DisCmdSrcVo.java index a7b45c6aa..60006c61f 100644 --- a/src/main/java/club/joylink/rtss/simulation/cbtc/CTC/rail/cmd/vo/DisCmdSrcVo.java +++ b/src/main/java/club/joylink/rtss/simulation/cbtc/CTC/rail/cmd/vo/DisCmdSrcVo.java @@ -1,11 +1,7 @@ package club.joylink.rtss.simulation.cbtc.CTC.rail.cmd.vo; import club.joylink.rtss.simulation.cbtc.CTC.rail.cmd.DisCmd; -import club.joylink.rtss.simulation.cbtc.CTC.rail.cmd.DisCmdRcvCompany; -import club.joylink.rtss.simulation.cbtc.CTC.rail.cmd.DisCmdSendCompany; -import club.joylink.rtss.util.JsonUtils; import lombok.Data; - import java.util.ArrayList; import java.util.List; @@ -72,28 +68,5 @@ public class DisCmdSrcVo { * 受令单位列表 */ private List rcvCompanies = new ArrayList<>(); - public static void main(String []args){ - DisCmdSrcVo v = new DisCmdSrcVo(); - v.setCode("2"); - v.setContent("我是调度命令测试11"); - v.setTitle("测试11"); - v.setType(DisCmd.Type.Normal.name()); - v.setSender("wo"); - // - DisCmdSendCompanyVo s = new DisCmdSendCompanyVo(); - s.setDisCmdCode(v.getCode()); - s.setName("标准站调度台"); - s.setType(DisCmdSendCompany.Type.Dispatcher.name()); - s.setCode("dis123"); - // - v.setSendCompany(s); - DisCmdRcvCompanyVo r = new DisCmdRcvCompanyVo(); - r.setType(DisCmdRcvCompany.Type.Station.name()); - r.setStationCode("station123"); - r.setName("标准丙站"); - v.getRcvCompanies().add(r); - // - String js =JsonUtils.writeValueAsString(v); - System.out.println(js); - } + }