中扬CRM客户关系管理系统
#
luxiaotao1123
2022-11-08 ea85cc2dd034540151074a66192e3198b1303a8c
src/main/java/com/zy/crm/manager/controller/CstmrController.java
@@ -339,5 +339,17 @@
        return R.ok("添加成功");
    }
    @RequestMapping(value = "/cstmr/followers/remove/auth")
    @ManagerAuth
    public R cstmrFollowersRemove(@RequestParam("cstmrId") Long cstmrId,
                                  @RequestParam("userId") Long userId) {
        if (Cools.isEmpty(cstmrId, userId)) {
            return R.parse(BaseRes.PARAM);
        }
        if (!cstmrFollService.delete(new EntityWrapper<CstmrFoll>().eq("cstmr_id", cstmrId).eq("user_id", userId))) {
            throw new CoolException("删除失败,请联系管理员");
        }
        return R.ok("删除成功");
    }
}