| | |
| | | public class WcsTaskDistributionParam { |
| | | |
| | | public static final List<Integer> STA_ALL = new ArrayList<Integer>() {{ |
| | | add(101);add(102);add(104);add(105);add(107);add(108);add(110); |
| | | add(111);add(113);add(114);add(115); |
| | | add(101);add(102);add(103);add(104);add(105);add(106);add(107);add(108);add(109);add(110); |
| | | add(111);add(112);add(113);add(114);add(115); |
| | | |
| | | add(116);add(117);add(118);add(119);add(120); |
| | | add(121);add(122);add(123);add(124);add(125);add(126);add(127);add(128);add(129);add(130); |
| | | add(131);add(132);add(133); |
| | | }}; |
| | | |
| | | private Integer taskNo;//工作号 |
| | | private Long taskNo;//工作号 |
| | | private String startSta;//起点 |
| | | private String endSta;//终点 |
| | | |
| | | public Integer getStartSta$(){ |
| | | if (this.startSta != null){ |
| | | try{ |
| | | return Integer.parseInt(this.startSta); |
| | | if (STA_ALL.contains(Integer.parseInt(this.startSta))) { |
| | | return Integer.parseInt(this.startSta); |
| | | } else { |
| | | return 0; |
| | | } |
| | | } catch (Exception e){ |
| | | return 0; |
| | | } |
| | |
| | | public Integer getEndSta$(){ |
| | | if (this.endSta != null){ |
| | | try{ |
| | | return Integer.parseInt(this.endSta); |
| | | if (STA_ALL.contains(Integer.parseInt(this.endSta))) { |
| | | return Integer.parseInt(this.endSta); |
| | | } else { |
| | | return 0; |
| | | } |
| | | } catch (Exception e){ |
| | | return 0; |
| | | } |