| Line 17... |
Line 17... |
| 17 |
import com.spice.profitmandi.common.util.Utils;
|
17 |
import com.spice.profitmandi.common.util.Utils;
|
| 18 |
import com.spice.profitmandi.dao.entity.auth.AuthUser;
|
18 |
import com.spice.profitmandi.dao.entity.auth.AuthUser;
|
| 19 |
import com.spice.profitmandi.dao.entity.cs.Activity;
|
19 |
import com.spice.profitmandi.dao.entity.cs.Activity;
|
| 20 |
import com.spice.profitmandi.dao.entity.cs.PartnerRegion;
|
20 |
import com.spice.profitmandi.dao.entity.cs.PartnerRegion;
|
| 21 |
import com.spice.profitmandi.dao.entity.cs.Position;
|
21 |
import com.spice.profitmandi.dao.entity.cs.Position;
|
| - |
|
22 |
import com.spice.profitmandi.dao.entity.cs.Region;
|
| 22 |
import com.spice.profitmandi.dao.entity.cs.Ticket;
|
23 |
import com.spice.profitmandi.dao.entity.cs.Ticket;
|
| 23 |
import com.spice.profitmandi.dao.entity.cs.TicketCategory;
|
24 |
import com.spice.profitmandi.dao.entity.cs.TicketCategory;
|
| 24 |
import com.spice.profitmandi.dao.entity.cs.TicketSubCategory;
|
25 |
import com.spice.profitmandi.dao.entity.cs.TicketSubCategory;
|
| 25 |
import com.spice.profitmandi.dao.entity.fofo.ActivityType;
|
26 |
import com.spice.profitmandi.dao.entity.fofo.ActivityType;
|
| 26 |
import com.spice.profitmandi.dao.enumuration.cs.EscalationType;
|
27 |
import com.spice.profitmandi.dao.enumuration.cs.EscalationType;
|
| Line 59... |
Line 60... |
| 59 |
@Autowired
|
60 |
@Autowired
|
| 60 |
private AuthRepository authRepository;
|
61 |
private AuthRepository authRepository;
|
| 61 |
|
62 |
|
| 62 |
@Autowired
|
63 |
@Autowired
|
| 63 |
private RetailerService retailerService;
|
64 |
private RetailerService retailerService;
|
| - |
|
65 |
|
| - |
|
66 |
@Autowired
|
| - |
|
67 |
private RegionRepository regionRepository;
|
| 64 |
|
68 |
|
| 65 |
@Override
|
69 |
@Override
|
| 66 |
public void createTicket(int fofoId, int categoryId, int subcategoryId, String message)
|
70 |
public void createTicket(int fofoId, int categoryId, int subcategoryId, String message)
|
| 67 |
throws ProfitMandiBusinessException {
|
71 |
throws ProfitMandiBusinessException {
|
| 68 |
|
72 |
|
| Line 238... |
Line 242... |
| 238 |
ticket.setL2AuthUser(position.getAuthUserId());
|
242 |
ticket.setL2AuthUser(position.getAuthUserId());
|
| 239 |
}
|
243 |
}
|
| 240 |
}
|
244 |
}
|
| 241 |
return ticket;
|
245 |
return ticket;
|
| 242 |
}
|
246 |
}
|
| - |
|
247 |
|
| - |
|
248 |
@Override
|
| - |
|
249 |
public Map<Integer, AuthUser> getAuthUserIdAndAuthUserMapUsingPositions(List<Position> positions) {
|
| - |
|
250 |
Map<Integer, AuthUser> authUserIdAndAuthUserMap = new HashMap<>();
|
| - |
|
251 |
for (Position position : positions) {
|
| - |
|
252 |
AuthUser authUser = authRepository.selectById(position.getAuthUserId());
|
| - |
|
253 |
authUserIdAndAuthUserMap.put(position.getAuthUserId(), authUser);
|
| - |
|
254 |
}
|
| - |
|
255 |
return authUserIdAndAuthUserMap;
|
| - |
|
256 |
}
|
| - |
|
257 |
|
| - |
|
258 |
@Override
|
| - |
|
259 |
public Map<Integer, TicketCategory> getCategoryIdAndCategoryUsingPositions(List<Position> positions) {
|
| - |
|
260 |
Map<Integer, TicketCategory> categoryIdAndCategoryMap = new HashMap<>();
|
| - |
|
261 |
for (Position position : positions) {
|
| - |
|
262 |
TicketCategory ticketCategory=ticketCategoryRepository.selectById(position.getCategoryId());
|
| - |
|
263 |
categoryIdAndCategoryMap.put(position.getCategoryId(), ticketCategory);
|
| - |
|
264 |
}
|
| - |
|
265 |
return categoryIdAndCategoryMap;
|
| - |
|
266 |
}
|
| 243 |
|
267 |
|
| - |
|
268 |
@Override
|
| - |
|
269 |
public Map<Integer, Region> getRegionIdAndRegionMap(List<Position> positions) {
|
| - |
|
270 |
Map<Integer, Region> regionIdAndRegionMap = new HashMap<>();
|
| - |
|
271 |
for (Position position : positions) {
|
| - |
|
272 |
Region region=regionRepository.selectById(position.getRegionId());
|
| - |
|
273 |
regionIdAndRegionMap.put(position.getRegionId(), region);
|
| - |
|
274 |
}
|
| - |
|
275 |
return regionIdAndRegionMap;
|
| - |
|
276 |
}
|
| - |
|
277 |
|
| 244 |
}
|
278 |
}
|