|
@@ -38,7 +38,10 @@ public class ProductLineDTO {
|
|
|
*/
|
|
|
private String accessType;
|
|
|
|
|
|
-
|
|
|
+ /**
|
|
|
+ * list格式返回给前台
|
|
|
+ * @return
|
|
|
+ */
|
|
|
public String[] getAccessType() {
|
|
|
String[] strs =accessType.split(",");
|
|
|
List<String> list =new ArrayList();
|
|
@@ -57,10 +60,36 @@ public class ProductLineDTO {
|
|
|
return list.toArray(strs1);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * Map格式返回给前台
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ /*public Map getAccessType(){
|
|
|
+ Map map = new HashMap();
|
|
|
+ String[] strs =accessType.split(",");
|
|
|
+ List<String> list =new ArrayList();
|
|
|
+ for (int i =0;i<strs.length;i++){
|
|
|
+ if(Integer.parseInt(strs[i])== AccessTypeEnum.Online.getKey()){
|
|
|
+ map.put(AccessTypeEnum.Online.getKey(),AccessTypeEnum.Online.getName());
|
|
|
+ }
|
|
|
+ if(Integer.parseInt(strs[i])==AccessTypeEnum.InterfaceType.getKey()){
|
|
|
+ map.put(AccessTypeEnum.InterfaceType.getKey(),AccessTypeEnum.InterfaceType.getName());
|
|
|
+ }
|
|
|
+ if(Integer.parseInt(strs[i])==AccessTypeEnum.Embedded.getKey()){
|
|
|
+ map.put(AccessTypeEnum.Embedded.getKey(),AccessTypeEnum.Embedded.getName());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return map;
|
|
|
+ }*/
|
|
|
+
|
|
|
public void setAccessType(String accessType) {
|
|
|
this.accessType = accessType;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * list格式返回给前台
|
|
|
+ * @return
|
|
|
+ */
|
|
|
public String[] getChargeType() {
|
|
|
String[] strs =chargeType.split(",");
|
|
|
List<String> list =new ArrayList();
|
|
@@ -79,6 +108,27 @@ public class ProductLineDTO {
|
|
|
return list.toArray(strs1);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * Map格式返回给前台
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ /*public Map getChargeType(){
|
|
|
+ Map map = new HashMap();
|
|
|
+ String[] strs =chargeType.split(",");
|
|
|
+ for (int i =0;i<strs.length;i++){
|
|
|
+ if(Integer.parseInt(strs[i]) == ChargeTypeEnum.ByFlow.getKey()){
|
|
|
+ map.put(ChargeTypeEnum.ByFlow.getKey(),ChargeTypeEnum.ByFlow.getName());
|
|
|
+ }
|
|
|
+ if(Integer.parseInt(strs[i]) == ChargeTypeEnum.ByOrginations.getKey()){
|
|
|
+ map.put(ChargeTypeEnum.ByOrginations.getKey(),ChargeTypeEnum.ByOrginations.getName());
|
|
|
+ }
|
|
|
+ if(Integer.parseInt(strs[i]) == ChargeTypeEnum.ByUser.getKey()){
|
|
|
+ map.put(ChargeTypeEnum.ByUser.getKey(),ChargeTypeEnum.ByUser.getName());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return map;
|
|
|
+ }*/
|
|
|
+
|
|
|
public void setChargeType(String chargeType) {
|
|
|
this.chargeType = chargeType;
|
|
|
}
|