| 2674 |
vikas |
1 |
package in.shop2020.serving.controllers;
|
|
|
2 |
|
| 3090 |
mandeep.dh |
3 |
import in.shop2020.crm.Activity;
|
| 4142 |
mandeep.dh |
4 |
import in.shop2020.crm.ActivityType;
|
| 3397 |
mandeep.dh |
5 |
import in.shop2020.crm.Agent;
|
| 3390 |
mandeep.dh |
6 |
import in.shop2020.crm.SearchFilter;
|
| 3090 |
mandeep.dh |
7 |
import in.shop2020.crm.Ticket;
|
| 3499 |
mandeep.dh |
8 |
import in.shop2020.crm.TicketCategory;
|
| 3090 |
mandeep.dh |
9 |
import in.shop2020.crm.TicketStatus;
|
| 2724 |
vikas |
10 |
import in.shop2020.model.v1.order.Order;
|
| 7572 |
anupam.sin |
11 |
import in.shop2020.model.v1.order.OrderSource;
|
| 2724 |
vikas |
12 |
import in.shop2020.model.v1.order.OrderStatus;
|
| 6111 |
anupam.sin |
13 |
import in.shop2020.model.v1.order.RechargeOrder;
|
|
|
14 |
import in.shop2020.model.v1.order.RechargeOrderStatus;
|
| 3090 |
mandeep.dh |
15 |
import in.shop2020.model.v1.order.TransactionServiceException;
|
| 7387 |
manish.sha |
16 |
import in.shop2020.model.v1.order.UserWallet;
|
| 2724 |
vikas |
17 |
import in.shop2020.model.v1.user.Cart;
|
|
|
18 |
import in.shop2020.model.v1.user.Line;
|
| 13102 |
kshitij.so |
19 |
import in.shop2020.model.v1.user.PrivateDealUser;
|
| 2724 |
vikas |
20 |
import in.shop2020.model.v1.user.User;
|
| 3090 |
mandeep.dh |
21 |
import in.shop2020.model.v1.user.UserCommunication;
|
|
|
22 |
import in.shop2020.model.v1.user.UserCommunicationException;
|
|
|
23 |
import in.shop2020.model.v1.user.UserContextException;
|
| 3390 |
mandeep.dh |
24 |
import in.shop2020.serving.auth.CRMAuthorizingRealm;
|
|
|
25 |
import in.shop2020.thrift.clients.CRMClient;
|
|
|
26 |
import in.shop2020.thrift.clients.TransactionClient;
|
|
|
27 |
import in.shop2020.thrift.clients.UserClient;
|
| 3269 |
mandeep.dh |
28 |
import in.shop2020.util.CRMConstants;
|
| 7606 |
anupam.sin |
29 |
import in.shop2020.util.CRMEmailProcessor;
|
| 2674 |
vikas |
30 |
|
| 3546 |
mandeep.dh |
31 |
import java.util.ArrayList;
|
| 3397 |
mandeep.dh |
32 |
import java.util.Calendar;
|
| 3390 |
mandeep.dh |
33 |
import java.util.Collections;
|
| 2724 |
vikas |
34 |
import java.util.Date;
|
|
|
35 |
import java.util.List;
|
|
|
36 |
|
| 7606 |
anupam.sin |
37 |
import org.apache.commons.logging.Log;
|
|
|
38 |
import org.apache.commons.logging.LogFactory;
|
| 2674 |
vikas |
39 |
import org.apache.log4j.Logger;
|
|
|
40 |
import org.apache.struts2.convention.annotation.Action;
|
| 3090 |
mandeep.dh |
41 |
import org.apache.thrift.TException;
|
| 2674 |
vikas |
42 |
|
|
|
43 |
/**
|
|
|
44 |
* @author vikas
|
| 3422 |
mandeep.dh |
45 |
*
|
| 2674 |
vikas |
46 |
*/
|
|
|
47 |
@SuppressWarnings("serial")
|
|
|
48 |
public class HomeController extends BaseController {
|
| 7606 |
anupam.sin |
49 |
// private static final Logger log = Logger.getLogger(HomeController.class);
|
|
|
50 |
private static final Log log = LogFactory.getLog(HomeController.class);
|
| 3090 |
mandeep.dh |
51 |
|
| 6111 |
anupam.sin |
52 |
private String rechargeOrderId;
|
|
|
53 |
private String deviceNumber;
|
| 3422 |
mandeep.dh |
54 |
private String email;
|
|
|
55 |
private String orderId;
|
|
|
56 |
private String mobileNumber;
|
|
|
57 |
private User user;
|
|
|
58 |
private long orderCount;
|
|
|
59 |
private long completedOrderCount;
|
|
|
60 |
private long openOrderCount;
|
|
|
61 |
private long failedOrderCount;
|
|
|
62 |
private long userCommunicationCount;
|
|
|
63 |
private long ticketCount;
|
|
|
64 |
private long openTicketCount;
|
|
|
65 |
private long closedTicketCount;
|
|
|
66 |
private String ticketId;
|
|
|
67 |
private String lastLogin;
|
|
|
68 |
private double cartItems;
|
|
|
69 |
private String couponCode = "";
|
|
|
70 |
private long agentOpenTicketCount;
|
|
|
71 |
private long unassignedTicketCount;
|
|
|
72 |
private long activityCount;
|
|
|
73 |
private long customerActivityCount;
|
| 3499 |
mandeep.dh |
74 |
private long pendingCodVerificationCount;
|
| 3711 |
mandeep.dh |
75 |
private long agentUnreadActivityCount;
|
| 3578 |
mandeep.dh |
76 |
private long openFailedPaymentsTicketCount;
|
| 4008 |
mandeep.dh |
77 |
private long openDelayedDeliveryTicketCount;
|
| 4267 |
anupam.sin |
78 |
private long openFlaggedPaymentsTicketCount;
|
| 5858 |
amar.kumar |
79 |
private long openStorePickupTicketCount;
|
| 7372 |
kshitij.so |
80 |
private long lowInventoryTicketsCount;
|
| 7615 |
manish.sha |
81 |
//Start:- Added By Manish Sharma for Creating a new Ticket: Category- RTO Refund on 21-Jun-2013
|
|
|
82 |
private long RtoRefundsTicketCount;
|
|
|
83 |
//End:- Added By Manish Sharma for Creating a new Ticket: Category- RTO Refund on 21-Jun-2013
|
| 4490 |
anupam.sin |
84 |
private long DoaRequestCount;
|
| 6111 |
anupam.sin |
85 |
private long failedRechargeCount = 0;
|
|
|
86 |
private long successfulRechargeCount = 0;
|
| 2674 |
vikas |
87 |
|
| 5858 |
amar.kumar |
88 |
private long ReturnRequestCount;
|
| 4490 |
anupam.sin |
89 |
|
| 4751 |
anupam.sin |
90 |
private long orderCancellationCount;
|
| 6111 |
anupam.sin |
91 |
|
|
|
92 |
private long rechargeOrderCount = 0;
|
| 4751 |
anupam.sin |
93 |
|
| 7572 |
anupam.sin |
94 |
private String amazonOrderItemCode;
|
|
|
95 |
|
| 7387 |
manish.sha |
96 |
//Start:- Added by Manish Sharma for Displaying wallet amount at user page on June-05-2013
|
|
|
97 |
private UserWallet wallet = null;
|
|
|
98 |
|
|
|
99 |
private long walletAmount;
|
|
|
100 |
//End:- Added by Manish Sharma for Displaying wallet amount at user page on June-05-2013
|
| 7572 |
anupam.sin |
101 |
|
|
|
102 |
private List<Order> orders = new ArrayList<Order>();
|
|
|
103 |
|
| 9166 |
manish.sha |
104 |
private List<RechargeOrder> rechargeOrders = new ArrayList<RechargeOrder>();
|
| 7572 |
anupam.sin |
105 |
private String amazonId;
|
| 11890 |
kshitij.so |
106 |
private long bulkOrderEnquiryCount;
|
| 14882 |
manish.sha |
107 |
private long profitMandiTicketCount;
|
| 13102 |
kshitij.so |
108 |
private PrivateDealUser privateDealUser;
|
| 13324 |
manish.sha |
109 |
private String masterOrderId;
|
| 7572 |
anupam.sin |
110 |
|
| 4751 |
anupam.sin |
111 |
|
| 13102 |
kshitij.so |
112 |
public PrivateDealUser getPrivateDealUser() {
|
|
|
113 |
return privateDealUser;
|
|
|
114 |
}
|
|
|
115 |
|
|
|
116 |
public void setPrivateDealUser(PrivateDealUser privateDealUser) {
|
|
|
117 |
this.privateDealUser = privateDealUser;
|
|
|
118 |
}
|
|
|
119 |
|
| 2674 |
vikas |
120 |
@Action("/")
|
| 2724 |
vikas |
121 |
public String index() throws Exception {
|
| 3137 |
mandeep.dh |
122 |
String returnValue = INPUT;
|
|
|
123 |
|
| 3090 |
mandeep.dh |
124 |
try {
|
| 3106 |
mandeep.dh |
125 |
if (email == null) {
|
| 3390 |
mandeep.dh |
126 |
loadTicketCounts();
|
|
|
127 |
loadCustomerActivities();
|
| 3137 |
mandeep.dh |
128 |
return returnValue;
|
| 3106 |
mandeep.dh |
129 |
}
|
| 7572 |
anupam.sin |
130 |
|
|
|
131 |
if (mobileNumber != null && !mobileNumber.isEmpty()) {
|
|
|
132 |
transactionServiceClient = new TransactionClient().getClient();
|
|
|
133 |
setOrders(transactionServiceClient.getOrdersByMobileNumber(mobileNumber));
|
|
|
134 |
return "orders-index";
|
|
|
135 |
}
|
|
|
136 |
|
|
|
137 |
if (amazonId != null && !amazonId.isEmpty()) {
|
|
|
138 |
transactionServiceClient = new TransactionClient().getClient();
|
| 7645 |
anupam.sin |
139 |
setOrders(transactionServiceClient.getOrdersByAmazonOrderCode(amazonId));
|
| 7572 |
anupam.sin |
140 |
return "orders-index";
|
|
|
141 |
}
|
|
|
142 |
|
| 13324 |
manish.sha |
143 |
if(masterOrderId!=null && !masterOrderId.isEmpty()){
|
|
|
144 |
transactionServiceClient = new TransactionClient().getClient();
|
|
|
145 |
setOrders(transactionServiceClient.getGroupOrdersByLogisticsTxnId(masterOrderId));
|
|
|
146 |
return "orders-index";
|
|
|
147 |
}
|
|
|
148 |
|
| 9166 |
manish.sha |
149 |
if (deviceNumber != null && !deviceNumber.isEmpty()) {
|
|
|
150 |
transactionServiceClient = new TransactionClient().getClient();
|
|
|
151 |
rechargeOrders = transactionServiceClient.getRechargeOrdersForDevice(deviceNumber);
|
|
|
152 |
setRechargeOrders(rechargeOrders);
|
|
|
153 |
return "recharge-orders-result-index";
|
|
|
154 |
//user = userContextServiceClient.getUserById(rechargeOrders.get(0).getUserId());
|
|
|
155 |
}
|
|
|
156 |
|
| 3390 |
mandeep.dh |
157 |
userContextServiceClient = new UserClient().getClient();
|
| 3096 |
mandeep.dh |
158 |
if (email != null && !email.isEmpty()) {
|
|
|
159 |
user = userContextServiceClient.getUserByEmail(email);
|
| 3422 |
mandeep.dh |
160 |
} else if (orderId != null && !orderId.isEmpty()) {
|
| 3390 |
mandeep.dh |
161 |
transactionServiceClient = new TransactionClient().getClient();
|
| 3422 |
mandeep.dh |
162 |
Order order = transactionServiceClient.getOrder(Long
|
|
|
163 |
.parseLong(orderId));
|
|
|
164 |
user = userContextServiceClient.getUserById(order
|
|
|
165 |
.getCustomer_id());
|
| 6111 |
anupam.sin |
166 |
} else if (rechargeOrderId != null && !rechargeOrderId.isEmpty()){
|
|
|
167 |
transactionServiceClient = new TransactionClient().getClient();
|
|
|
168 |
RechargeOrder rechargeOrder = transactionServiceClient.getRechargeOrder(Long
|
|
|
169 |
.parseLong(rechargeOrderId));
|
|
|
170 |
user = userContextServiceClient.getUserById(rechargeOrder.getUserId());
|
| 3422 |
mandeep.dh |
171 |
} else if (ticketId != null && !ticketId.isEmpty()) {
|
| 3390 |
mandeep.dh |
172 |
SearchFilter searchFilter = new SearchFilter();
|
|
|
173 |
searchFilter.setTicketId(Long.parseLong(ticketId));
|
| 3422 |
mandeep.dh |
174 |
crmServiceClient = new CRMClient().getClient();
|
|
|
175 |
List<Ticket> tickets = crmServiceClient
|
|
|
176 |
.getTickets(searchFilter);
|
| 3390 |
mandeep.dh |
177 |
if (!tickets.isEmpty()) {
|
|
|
178 |
Ticket ticket = tickets.get(0);
|
|
|
179 |
if (ticket.isSetCustomerId()) {
|
|
|
180 |
user = userContextServiceClient.getUserById(ticket.getCustomerId());
|
|
|
181 |
}
|
|
|
182 |
}
|
| 3422 |
mandeep.dh |
183 |
else {
|
|
|
184 |
// resetting in case on invalid ticket Id
|
|
|
185 |
ticketId = null;
|
|
|
186 |
}
|
| 3096 |
mandeep.dh |
187 |
}
|
| 3090 |
mandeep.dh |
188 |
|
|
|
189 |
if (user == null || user.getUserId() <= 0) {
|
| 3422 |
mandeep.dh |
190 |
if (ticketId == null || ticketId.isEmpty()) {
|
|
|
191 |
addActionError("Invalid input");
|
|
|
192 |
}
|
|
|
193 |
} else {
|
| 3390 |
mandeep.dh |
194 |
loadUserCommunicationDetails();
|
| 6111 |
anupam.sin |
195 |
loadRechargeOrders();
|
| 3390 |
mandeep.dh |
196 |
loadOrderDetails();
|
|
|
197 |
loadCartDetails();
|
|
|
198 |
loadTicketDetails();
|
|
|
199 |
loadActivityDetails();
|
| 3137 |
mandeep.dh |
200 |
returnValue = INDEX;
|
|
|
201 |
}
|
| 3422 |
mandeep.dh |
202 |
} catch (Exception e) {
|
| 3137 |
mandeep.dh |
203 |
addActionError("Invalid input");
|
| 3090 |
mandeep.dh |
204 |
log.error("Error occurred", e);
|
| 2724 |
vikas |
205 |
}
|
| 3137 |
mandeep.dh |
206 |
|
|
|
207 |
if (INPUT.equals(returnValue)) {
|
| 3390 |
mandeep.dh |
208 |
loadTicketCounts();
|
| 3422 |
mandeep.dh |
209 |
loadCustomerActivities();
|
| 3137 |
mandeep.dh |
210 |
}
|
|
|
211 |
|
|
|
212 |
return returnValue;
|
| 3090 |
mandeep.dh |
213 |
}
|
|
|
214 |
|
| 3390 |
mandeep.dh |
215 |
private void loadCustomerActivities() throws TException {
|
|
|
216 |
SearchFilter searchFilter = new SearchFilter();
|
| 3422 |
mandeep.dh |
217 |
searchFilter.setActivityCreatorIds(Collections
|
|
|
218 |
.singletonList(CRMConstants.ADMIN_AGENT_ID));
|
| 3390 |
mandeep.dh |
219 |
searchFilter.setIsActivityRead(false);
|
|
|
220 |
|
| 3711 |
mandeep.dh |
221 |
agentUnreadActivityCount = 0;
|
|
|
222 |
customerActivityCount = 0;
|
|
|
223 |
|
| 3422 |
mandeep.dh |
224 |
crmServiceClient = new CRMClient().getClient();
|
| 3711 |
mandeep.dh |
225 |
List<Activity> activities = crmServiceClient.getActivities(searchFilter);
|
|
|
226 |
|
| 3339 |
mandeep.dh |
227 |
if (activities != null) {
|
| 3711 |
mandeep.dh |
228 |
for (Activity activity : activities) {
|
| 14912 |
manish.sha |
229 |
if (CRMAuthorizingRealm.getAgent(currentAgentEmailId).getId() == activity.getTicketAssigneeId()) {
|
| 3711 |
mandeep.dh |
230 |
agentUnreadActivityCount++;
|
|
|
231 |
}
|
|
|
232 |
}
|
|
|
233 |
|
| 14913 |
manish.sha |
234 |
customerActivityCount = activities.size();
|
| 3339 |
mandeep.dh |
235 |
}
|
|
|
236 |
}
|
|
|
237 |
|
| 3390 |
mandeep.dh |
238 |
private void loadActivityDetails() throws TException {
|
|
|
239 |
SearchFilter searchFilter = new SearchFilter();
|
|
|
240 |
searchFilter.setCustomerId(user.getUserId());
|
|
|
241 |
|
| 3422 |
mandeep.dh |
242 |
crmServiceClient = new CRMClient().getClient();
|
|
|
243 |
List<Activity> activities = crmServiceClient
|
|
|
244 |
.getActivities(searchFilter);
|
| 3106 |
mandeep.dh |
245 |
if (activities != null) {
|
|
|
246 |
activityCount = activities.size();
|
|
|
247 |
}
|
|
|
248 |
}
|
|
|
249 |
|
| 3390 |
mandeep.dh |
250 |
private void loadTicketCounts() throws TException {
|
|
|
251 |
SearchFilter searchFilter = new SearchFilter();
|
| 3546 |
mandeep.dh |
252 |
searchFilter.setTicketStatuses(new ArrayList<TicketStatus>());
|
|
|
253 |
searchFilter.getTicketStatuses().add(TicketStatus.OPEN);
|
|
|
254 |
searchFilter.getTicketStatuses().add(TicketStatus.REOPEN);
|
| 3422 |
mandeep.dh |
255 |
searchFilter.setTicketAssigneeIds(Collections
|
| 3499 |
mandeep.dh |
256 |
.singletonList(CRMAuthorizingRealm.getAgent(currentAgentEmailId).getId()));
|
| 3390 |
mandeep.dh |
257 |
|
| 3422 |
mandeep.dh |
258 |
crmServiceClient = new CRMClient().getClient();
|
| 3499 |
mandeep.dh |
259 |
agentOpenTicketCount = crmServiceClient.getTickets(searchFilter).size();
|
|
|
260 |
unassignedTicketCount = crmServiceClient.getUnassignedTickets().size();
|
| 3390 |
mandeep.dh |
261 |
|
| 3578 |
mandeep.dh |
262 |
if (canVerifyCOD()) {
|
|
|
263 |
searchFilter = new SearchFilter();
|
|
|
264 |
searchFilter.setTicketCategory(TicketCategory.COD_VERIFICATION);
|
|
|
265 |
searchFilter.setTicketStatuses(new ArrayList<TicketStatus>());
|
|
|
266 |
searchFilter.getTicketStatuses().add(TicketStatus.OPEN);
|
|
|
267 |
searchFilter.getTicketStatuses().add(TicketStatus.REOPEN);
|
| 3546 |
mandeep.dh |
268 |
|
| 3578 |
mandeep.dh |
269 |
crmServiceClient = new CRMClient().getClient();
|
|
|
270 |
pendingCodVerificationCount = crmServiceClient.getTickets(searchFilter).size();
|
|
|
271 |
}
|
|
|
272 |
|
|
|
273 |
if (canViewFailedPayments()) {
|
|
|
274 |
searchFilter = new SearchFilter();
|
|
|
275 |
searchFilter.setTicketStatuses(new ArrayList<TicketStatus>());
|
|
|
276 |
searchFilter.getTicketStatuses().add(TicketStatus.OPEN);
|
|
|
277 |
searchFilter.getTicketStatuses().add(TicketStatus.REOPEN);
|
|
|
278 |
searchFilter.setTicketCategory(TicketCategory.FAILED_PAYMENTS);
|
|
|
279 |
crmServiceClient = new CRMClient().getClient();
|
|
|
280 |
openFailedPaymentsTicketCount = crmServiceClient.getTickets(searchFilter).size();
|
|
|
281 |
}
|
| 4008 |
mandeep.dh |
282 |
|
|
|
283 |
if (canViewDelayedDeliveries()) {
|
|
|
284 |
searchFilter = new SearchFilter();
|
|
|
285 |
searchFilter.setTicketStatuses(new ArrayList<TicketStatus>());
|
|
|
286 |
searchFilter.getTicketStatuses().add(TicketStatus.OPEN);
|
|
|
287 |
searchFilter.getTicketStatuses().add(TicketStatus.REOPEN);
|
|
|
288 |
searchFilter.setTicketCategory(TicketCategory.DELAYED_DELIVERY);
|
|
|
289 |
crmServiceClient = new CRMClient().getClient();
|
|
|
290 |
openDelayedDeliveryTicketCount = crmServiceClient.getTickets(searchFilter).size();
|
|
|
291 |
}
|
| 4267 |
anupam.sin |
292 |
|
|
|
293 |
if (canViewFlaggedPayments()) {
|
|
|
294 |
searchFilter = new SearchFilter();
|
|
|
295 |
searchFilter.setTicketStatuses(new ArrayList<TicketStatus>());
|
|
|
296 |
searchFilter.getTicketStatuses().add(TicketStatus.OPEN);
|
|
|
297 |
searchFilter.getTicketStatuses().add(TicketStatus.REOPEN);
|
|
|
298 |
searchFilter.setTicketCategory(TicketCategory.PAYMENT_FLAGGED);
|
|
|
299 |
crmServiceClient = new CRMClient().getClient();
|
|
|
300 |
openFlaggedPaymentsTicketCount = crmServiceClient.getTickets(searchFilter).size();
|
|
|
301 |
}
|
| 4490 |
anupam.sin |
302 |
|
|
|
303 |
if (canViewDoaRequests()) {
|
|
|
304 |
searchFilter = new SearchFilter();
|
|
|
305 |
searchFilter.setTicketStatuses(new ArrayList<TicketStatus>());
|
|
|
306 |
searchFilter.getTicketStatuses().add(TicketStatus.OPEN);
|
|
|
307 |
searchFilter.getTicketStatuses().add(TicketStatus.REOPEN);
|
|
|
308 |
searchFilter.setTicketCategory(TicketCategory.DOA_RECEIVED);
|
|
|
309 |
crmServiceClient = new CRMClient().getClient();
|
|
|
310 |
DoaRequestCount = crmServiceClient.getTickets(searchFilter).size();
|
|
|
311 |
}
|
|
|
312 |
|
|
|
313 |
if (canViewReturnRequests()) {
|
|
|
314 |
searchFilter = new SearchFilter();
|
|
|
315 |
searchFilter.setTicketStatuses(new ArrayList<TicketStatus>());
|
|
|
316 |
searchFilter.getTicketStatuses().add(TicketStatus.OPEN);
|
|
|
317 |
searchFilter.getTicketStatuses().add(TicketStatus.REOPEN);
|
|
|
318 |
searchFilter.setTicketCategory(TicketCategory.RETURN_FORM);
|
|
|
319 |
crmServiceClient = new CRMClient().getClient();
|
|
|
320 |
ReturnRequestCount = crmServiceClient.getTickets(searchFilter).size();
|
|
|
321 |
}
|
| 4751 |
anupam.sin |
322 |
|
|
|
323 |
if (canViewOrderCancellation()) {
|
|
|
324 |
searchFilter = new SearchFilter();
|
|
|
325 |
searchFilter.setTicketStatuses(new ArrayList<TicketStatus>());
|
|
|
326 |
searchFilter.getTicketStatuses().add(TicketStatus.OPEN);
|
|
|
327 |
searchFilter.getTicketStatuses().add(TicketStatus.REOPEN);
|
|
|
328 |
searchFilter.setTicketCategory(TicketCategory.ORDER_CANCELLATION);
|
|
|
329 |
crmServiceClient = new CRMClient().getClient();
|
|
|
330 |
orderCancellationCount = crmServiceClient.getTickets(searchFilter).size();
|
|
|
331 |
}
|
| 5858 |
amar.kumar |
332 |
|
|
|
333 |
searchFilter = new SearchFilter();
|
|
|
334 |
searchFilter.setTicketStatuses(new ArrayList<TicketStatus>());
|
|
|
335 |
searchFilter.getTicketStatuses().add(TicketStatus.OPEN);
|
|
|
336 |
searchFilter.getTicketStatuses().add(TicketStatus.REOPEN);
|
|
|
337 |
searchFilter.setTicketCategory(TicketCategory.STORE_PICKUP);
|
|
|
338 |
crmServiceClient = new CRMClient().getClient();
|
|
|
339 |
openStorePickupTicketCount = crmServiceClient.getTickets(searchFilter).size();
|
|
|
340 |
|
| 7372 |
kshitij.so |
341 |
if (canViewLowInventoryCancellation()) {
|
|
|
342 |
searchFilter = new SearchFilter();
|
|
|
343 |
searchFilter.setTicketStatuses(new ArrayList<TicketStatus>());
|
|
|
344 |
searchFilter.getTicketStatuses().add(TicketStatus.OPEN);
|
|
|
345 |
searchFilter.getTicketStatuses().add(TicketStatus.REOPEN);
|
|
|
346 |
searchFilter.setTicketCategory(TicketCategory.LOW_INVENTORY_CANCELLED_ORDERS);
|
|
|
347 |
crmServiceClient = new CRMClient().getClient();
|
|
|
348 |
lowInventoryTicketsCount = crmServiceClient.getTickets(searchFilter).size();
|
|
|
349 |
}
|
| 7615 |
manish.sha |
350 |
//Start:- Added By Manish Sharma for Creating a new Ticket: Category- RTO Refund on 21-Jun-2013
|
|
|
351 |
if (canViewRTORefunds()) {
|
|
|
352 |
searchFilter = new SearchFilter();
|
|
|
353 |
searchFilter.setTicketStatuses(new ArrayList<TicketStatus>());
|
|
|
354 |
searchFilter.getTicketStatuses().add(TicketStatus.OPEN);
|
|
|
355 |
searchFilter.getTicketStatuses().add(TicketStatus.REOPEN);
|
|
|
356 |
searchFilter.setTicketCategory(TicketCategory.RTO_REFUND);
|
|
|
357 |
crmServiceClient = new CRMClient().getClient();
|
|
|
358 |
RtoRefundsTicketCount = crmServiceClient.getTickets(searchFilter).size();
|
|
|
359 |
}
|
|
|
360 |
//End:- Added By Manish Sharma for Creating a new Ticket: Category- RTO Refund on 21-Jun-2013
|
| 11890 |
kshitij.so |
361 |
if (canViewBulkOrderEnquiry()) {
|
|
|
362 |
log.info("Inside can view bulk order enquiry");
|
|
|
363 |
searchFilter = new SearchFilter();
|
|
|
364 |
searchFilter.setTicketStatuses(new ArrayList<TicketStatus>());
|
|
|
365 |
searchFilter.getTicketStatuses().add(TicketStatus.OPEN);
|
|
|
366 |
searchFilter.getTicketStatuses().add(TicketStatus.REOPEN);
|
|
|
367 |
searchFilter.setTicketCategory(TicketCategory.Bulk_Order_ENQUIRY);
|
|
|
368 |
crmServiceClient = new CRMClient().getClient();
|
|
|
369 |
log.info("count"+crmServiceClient.getTickets(searchFilter).size());
|
|
|
370 |
setBulkOrderEnquiryCount(crmServiceClient.getTickets(searchFilter).size());
|
|
|
371 |
}
|
| 7372 |
kshitij.so |
372 |
|
| 14882 |
manish.sha |
373 |
if(canViewProfitMandiTicket()){
|
|
|
374 |
log.info("Inside can view Profit Mandi Tickets");
|
|
|
375 |
searchFilter = new SearchFilter();
|
|
|
376 |
searchFilter.setTicketStatuses(new ArrayList<TicketStatus>());
|
|
|
377 |
searchFilter.getTicketStatuses().add(TicketStatus.OPEN);
|
|
|
378 |
searchFilter.getTicketStatuses().add(TicketStatus.REOPEN);
|
|
|
379 |
searchFilter.setTicketCategoryList(new ArrayList<TicketCategory>());
|
|
|
380 |
searchFilter.getTicketCategoryList().add(TicketCategory.PROFITMANDI_CASHBACK);
|
|
|
381 |
searchFilter.getTicketCategoryList().add(TicketCategory.PROFITMANDI_FEEDBACK);
|
|
|
382 |
searchFilter.getTicketCategoryList().add(TicketCategory.PROFITMANDI_ORDER_NOT_SEEN);
|
|
|
383 |
searchFilter.getTicketCategoryList().add(TicketCategory.PROFITMANDI_OTHER);
|
|
|
384 |
searchFilter.getTicketCategoryList().add(TicketCategory.PROFITMANDI_RECHARGE_ISSUE);
|
|
|
385 |
crmServiceClient = new CRMClient().getClient();
|
|
|
386 |
setProfitMandiTicketCount(crmServiceClient.getTickets(searchFilter).size());
|
|
|
387 |
}
|
| 11890 |
kshitij.so |
388 |
|
| 14882 |
manish.sha |
389 |
|
|
|
390 |
|
| 3106 |
mandeep.dh |
391 |
}
|
|
|
392 |
|
| 3390 |
mandeep.dh |
393 |
private void loadUserCommunicationDetails()
|
| 3090 |
mandeep.dh |
394 |
throws UserCommunicationException, TException {
|
| 3390 |
mandeep.dh |
395 |
userContextServiceClient = new UserClient().getClient();
|
| 3422 |
mandeep.dh |
396 |
List<UserCommunication> userCommunication = userContextServiceClient
|
|
|
397 |
.getUserCommunicationByUser(user.getUserId());
|
| 3090 |
mandeep.dh |
398 |
userCommunicationCount = userCommunication.size();
|
| 13102 |
kshitij.so |
399 |
privateDealUser = userContextServiceClient.getPrivateDealUser(user.getUserId());
|
| 3090 |
mandeep.dh |
400 |
}
|
| 6111 |
anupam.sin |
401 |
|
|
|
402 |
private void loadRechargeOrders() throws TransactionServiceException,
|
|
|
403 |
TException {
|
|
|
404 |
transactionServiceClient = new TransactionClient().getClient();
|
|
|
405 |
List<RechargeOrder> allRechargeOrders = transactionServiceClient.getRechargeOrders(user.getUserId());
|
|
|
406 |
rechargeOrderCount = allRechargeOrders.size();
|
| 3090 |
mandeep.dh |
407 |
|
| 6111 |
anupam.sin |
408 |
for (RechargeOrder o : allRechargeOrders) {
|
|
|
409 |
if (o.getStatus() == RechargeOrderStatus.RECHARGE_SUCCESSFUL) {
|
|
|
410 |
successfulRechargeCount++;
|
|
|
411 |
} else if (CRMConstants.failedStatusList.contains(o.getStatus())) {
|
|
|
412 |
failedRechargeCount++;
|
|
|
413 |
}
|
|
|
414 |
}
|
| 7387 |
manish.sha |
415 |
//Start:- Added by Manish Sharma for Displaying wallet amount at user page on June-05-2013
|
|
|
416 |
wallet = transactionServiceClient.getUserWallet(user.getUserId());
|
|
|
417 |
setWalletAmount(wallet.getAmount());
|
|
|
418 |
//End:- Added by Manish Sharma for Displaying wallet amount at user page on June-05-2013
|
| 6111 |
anupam.sin |
419 |
}
|
| 3422 |
mandeep.dh |
420 |
private void loadOrderDetails() throws TransactionServiceException,
|
| 6111 |
anupam.sin |
421 |
TException {
|
| 3390 |
mandeep.dh |
422 |
transactionServiceClient = new TransactionClient().getClient();
|
| 3422 |
mandeep.dh |
423 |
List<Order> allOrders = transactionServiceClient.getOrdersForCustomer(
|
|
|
424 |
user.getUserId(), 0, (new Date()).getTime(), null);
|
| 2724 |
vikas |
425 |
orderCount = allOrders.size();
|
| 3090 |
mandeep.dh |
426 |
|
| 2724 |
vikas |
427 |
for (Order o : allOrders) {
|
|
|
428 |
if (o.getStatus() == OrderStatus.DELIVERY_SUCCESS) {
|
|
|
429 |
completedOrderCount++;
|
| 3422 |
mandeep.dh |
430 |
} else if (CRMConstants.failedStatusList.contains(o.getStatus())) {
|
| 2724 |
vikas |
431 |
failedOrderCount++;
|
| 3422 |
mandeep.dh |
432 |
} else {
|
| 2724 |
vikas |
433 |
openOrderCount++;
|
|
|
434 |
}
|
|
|
435 |
}
|
| 3090 |
mandeep.dh |
436 |
}
|
|
|
437 |
|
| 3422 |
mandeep.dh |
438 |
private void loadCartDetails() throws UserContextException, TException {
|
| 3390 |
mandeep.dh |
439 |
userContextServiceClient = new UserClient().getClient();
|
| 5326 |
rajveer |
440 |
lastLogin = new Date(user.getLastLogin()).toString();
|
| 3090 |
mandeep.dh |
441 |
Cart cart = null;
|
|
|
442 |
|
| 2724 |
vikas |
443 |
try {
|
| 3090 |
mandeep.dh |
444 |
cart = userContextServiceClient.getCurrentCart(user.getUserId());
|
| 2724 |
vikas |
445 |
if (cart.getCouponCode() != null) {
|
|
|
446 |
couponCode = cart.getCouponCode();
|
|
|
447 |
}
|
|
|
448 |
for (Line line : cart.getLines()) {
|
|
|
449 |
cartItems += line.getQuantity();
|
|
|
450 |
}
|
|
|
451 |
} catch (Exception e) {
|
|
|
452 |
log.warn("No cart assigned for this user", e);
|
|
|
453 |
}
|
| 2674 |
vikas |
454 |
}
|
| 2724 |
vikas |
455 |
|
| 3390 |
mandeep.dh |
456 |
private void loadTicketDetails() throws TException {
|
| 3090 |
mandeep.dh |
457 |
// Fetching tickets' info
|
|
|
458 |
ticketCount = 0;
|
|
|
459 |
openTicketCount = 0;
|
|
|
460 |
closedTicketCount = 0;
|
|
|
461 |
|
| 3422 |
mandeep.dh |
462 |
crmServiceClient = new CRMClient().getClient();
|
| 3390 |
mandeep.dh |
463 |
SearchFilter searchFilter = new SearchFilter();
|
|
|
464 |
searchFilter.setCustomerId(user.getUserId());
|
|
|
465 |
|
|
|
466 |
List<Ticket> tickets = crmServiceClient.getTickets(searchFilter);
|
| 3422 |
mandeep.dh |
467 |
if (tickets != null) {
|
| 3090 |
mandeep.dh |
468 |
for (Ticket ticket : tickets) {
|
|
|
469 |
ticketCount++;
|
| 3106 |
mandeep.dh |
470 |
if (!ticket.getStatus().equals(TicketStatus.CLOSED)) {
|
| 3090 |
mandeep.dh |
471 |
openTicketCount++;
|
| 3422 |
mandeep.dh |
472 |
} else {
|
| 3090 |
mandeep.dh |
473 |
closedTicketCount++;
|
|
|
474 |
}
|
|
|
475 |
}
|
|
|
476 |
}
|
|
|
477 |
}
|
| 7572 |
anupam.sin |
478 |
|
|
|
479 |
public String getSourceName(long source) {
|
|
|
480 |
return OrderSource.findByValue((int) source).toString();
|
|
|
481 |
}
|
|
|
482 |
|
| 3090 |
mandeep.dh |
483 |
|
| 3397 |
mandeep.dh |
484 |
public String getToday() {
|
|
|
485 |
return SDF.format(new Date());
|
|
|
486 |
}
|
|
|
487 |
|
|
|
488 |
public String getYesterday() {
|
|
|
489 |
Calendar calendar = Calendar.getInstance();
|
|
|
490 |
calendar.setTime(new Date());
|
|
|
491 |
calendar.add(Calendar.DAY_OF_MONTH, -1);
|
|
|
492 |
return SDF.format(calendar.getTime());
|
|
|
493 |
}
|
|
|
494 |
|
|
|
495 |
public List<Agent> getAllAgents() {
|
|
|
496 |
return CRMAuthorizingRealm.getAgents();
|
|
|
497 |
}
|
|
|
498 |
|
| 4142 |
mandeep.dh |
499 |
public ActivityType[] getActivityTypes() {
|
|
|
500 |
return ActivityType.values();
|
|
|
501 |
}
|
|
|
502 |
|
|
|
503 |
public TicketCategory[] getTicketCategories() {
|
|
|
504 |
return TicketCategory.values();
|
|
|
505 |
}
|
|
|
506 |
|
| 2724 |
vikas |
507 |
public void setEmail(String email) {
|
|
|
508 |
this.email = email;
|
|
|
509 |
}
|
|
|
510 |
|
|
|
511 |
public String getEmail() {
|
|
|
512 |
return email;
|
|
|
513 |
}
|
|
|
514 |
|
|
|
515 |
public void setOrderId(String orderId) {
|
| 3390 |
mandeep.dh |
516 |
this.orderId = orderId;
|
| 2724 |
vikas |
517 |
}
|
|
|
518 |
|
| 3390 |
mandeep.dh |
519 |
public String getOrderId() {
|
| 2724 |
vikas |
520 |
return orderId;
|
|
|
521 |
}
|
| 3422 |
mandeep.dh |
522 |
|
| 2724 |
vikas |
523 |
public User getUser() {
|
|
|
524 |
return user;
|
|
|
525 |
}
|
| 3422 |
mandeep.dh |
526 |
|
| 2724 |
vikas |
527 |
public long getOrderCount() {
|
|
|
528 |
return orderCount;
|
|
|
529 |
}
|
| 3422 |
mandeep.dh |
530 |
|
| 2724 |
vikas |
531 |
public long getCompletedOrderCount() {
|
|
|
532 |
return completedOrderCount;
|
|
|
533 |
}
|
| 3422 |
mandeep.dh |
534 |
|
| 2724 |
vikas |
535 |
public long getOpenOrderCount() {
|
|
|
536 |
return openOrderCount;
|
|
|
537 |
}
|
| 3422 |
mandeep.dh |
538 |
|
| 2724 |
vikas |
539 |
public long getFailedOrderCount() {
|
|
|
540 |
return failedOrderCount;
|
|
|
541 |
}
|
| 3422 |
mandeep.dh |
542 |
|
| 3499 |
mandeep.dh |
543 |
public int getCartItems() {
|
|
|
544 |
return (int)cartItems;
|
| 2724 |
vikas |
545 |
}
|
| 3422 |
mandeep.dh |
546 |
|
| 2724 |
vikas |
547 |
public String getLastLogin() {
|
|
|
548 |
return lastLogin;
|
|
|
549 |
}
|
|
|
550 |
|
|
|
551 |
public String getCouponCode() {
|
|
|
552 |
return couponCode;
|
|
|
553 |
}
|
| 2830 |
vikas |
554 |
|
|
|
555 |
public long getUserCommunicationCount() {
|
|
|
556 |
return userCommunicationCount;
|
|
|
557 |
}
|
| 3090 |
mandeep.dh |
558 |
|
|
|
559 |
public long getTicketCount() {
|
|
|
560 |
return ticketCount;
|
|
|
561 |
}
|
|
|
562 |
|
|
|
563 |
public long getOpenTicketCount() {
|
|
|
564 |
return openTicketCount;
|
|
|
565 |
}
|
|
|
566 |
|
|
|
567 |
public long getClosedTicketCount() {
|
|
|
568 |
return closedTicketCount;
|
|
|
569 |
}
|
|
|
570 |
|
|
|
571 |
public void setMobileNumber(String mobileNumber) {
|
|
|
572 |
this.mobileNumber = mobileNumber;
|
|
|
573 |
}
|
| 3096 |
mandeep.dh |
574 |
|
|
|
575 |
public String getTicketId() {
|
|
|
576 |
return ticketId;
|
|
|
577 |
}
|
|
|
578 |
|
|
|
579 |
public void setTicketId(String ticketId) {
|
|
|
580 |
this.ticketId = ticketId;
|
|
|
581 |
}
|
| 3106 |
mandeep.dh |
582 |
|
|
|
583 |
public long getAgentOpenTicketCount() {
|
|
|
584 |
return agentOpenTicketCount;
|
|
|
585 |
}
|
|
|
586 |
|
|
|
587 |
public long getUnassignedTicketCount() {
|
|
|
588 |
return unassignedTicketCount;
|
|
|
589 |
}
|
|
|
590 |
|
|
|
591 |
public long getActivityCount() {
|
|
|
592 |
return activityCount;
|
|
|
593 |
}
|
|
|
594 |
|
|
|
595 |
public void setActivityCount(long activityCount) {
|
|
|
596 |
this.activityCount = activityCount;
|
|
|
597 |
}
|
| 3339 |
mandeep.dh |
598 |
|
|
|
599 |
public long getCustomerActivityCount() {
|
|
|
600 |
return customerActivityCount;
|
|
|
601 |
}
|
|
|
602 |
|
|
|
603 |
public void setCustomerActivityCount(long customerActivityCount) {
|
|
|
604 |
this.customerActivityCount = customerActivityCount;
|
|
|
605 |
}
|
| 3499 |
mandeep.dh |
606 |
|
|
|
607 |
public long getPendingCodVerificationCount() {
|
|
|
608 |
return pendingCodVerificationCount;
|
|
|
609 |
}
|
|
|
610 |
|
|
|
611 |
public void setPendingCodVerificationCount(long pendingCodVerificationCount) {
|
|
|
612 |
this.pendingCodVerificationCount = pendingCodVerificationCount;
|
|
|
613 |
}
|
| 3578 |
mandeep.dh |
614 |
|
|
|
615 |
public long getOpenFailedPaymentsTicketCount() {
|
|
|
616 |
return openFailedPaymentsTicketCount;
|
|
|
617 |
}
|
|
|
618 |
|
|
|
619 |
public void setOpenFailedPaymentsTicketCount(long openFailedPaymentsTicketCount) {
|
|
|
620 |
this.openFailedPaymentsTicketCount = openFailedPaymentsTicketCount;
|
|
|
621 |
}
|
| 3711 |
mandeep.dh |
622 |
|
|
|
623 |
public long getAgentUnreadActivityCount() {
|
|
|
624 |
return agentUnreadActivityCount;
|
|
|
625 |
}
|
|
|
626 |
|
|
|
627 |
public void setAgentUnreadActivityCount(long agentUnreadActivityCount) {
|
|
|
628 |
this.agentUnreadActivityCount = agentUnreadActivityCount;
|
|
|
629 |
}
|
| 4008 |
mandeep.dh |
630 |
|
|
|
631 |
public long getOpenDelayedDeliveryTicketCount() {
|
|
|
632 |
return openDelayedDeliveryTicketCount;
|
|
|
633 |
}
|
|
|
634 |
|
|
|
635 |
public void setOpenDelayedDeliveryTicketCount(
|
|
|
636 |
long openDelayedDeliveryTicketCount) {
|
|
|
637 |
this.openDelayedDeliveryTicketCount = openDelayedDeliveryTicketCount;
|
|
|
638 |
}
|
| 4267 |
anupam.sin |
639 |
|
|
|
640 |
public long getOpenFlaggedPaymentsTicketCount() {
|
|
|
641 |
return openFlaggedPaymentsTicketCount;
|
|
|
642 |
}
|
|
|
643 |
|
|
|
644 |
public void setOpenFlaggedPaymentsTicketCount(
|
|
|
645 |
long openFlaggedPaymentsTicketCount) {
|
|
|
646 |
this.openFlaggedPaymentsTicketCount = openFlaggedPaymentsTicketCount;
|
|
|
647 |
}
|
| 4490 |
anupam.sin |
648 |
|
|
|
649 |
public long getDoaRequestCount() {
|
|
|
650 |
return DoaRequestCount;
|
|
|
651 |
}
|
|
|
652 |
|
|
|
653 |
public void setDoaRequestCount(long DoaRequestCount) {
|
|
|
654 |
this.DoaRequestCount = DoaRequestCount;
|
|
|
655 |
}
|
|
|
656 |
|
|
|
657 |
public long getReturnRequestCount() {
|
|
|
658 |
return ReturnRequestCount;
|
|
|
659 |
}
|
|
|
660 |
|
|
|
661 |
public void setReturnRequestCount(long returnRequestCount) {
|
|
|
662 |
ReturnRequestCount = returnRequestCount;
|
|
|
663 |
}
|
| 4751 |
anupam.sin |
664 |
|
|
|
665 |
public long getOrderCancellationCount() {
|
|
|
666 |
return orderCancellationCount;
|
|
|
667 |
}
|
|
|
668 |
|
|
|
669 |
public void setOrderCancellationCount(long orderCancellationCount) {
|
|
|
670 |
this.orderCancellationCount = orderCancellationCount;
|
|
|
671 |
}
|
| 5858 |
amar.kumar |
672 |
|
|
|
673 |
|
|
|
674 |
public long getOpenStorePickupTicketCount() {
|
|
|
675 |
return openStorePickupTicketCount;
|
|
|
676 |
}
|
|
|
677 |
|
|
|
678 |
public void setOpenStorePickupTicketCount(long openStorePickupTicketCount) {
|
|
|
679 |
this.openStorePickupTicketCount = openStorePickupTicketCount;
|
|
|
680 |
}
|
| 7372 |
kshitij.so |
681 |
|
|
|
682 |
public long getLowInventoryTicketsCount() {
|
|
|
683 |
return lowInventoryTicketsCount;
|
|
|
684 |
}
|
| 5858 |
amar.kumar |
685 |
|
| 7372 |
kshitij.so |
686 |
public void setLowInventoryTicketsCount(long lowInventoryTicketsCount) {
|
|
|
687 |
this.lowInventoryTicketsCount = lowInventoryTicketsCount;
|
|
|
688 |
}
|
| 7615 |
manish.sha |
689 |
|
|
|
690 |
//Start:- Added By Manish Sharma for Creating a new Ticket: Category- RTO Refund on 21-Jun-2013
|
|
|
691 |
public long getRTORefundsCount(){
|
|
|
692 |
return RtoRefundsTicketCount;
|
|
|
693 |
}
|
| 7372 |
kshitij.so |
694 |
|
| 7615 |
manish.sha |
695 |
public void setRTORefundsCount(long RtoRefundsTicketCount) {
|
|
|
696 |
this.RtoRefundsTicketCount = RtoRefundsTicketCount;
|
|
|
697 |
}
|
|
|
698 |
//End:- Added By Manish Sharma for Creating a new Ticket: Category- RTO Refund on 21-Jun-2013
|
|
|
699 |
|
| 6111 |
anupam.sin |
700 |
public String getDeviceNumber() {
|
|
|
701 |
return deviceNumber;
|
|
|
702 |
}
|
|
|
703 |
|
|
|
704 |
public void setDeviceNumber(String deviceNumber) {
|
|
|
705 |
this.deviceNumber = deviceNumber;
|
|
|
706 |
}
|
|
|
707 |
|
|
|
708 |
public long getFailedRechargeCount() {
|
|
|
709 |
return failedRechargeCount;
|
|
|
710 |
}
|
|
|
711 |
|
|
|
712 |
public void setFailedRechargeCount(long failedRechargeCount) {
|
|
|
713 |
this.failedRechargeCount = failedRechargeCount;
|
|
|
714 |
}
|
|
|
715 |
|
|
|
716 |
public long getSuccessfulRechargeCount() {
|
|
|
717 |
return successfulRechargeCount;
|
|
|
718 |
}
|
|
|
719 |
|
|
|
720 |
public void setSuccessfulRechargeCount(long successfulRechargeCount) {
|
|
|
721 |
this.successfulRechargeCount = successfulRechargeCount;
|
|
|
722 |
}
|
|
|
723 |
|
|
|
724 |
public long getRechargeOrderCount() {
|
|
|
725 |
return rechargeOrderCount;
|
|
|
726 |
}
|
|
|
727 |
|
|
|
728 |
public void setRechargeOrderCount(long rechargeOrderCount) {
|
|
|
729 |
this.rechargeOrderCount = rechargeOrderCount;
|
|
|
730 |
}
|
|
|
731 |
|
|
|
732 |
public String getRechargeOrderId() {
|
|
|
733 |
return rechargeOrderId;
|
|
|
734 |
}
|
|
|
735 |
|
|
|
736 |
public void setRechargeOrderId(String rechargeOrderId) {
|
|
|
737 |
this.rechargeOrderId = rechargeOrderId;
|
|
|
738 |
}
|
|
|
739 |
|
| 7387 |
manish.sha |
740 |
//Start:- Added by Manish Sharma for Displaying wallet amount at user page on June-05-2013
|
|
|
741 |
public UserWallet getWallet() {
|
|
|
742 |
return wallet;
|
|
|
743 |
}
|
|
|
744 |
|
|
|
745 |
public void setWallet(UserWallet wallet) {
|
|
|
746 |
this.wallet = wallet;
|
|
|
747 |
}
|
|
|
748 |
|
|
|
749 |
public long getWalletAmount() {
|
|
|
750 |
return walletAmount;
|
|
|
751 |
}
|
|
|
752 |
|
|
|
753 |
public void setWalletAmount(long walletAmount) {
|
|
|
754 |
this.walletAmount = walletAmount;
|
|
|
755 |
}
|
|
|
756 |
//End:- Added by Manish Sharma for Displaying wallet amount at user page on June-05-2013
|
|
|
757 |
|
| 7572 |
anupam.sin |
758 |
public void setOrders(List<Order> orders) {
|
|
|
759 |
this.orders = orders;
|
|
|
760 |
}
|
|
|
761 |
|
|
|
762 |
public List<Order> getOrders() {
|
|
|
763 |
return orders;
|
|
|
764 |
}
|
|
|
765 |
|
|
|
766 |
public void setAmazonOrderItemCode(String amazonOrderItemCode) {
|
|
|
767 |
this.amazonOrderItemCode = amazonOrderItemCode;
|
|
|
768 |
}
|
|
|
769 |
|
|
|
770 |
public String getAmazonOrderItemCode() {
|
|
|
771 |
return amazonOrderItemCode;
|
|
|
772 |
}
|
|
|
773 |
|
|
|
774 |
public void setAmazonId(String amazonId) {
|
|
|
775 |
this.amazonId = amazonId;
|
|
|
776 |
}
|
|
|
777 |
|
|
|
778 |
public String getAmazonId() {
|
|
|
779 |
return amazonId;
|
|
|
780 |
}
|
|
|
781 |
|
| 9166 |
manish.sha |
782 |
public List<RechargeOrder> getRechargeOrders() {
|
|
|
783 |
return rechargeOrders;
|
|
|
784 |
}
|
|
|
785 |
|
|
|
786 |
public void setRechargeOrders(List<RechargeOrder> rechargeOrders) {
|
|
|
787 |
this.rechargeOrders = rechargeOrders;
|
|
|
788 |
}
|
|
|
789 |
|
| 11890 |
kshitij.so |
790 |
public void setBulkOrderEnquiryCount(long bulkOrderEnquiryCount) {
|
|
|
791 |
this.bulkOrderEnquiryCount = bulkOrderEnquiryCount;
|
|
|
792 |
}
|
|
|
793 |
|
|
|
794 |
public long getBulkOrderEnquiryCount() {
|
|
|
795 |
return bulkOrderEnquiryCount;
|
|
|
796 |
}
|
|
|
797 |
|
| 11895 |
kshitij.so |
798 |
|
| 13324 |
manish.sha |
799 |
public String getMasterOrderId() {
|
|
|
800 |
return masterOrderId;
|
|
|
801 |
}
|
|
|
802 |
|
|
|
803 |
public void setMasterOrderId(String masterOrderId) {
|
|
|
804 |
this.masterOrderId = masterOrderId;
|
|
|
805 |
}
|
|
|
806 |
|
| 14882 |
manish.sha |
807 |
public long getProfitMandiTicketCount() {
|
|
|
808 |
return profitMandiTicketCount;
|
|
|
809 |
}
|
|
|
810 |
|
|
|
811 |
public void setProfitMandiTicketCount(long profitMandiTicketCount) {
|
|
|
812 |
this.profitMandiTicketCount = profitMandiTicketCount;
|
|
|
813 |
}
|
| 2724 |
vikas |
814 |
}
|