| Line 75... |
Line 75... |
| 75 |
|
75 |
|
| 76 |
|
76 |
|
| 77 |
@GetMapping(value = "/createAuthUser")
|
77 |
@GetMapping(value = "/createAuthUser")
|
| 78 |
public String getcreateAuthUser(HttpServletRequest request,
|
78 |
public String getcreateAuthUser(HttpServletRequest request,
|
| 79 |
@RequestParam(name = "offset", defaultValue = "0") int offset,
|
79 |
@RequestParam(name = "offset", defaultValue = "0") int offset,
|
| 80 |
@RequestParam(name = "limit", defaultValue = "10") int limit, Model model)
|
80 |
@RequestParam(name = "limit", defaultValue = "0") int limit, Model model)
|
| 81 |
throws ProfitMandiBusinessException {
|
81 |
throws ProfitMandiBusinessException {
|
| 82 |
// List<AuthUser> authUsers = authRepository.selectAll(offset, limit);
|
82 |
// List<AuthUser> authUsers = authRepository.selectAll(offset, limit);
|
| 83 |
List<AuthUser> activeAuthUsers = authRepository.selectAllActiveUser();
|
83 |
List<AuthUser> activeAuthUsers = authRepository.selectAllActiveUser();
|
| 84 |
List<AuthUser> authUsers = activeAuthUsers.stream().skip(offset).limit(limit).collect(Collectors.toList());
|
84 |
//List<AuthUser> authUsers = activeAuthUsers.stream().skip(offset).limit(limit).collect(Collectors.toList());
|
| - |
|
85 |
List<AuthUser> authUsers = activeAuthUsers.stream().skip(offset).collect(Collectors.toList());
|
| 85 |
|
86 |
|
| 86 |
Map<Integer, AuthUser> userManagerMap = activeAuthUsers.stream()
|
87 |
Map<Integer, AuthUser> userManagerMap = activeAuthUsers.stream()
|
| 87 |
.filter(x -> x.getManagerId() != 0)
|
88 |
.filter(x -> x.getManagerId() != 0)
|
| 88 |
.collect(Collectors.toMap(x -> x.getId(), x -> x));
|
89 |
.collect(Collectors.toMap(x -> x.getId(), x -> x));
|
| 89 |
long size = activeAuthUsers.size();
|
90 |
long size = activeAuthUsers.size();
|
| Line 133... |
Line 134... |
| 133 |
@RequestParam(name = ProfitMandiConstants.MOBILE_NUMBER, defaultValue = "") String mobileNumber,
|
134 |
@RequestParam(name = ProfitMandiConstants.MOBILE_NUMBER, defaultValue = "") String mobileNumber,
|
| 134 |
@RequestParam(name = ProfitMandiConstants.GMAIL_ID, defaultValue = "") String gmailId,
|
135 |
@RequestParam(name = ProfitMandiConstants.GMAIL_ID, defaultValue = "") String gmailId,
|
| 135 |
@RequestParam(name = "employeeCode", defaultValue = "") String employeeCode,
|
136 |
@RequestParam(name = "employeeCode", defaultValue = "") String employeeCode,
|
| 136 |
@RequestParam(name = "imageUrl", defaultValue = "") String imageUrl,
|
137 |
@RequestParam(name = "imageUrl", defaultValue = "") String imageUrl,
|
| 137 |
@RequestParam(name = "offset", defaultValue = "0") int offset,
|
138 |
@RequestParam(name = "offset", defaultValue = "0") int offset,
|
| 138 |
@RequestParam(name = "limit", defaultValue = "10") int limit, Model model)
|
139 |
@RequestParam(name = "limit", defaultValue = "0") int limit, Model model)
|
| 139 |
throws ProfitMandiBusinessException {
|
140 |
throws ProfitMandiBusinessException {
|
| 140 |
AuthUser authUser = null;
|
141 |
AuthUser authUser = null;
|
| 141 |
User user = null;
|
142 |
User user = null;
|
| 142 |
List<Role> roles = roleRepository.selectAll();
|
143 |
List<Role> roles = roleRepository.selectAll();
|
| 143 |
try {
|
144 |
try {
|