|
|
@@ -155,7 +155,7 @@ public class CompanyUserController extends BaseController
|
|
|
* 更换会员归属销售-企微的
|
|
|
* @return
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('company:companyUser:change')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('company:companyUser:changeQw')")
|
|
|
@Log(title = "更换会员归属-企微", businessType = BusinessType.OTHER)
|
|
|
@PostMapping("/changeCompanyUserQw")
|
|
|
public AjaxResult changeCompanyUserQw(@RequestBody List<UserProjectDTO> users, @RequestParam Long companyUserId, @RequestParam Long companyId)
|
|
|
@@ -163,6 +163,28 @@ public class CompanyUserController extends BaseController
|
|
|
return toAjax(companyUserService.changeCompanyUserQw(users, companyUserId, companyId));
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 允许客户能看其他销售课-开关
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PreAuthorize("@ss.hasPermi('company:companyUser:isAllView')")
|
|
|
+ @Log(title = "允许客户能看其他销售课开关", businessType = BusinessType.UPDATE)
|
|
|
+ @GetMapping("/changeCompanyUserAllView/{allViewNum}")
|
|
|
+ public AjaxResult changeCompanyUserAllView(@PathVariable Integer allViewNum)
|
|
|
+ {
|
|
|
+ return toAjax(companyUserService.changeCompanyUserAllView(allViewNum));
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取是否允许客户能看其他销售课-开关
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/getIsAllowedEveryoneView")
|
|
|
+ public Integer getIsAllowedEveryoneView()
|
|
|
+ {
|
|
|
+ return companyUserService.getIsAllowedEveryoneView();
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 根据登录的用户公司获取所有的销售
|
|
|
* @return
|