|
@@ -480,14 +480,16 @@ public class AdminCustomerController {
|
|
@RequiresPermissions("customer:select:customer")
|
|
@RequiresPermissions("customer:select:customer")
|
|
@RequestMapping("/select_customer_list")
|
|
@RequestMapping("/select_customer_list")
|
|
public ModelAndView selectCustomerList(HttpServletRequest request, CustomerInfo customerInfo,
|
|
public ModelAndView selectCustomerList(HttpServletRequest request, CustomerInfo customerInfo,
|
|
|
|
+ @RequestParam(value = "isFirst", defaultValue = "1", required = false) Integer isFirst,
|
|
@RequestParam(value = "pageSize", defaultValue = "10", required = false) Integer pageSize,
|
|
@RequestParam(value = "pageSize", defaultValue = "10", required = false) Integer pageSize,
|
|
@RequestParam(value = "pageNO", defaultValue = "1", required = false) Integer pageNO,
|
|
@RequestParam(value = "pageNO", defaultValue = "1", required = false) Integer pageNO,
|
|
@RequestParam(value = "totalNum", defaultValue = "0", required = false) Integer totalNum) throws Exception {
|
|
@RequestParam(value = "totalNum", defaultValue = "0", required = false) Integer totalNum) throws Exception {
|
|
ModelAndView mv = new ModelAndView("cm/customer/custome_list");
|
|
ModelAndView mv = new ModelAndView("cm/customer/custome_list");
|
|
- if(customerInfo.getAdminId() == null){
|
|
|
|
|
|
+ if(customerInfo.getAdminId() == null && isFirst == 1){
|
|
//获取登录员工id
|
|
//获取登录员工id
|
|
Integer adminId = AdminUtils.getLoginAdminId();
|
|
Integer adminId = AdminUtils.getLoginAdminId();
|
|
customerInfo.setAdminId(adminId);
|
|
customerInfo.setAdminId(adminId);
|
|
|
|
+ isFirst = 2;
|
|
}
|
|
}
|
|
PagedResult<CustomerInfo> pagedResult = customerService.listCustomer(pageNO, pageSize, customerInfo, totalNum == 0);
|
|
PagedResult<CustomerInfo> pagedResult = customerService.listCustomer(pageNO, pageSize, customerInfo, totalNum == 0);
|
|
if (totalNum != 0) {
|
|
if (totalNum != 0) {
|
|
@@ -509,6 +511,7 @@ public class AdminCustomerController {
|
|
mv.addObject("typeList", typeList);
|
|
mv.addObject("typeList", typeList);
|
|
mv.addObject("complaintTypeList", complaintTypeList);
|
|
mv.addObject("complaintTypeList", complaintTypeList);
|
|
mv.addObject("adminList", adminList);
|
|
mv.addObject("adminList", adminList);
|
|
|
|
+ mv.addObject("isFirst", isFirst);
|
|
customerInfo.setVisit(null);
|
|
customerInfo.setVisit(null);
|
|
customerInfo.setCustomerCommon(null);
|
|
customerInfo.setCustomerCommon(null);
|
|
customerInfo.setComplaintDetectList(null);
|
|
customerInfo.setComplaintDetectList(null);
|