File tree Expand file tree Collapse file tree
conditiondialog/src/main/java/com/tick/conditiondialog Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,4 +51,42 @@ public VehicleCondition cloneCondition() {
5151 condition .setVehicleTypes (vehicleTypes );
5252 return condition ;
5353 }
54+
55+ /**
56+ * 获取车型
57+ *
58+ * @return 车型
59+ */
60+ public String getVehicleType () {
61+ if (vehicleTypes != null && vehicleTypes .size () > 0 ) {
62+ StringBuilder type = new StringBuilder ();
63+ for (int i = 0 ; i < vehicleTypes .size (); i ++) {
64+ type .append (vehicleTypes .get (i ).getValue ());
65+ if (i != vehicleTypes .size () - 1 ) {
66+ type .append ("," );
67+ }
68+ }
69+ return type .toString ();
70+ }
71+ return "" ;
72+ }
73+
74+ /**
75+ * 获取车长
76+ *
77+ * @return 车长
78+ */
79+ public String getVehicleMeter () {
80+ if (vehicleMeters != null && vehicleMeters .size () > 0 ) {
81+ StringBuilder type = new StringBuilder ();
82+ for (int i = 0 ; i < vehicleMeters .size (); i ++) {
83+ type .append (vehicleMeters .get (i ).getValue ());
84+ if (i != vehicleMeters .size () - 1 ) {
85+ type .append ("," );
86+ }
87+ }
88+ return type .toString ();
89+ }
90+ return "" ;
91+ }
5492}
You can’t perform that action at this time.
0 commit comments