Commit 31e8777a7b7a90ad7efd7efc278ff260c8eef776

Authored by YunaiV
1 parent a390fb45

✨ CRM:更新最新代码,支持线索、客户、联系人、商机、合同等功能

yudao-framework/yudao-spring-boot-starter-web/src/main/java/cn/iocoder/yudao/framework/banner/core/BannerApplicationRunner.java
@@ -38,10 +38,6 @@ public class BannerApplicationRunner implements ApplicationRunner { @@ -38,10 +38,6 @@ public class BannerApplicationRunner implements ApplicationRunner {
38 if (isNotPresent("cn.iocoder.yudao.framework.flowable.config.YudaoFlowableConfiguration")) { 38 if (isNotPresent("cn.iocoder.yudao.framework.flowable.config.YudaoFlowableConfiguration")) {
39 System.out.println("[工作流模块 yudao-module-bpm - 已禁用][参考 https://doc.iocoder.cn/bpm/ 开启]"); 39 System.out.println("[工作流模块 yudao-module-bpm - 已禁用][参考 https://doc.iocoder.cn/bpm/ 开启]");
40 } 40 }
41 - // 微信公众号  
42 - if (isNotPresent("cn.iocoder.yudao.module.mp.framework.mp.config.MpConfiguration")) {  
43 - System.out.println("[微信公众号 yudao-module-mp - 已禁用][参考 https://doc.iocoder.cn/mp/build/ 开启]");  
44 - }  
45 // 商城系统 41 // 商城系统
46 if (isNotPresent("cn.iocoder.yudao.module.trade.framework.web.config.TradeWebConfiguration")) { 42 if (isNotPresent("cn.iocoder.yudao.module.trade.framework.web.config.TradeWebConfiguration")) {
47 System.out.println("[商城系统 yudao-module-mall - 已禁用][参考 https://doc.iocoder.cn/mall/build/ 开启]"); 43 System.out.println("[商城系统 yudao-module-mall - 已禁用][参考 https://doc.iocoder.cn/mall/build/ 开启]");
@@ -50,6 +46,14 @@ public class BannerApplicationRunner implements ApplicationRunner { @@ -50,6 +46,14 @@ public class BannerApplicationRunner implements ApplicationRunner {
50 if (isNotPresent("cn.iocoder.yudao.module.erp.framework.web.config.ErpWebConfiguration")) { 46 if (isNotPresent("cn.iocoder.yudao.module.erp.framework.web.config.ErpWebConfiguration")) {
51 System.out.println("[ERP 系统 yudao-module-erp - 已禁用][参考 https://doc.iocoder.cn/erp/build/ 开启]"); 47 System.out.println("[ERP 系统 yudao-module-erp - 已禁用][参考 https://doc.iocoder.cn/erp/build/ 开启]");
52 } 48 }
  49 + // CRM 系统
  50 + if (isNotPresent("cn.iocoder.yudao.module.crm.framework.web.config.CrmWebConfiguration")) {
  51 + System.out.println("[CRM 系统 yudao-module-crm - 已禁用][参考 https://doc.iocoder.cn/crm/build/ 开启]");
  52 + }
  53 + // 微信公众号
  54 + if (isNotPresent("cn.iocoder.yudao.module.mp.framework.mp.config.MpConfiguration")) {
  55 + System.out.println("[微信公众号 yudao-module-mp - 已禁用][参考 https://doc.iocoder.cn/mp/build/ 开启]");
  56 + }
53 // 支付平台 57 // 支付平台
54 if (isNotPresent("cn.iocoder.yudao.module.pay.framework.pay.config.PayConfiguration")) { 58 if (isNotPresent("cn.iocoder.yudao.module.pay.framework.pay.config.PayConfiguration")) {
55 System.out.println("[支付系统 yudao-module-pay - 已禁用][参考 https://doc.iocoder.cn/pay/build/ 开启]"); 59 System.out.println("[支付系统 yudao-module-pay - 已禁用][参考 https://doc.iocoder.cn/pay/build/ 开启]");
yudao-framework/yudao-spring-boot-starter-web/src/main/java/cn/iocoder/yudao/framework/web/core/handler/GlobalExceptionHandler.java
@@ -319,7 +319,13 @@ public class GlobalExceptionHandler { @@ -319,7 +319,13 @@ public class GlobalExceptionHandler {
319 return CommonResult.error(NOT_IMPLEMENTED.getCode(), 319 return CommonResult.error(NOT_IMPLEMENTED.getCode(),
320 "[ERP 系统 yudao-module-erp - 表结构未导入][参考 https://doc.iocoder.cn/erp/build/ 开启]"); 320 "[ERP 系统 yudao-module-erp - 表结构未导入][参考 https://doc.iocoder.cn/erp/build/ 开启]");
321 } 321 }
322 - // 6. 支付平台 322 + // 6. CRM 系统
  323 + if (message.contains("crm_")) {
  324 + log.error("[CRM 系统 yudao-module-crm - 表结构未导入][参考 https://doc.iocoder.cn/crm/build/ 开启]");
  325 + return CommonResult.error(NOT_IMPLEMENTED.getCode(),
  326 + "[CRM 系统 yudao-module-crm - 表结构未导入][参考 https://doc.iocoder.cn/crm/build/ 开启]");
  327 + }
  328 + // 7. 支付平台
323 if (message.contains("pay_")) { 329 if (message.contains("pay_")) {
324 log.error("[支付模块 yudao-module-pay - 表结构未导入][参考 https://doc.iocoder.cn/pay/build/ 开启]"); 330 log.error("[支付模块 yudao-module-pay - 表结构未导入][参考 https://doc.iocoder.cn/pay/build/ 开启]");
325 return CommonResult.error(NOT_IMPLEMENTED.getCode(), 331 return CommonResult.error(NOT_IMPLEMENTED.getCode(),
yudao-server/src/main/java/cn/iocoder/yudao/server/controller/DefaultController.java
@@ -41,6 +41,12 @@ public class DefaultController { @@ -41,6 +41,12 @@ public class DefaultController {
41 "[ERP 模块 yudao-module-erp - 已禁用][参考 https://doc.iocoder.cn/erp/build/ 开启]"); 41 "[ERP 模块 yudao-module-erp - 已禁用][参考 https://doc.iocoder.cn/erp/build/ 开启]");
42 } 42 }
43 43
  44 + @RequestMapping("/admin-api/crm/**")
  45 + public CommonResult<Boolean> crm404() {
  46 + return CommonResult.error(NOT_IMPLEMENTED.getCode(),
  47 + "[CRM 模块 yudao-module-crm - 已禁用][参考 https://doc.iocoder.cn/crm/build/ 开启]");
  48 + }
  49 +
44 @RequestMapping(value = {"/admin-api/report/**"}) 50 @RequestMapping(value = {"/admin-api/report/**"})
45 public CommonResult<Boolean> report404() { 51 public CommonResult<Boolean> report404() {
46 return CommonResult.error(NOT_IMPLEMENTED.getCode(), 52 return CommonResult.error(NOT_IMPLEMENTED.getCode(),