Subversion Repositories SmartDukaan

Rev

Rev 6200 | Rev 6204 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6200 Rev 6201
Line 3... Line 3...
3
import in.shop2020.model.v1.order.RechargeType;
3
import in.shop2020.model.v1.order.RechargeType;
4
import in.shop2020.serving.utils.Utils;
4
import in.shop2020.serving.utils.Utils;
5
import in.shop2020.thrift.clients.TransactionClient;
5
import in.shop2020.thrift.clients.TransactionClient;
6
 
6
 
7
import java.util.Map;
7
import java.util.Map;
8
import java.util.Set;
-
 
9
 
8
 
10
import org.apache.log4j.Logger;
9
import org.apache.log4j.Logger;
11
 
10
 
12
import com.google.gson.Gson;
11
import com.google.gson.Gson;
13
 
12
 
Line 42... Line 41...
42
        }
41
        }
43
        return "hello";
42
        return "hello";
44
    }
43
    }
45
    
44
    
46
    public Map<Long, String> getProviderMap() {
45
    public Map<Long, String> getProviderMap() {
47
        TransactionClient tc;
-
 
48
        try {
-
 
49
            if(serviceType.equals("1"))
46
        if(serviceType.equals("1"))
50
                providers = Utils.getMobileProvidersMap();
47
            providers = Utils.getMobileProvidersMap();
51
            else
48
        else
52
                providers = Utils.getDthProvidersMap();
49
            providers = Utils.getDthProvidersMap();
53
            setProviderKeys(providers.keySet());
-
 
54
        } catch (Exception e) {
-
 
55
            log.error("Cannot get providers", e);
-
 
56
        }
-
 
57
        return providers;
50
        return providers;
58
    }
51
    }
59
    
52
    
60
    public String getServiceProvider() {
53
    public String getServiceProvider() {
61
    	return "service-provider";
54
    	return "service-provider";