| Line 2... |
Line 2... |
| 2 |
|
2 |
|
| 3 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
3 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
| 4 |
import com.spice.profitmandi.common.model.CustomRetailer;
|
4 |
import com.spice.profitmandi.common.model.CustomRetailer;
|
| 5 |
import com.spice.profitmandi.common.util.Utils;
|
5 |
import com.spice.profitmandi.common.util.Utils;
|
| 6 |
import com.spice.profitmandi.dao.entity.auth.AuthUser;
|
6 |
import com.spice.profitmandi.dao.entity.auth.AuthUser;
|
| 7 |
import com.spice.profitmandi.dao.entity.catalog.Category;
|
- |
|
| 8 |
import com.spice.profitmandi.dao.entity.cs.*;
|
7 |
import com.spice.profitmandi.dao.entity.cs.*;
|
| 9 |
import com.spice.profitmandi.dao.entity.dtr.Document;
|
8 |
import com.spice.profitmandi.dao.entity.dtr.Document;
|
| 10 |
import com.spice.profitmandi.dao.entity.fofo.ActivityType;
|
9 |
import com.spice.profitmandi.dao.entity.fofo.ActivityType;
|
| 11 |
import com.spice.profitmandi.dao.enumuration.cs.EscalationType;
|
10 |
import com.spice.profitmandi.dao.enumuration.cs.EscalationType;
|
| 12 |
import com.spice.profitmandi.dao.enumuration.cs.TicketStatus;
|
11 |
import com.spice.profitmandi.dao.enumuration.cs.TicketStatus;
|
| Line 18... |
Line 17... |
| 18 |
import com.spice.profitmandi.service.authentication.RoleManager;
|
17 |
import com.spice.profitmandi.service.authentication.RoleManager;
|
| 19 |
import com.spice.profitmandi.service.user.RetailerService;
|
18 |
import com.spice.profitmandi.service.user.RetailerService;
|
| 20 |
import com.spice.profitmandi.web.model.LoginDetails;
|
19 |
import com.spice.profitmandi.web.model.LoginDetails;
|
| 21 |
import com.spice.profitmandi.web.util.CookiesProcessor;
|
20 |
import com.spice.profitmandi.web.util.CookiesProcessor;
|
| 22 |
import com.spice.profitmandi.web.util.MVCResponseSender;
|
21 |
import com.spice.profitmandi.web.util.MVCResponseSender;
|
| 23 |
|
- |
|
| 24 |
import org.apache.commons.collections.map.HashedMap;
|
- |
|
| 25 |
import org.apache.logging.log4j.LogManager;
|
22 |
import org.apache.logging.log4j.LogManager;
|
| 26 |
import org.apache.logging.log4j.Logger;
|
23 |
import org.apache.logging.log4j.Logger;
|
| 27 |
import org.springframework.beans.factory.annotation.Autowired;
|
24 |
import org.springframework.beans.factory.annotation.Autowired;
|
| 28 |
import org.springframework.mail.javamail.JavaMailSender;
|
25 |
import org.springframework.mail.javamail.JavaMailSender;
|
| 29 |
import org.springframework.stereotype.Controller;
|
26 |
import org.springframework.stereotype.Controller;
|
| Line 364... |
Line 361... |
| 364 |
return "create-ticket";
|
361 |
return "create-ticket";
|
| 365 |
}
|
362 |
}
|
| 366 |
|
363 |
|
| 367 |
@GetMapping(value = "/cs/getSubCategoriesByCategoryId")
|
364 |
@GetMapping(value = "/cs/getSubCategoriesByCategoryId")
|
| 368 |
public String getSubCategoriesByCategoryId(HttpServletRequest request, @RequestParam(name = "categoryId", defaultValue = "0") int categoryId, Model model) {
|
365 |
public String getSubCategoriesByCategoryId(HttpServletRequest request, @RequestParam(name = "categoryId", defaultValue = "0") int categoryId, Model model) {
|
| 369 |
List<TicketSubCategory> ticketSubCategories = ticketSubCategoryRepository.selectAll(categoryId);
|
366 |
List<TicketSubCategory> ticketSubCategories = ticketSubCategoryRepository.selectAllVisible(categoryId);
|
| 370 |
LOGGER.info(ticketSubCategories);
|
367 |
LOGGER.info(ticketSubCategories);
|
| 371 |
model.addAttribute("ticketSubCategories", ticketSubCategories);
|
368 |
model.addAttribute("ticketSubCategories", ticketSubCategories);
|
| 372 |
return "ticket-sub-categories";
|
369 |
return "ticket-sub-categories";
|
| 373 |
}
|
370 |
}
|
| 374 |
|
371 |
|