|
@@ -51,7 +51,6 @@ public class ProductLineDTO {
|
|
|
String[] strs1 =new String[list.size()];
|
|
|
return list.toArray(strs1);
|
|
|
}
|
|
|
-
|
|
|
/**
|
|
|
* Map格式返回给前台
|
|
|
* @return
|
|
@@ -61,15 +60,7 @@ public class ProductLineDTO {
|
|
|
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());
|
|
|
- }
|
|
|
+ map.put(Integer.valueOf(strs[i]), AccessTypeEnum.getName(Integer.valueOf(strs[i])));
|
|
|
}
|
|
|
return map;
|
|
|
}*/
|
|
@@ -86,15 +77,7 @@ public class ProductLineDTO {
|
|
|
String[] strs =chargeType.split(",");
|
|
|
List<String> list =new ArrayList();
|
|
|
for (int i =0;i<strs.length;i++){
|
|
|
- if(Integer.parseInt(strs[i]) == ChargeTypeEnum.ByFlow.getKey()){
|
|
|
- list.add(ChargeTypeEnum.ByFlow.getName());
|
|
|
- }
|
|
|
- if(Integer.parseInt(strs[i]) == ChargeTypeEnum.ByOrginations.getKey()){
|
|
|
- list.add(ChargeTypeEnum.ByOrginations.getName());
|
|
|
- }
|
|
|
- if(Integer.parseInt(strs[i]) == ChargeTypeEnum.ByUser.getKey()){
|
|
|
- list.add(ChargeTypeEnum.ByUser.getName());
|
|
|
- }
|
|
|
+ list.add(ChargeTypeEnum.getName(Integer.valueOf(strs[i])));
|
|
|
}
|
|
|
String[] strs1 =new String[list.size()];
|
|
|
return list.toArray(strs1);
|
|
@@ -104,19 +87,11 @@ public class ProductLineDTO {
|
|
|
* Map格式返回给前台
|
|
|
* @return
|
|
|
*/
|
|
|
- /*public Map getChargeType(){
|
|
|
+ /* 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());
|
|
|
- }
|
|
|
+ map.put(Integer.valueOf(strs[i]),ChargeTypeEnum.getName(Integer.valueOf(strs[i])));
|
|
|
}
|
|
|
return map;
|
|
|
}*/
|