|
|
@@ -1,27 +1,23 @@
|
|
|
package com.dgtly.web.controller.system;
|
|
|
|
|
|
-import java.util.ArrayList;
|
|
|
-import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
+
|
|
|
|
|
|
import com.dgtly.common.core.domain.Ztree;
|
|
|
import com.dgtly.common.exception.BusinessException;
|
|
|
import com.dgtly.common.utils.ShiroSaltUtil;
|
|
|
import com.dgtly.common.utils.security.EncryptPassWordClass;
|
|
|
+import com.dgtly.sync.service.AnalysisDiyCustomerComponent;
|
|
|
import com.dgtly.system.domain.*;
|
|
|
import com.dgtly.system.service.*;
|
|
|
+import io.lettuce.core.dynamic.annotation.Param;
|
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.ui.ModelMap;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
import com.dgtly.common.annotation.Log;
|
|
|
import com.dgtly.common.constant.UserConstants;
|
|
|
@@ -54,6 +50,9 @@ public class SysUserController extends BaseController
|
|
|
@Autowired
|
|
|
private ISysUserOrderAuthorService sysUserOrderAuthorService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private AnalysisDiyCustomerComponent analysisDiyCustomerComponent;
|
|
|
+
|
|
|
@Autowired
|
|
|
private ISysPostService postService;
|
|
|
@Autowired
|
|
|
@@ -139,7 +138,20 @@ public class SysUserController extends BaseController
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 新增用户
|
|
|
+ * 获取经销商负责人
|
|
|
+ * @param depCode
|
|
|
+ * @param userNo
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/getManagerList")
|
|
|
+ public AjaxResult getManagerList(@RequestParam(value = "depCode") String depCode , @RequestParam(value = "userNo") String userNo)
|
|
|
+ {
|
|
|
+ String rusult = analysisDiyCustomerComponent.getManagerList(depCode,userNo);
|
|
|
+ return new AjaxResult(00000, rusult);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 新增获取经销商负责人
|
|
|
*/
|
|
|
@GetMapping("/add")
|
|
|
public String add(ModelMap mmap)
|