Commit ebd92227641046dfbce00a47ab0c4542979a58ed
1 parent
722223c6
✨ ERP:初始化模块,立个 2024 年的 flag
Showing
16 changed files
with
225 additions
and
9 deletions
pom.xml
| ... | ... | @@ -21,7 +21,8 @@ |
| 21 | 21 | <!-- <module>yudao-module-mp</module>--> |
| 22 | 22 | <!-- <module>yudao-module-pay</module>--> |
| 23 | 23 | <!-- <module>yudao-module-mall</module>--> |
| 24 | -<!-- <module>yudao-module-crm</module>--> | |
| 24 | + <module>yudao-module-crm</module> | |
| 25 | + <module>yudao-module-erp</module> | |
| 25 | 26 | <!-- 示例项目 --> |
| 26 | 27 | <!-- <module>yudao-example</module>--> |
| 27 | 28 | </modules> | ... | ... |
yudao-module-crm/pom.xml
yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/controller/admin/business/CrmBusinessController.java
| ... | ... | @@ -41,7 +41,7 @@ import static cn.iocoder.yudao.framework.operatelog.core.enums.OperateTypeEnum.E |
| 41 | 41 | import static cn.iocoder.yudao.framework.security.core.util.SecurityFrameworkUtils.getLoginUserId; |
| 42 | 42 | import static cn.iocoder.yudao.module.crm.enums.ErrorCodeConstants.CUSTOMER_NOT_EXISTS; |
| 43 | 43 | |
| 44 | -@Tag(name = "管理后台 - 商机") | |
| 44 | +@Tag(name = "管理后台 - CRM 商机") | |
| 45 | 45 | @RestController |
| 46 | 46 | @RequestMapping("/crm/business") |
| 47 | 47 | @Validated | ... | ... |
yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/controller/admin/business/CrmBusinessStatusTypeController.java
| ... | ... | @@ -40,7 +40,7 @@ import java.util.Set; |
| 40 | 40 | import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success; |
| 41 | 41 | import static cn.iocoder.yudao.framework.operatelog.core.enums.OperateTypeEnum.EXPORT; |
| 42 | 42 | |
| 43 | -@Tag(name = "管理后台 - 商机状态类型") | |
| 43 | +@Tag(name = "管理后台 - CRM 商机状态类型") | |
| 44 | 44 | @RestController |
| 45 | 45 | @RequestMapping("/crm/business-status-type") |
| 46 | 46 | @Validated | ... | ... |
yudao-module-erp/pom.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" | |
| 3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| 4 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| 5 | + <parent> | |
| 6 | + <groupId>cn.iocoder.boot</groupId> | |
| 7 | + <artifactId>yudao</artifactId> | |
| 8 | + <version>${revision}</version> | |
| 9 | + </parent> | |
| 10 | + <modules> | |
| 11 | + <module>yudao-module-erp-api</module> | |
| 12 | + <module>yudao-module-erp-biz</module> | |
| 13 | + </modules> | |
| 14 | + <modelVersion>4.0.0</modelVersion> | |
| 15 | + <artifactId>yudao-module-erp</artifactId> | |
| 16 | + <packaging>pom</packaging> | |
| 17 | + | |
| 18 | + <name>${project.artifactId}</name> | |
| 19 | + <description> | |
| 20 | + erp 包下,企业资源管理(Enterprise Resource Planning)。 | |
| 21 | + 例如说:采购、销售、库存、财务、产品等等 | |
| 22 | + </description> | |
| 23 | + | |
| 24 | +</project> | |
| 0 | 25 | \ No newline at end of file | ... | ... |
yudao-module-erp/yudao-module-erp-api/pom.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" | |
| 3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| 4 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| 5 | + <parent> | |
| 6 | + <groupId>cn.iocoder.boot</groupId> | |
| 7 | + <artifactId>yudao-module-erp</artifactId> | |
| 8 | + <version>${revision}</version> | |
| 9 | + </parent> | |
| 10 | + <modelVersion>4.0.0</modelVersion> | |
| 11 | + <artifactId>yudao-module-erp-api</artifactId> | |
| 12 | + <packaging>jar</packaging> | |
| 13 | + | |
| 14 | + <name>${project.artifactId}</name> | |
| 15 | + <description> | |
| 16 | + erp 模块 API,暴露给其它模块调用 | |
| 17 | + </description> | |
| 18 | + | |
| 19 | + <dependencies> | |
| 20 | + <dependency> | |
| 21 | + <groupId>cn.iocoder.boot</groupId> | |
| 22 | + <artifactId>yudao-common</artifactId> | |
| 23 | + </dependency> | |
| 24 | + | |
| 25 | + <!-- 参数校验 --> | |
| 26 | + <dependency> | |
| 27 | + <groupId>org.springframework.boot</groupId> | |
| 28 | + <artifactId>spring-boot-starter-validation</artifactId> | |
| 29 | + <optional>true</optional> | |
| 30 | + </dependency> | |
| 31 | + </dependencies> | |
| 32 | + | |
| 33 | +</project> | |
| 0 | 34 | \ No newline at end of file | ... | ... |
yudao-module-erp/yudao-module-erp-api/src/main/java/cn/iocoder/yudao/module/erp/api/package-info.java
0 → 100644
yudao-module-erp/yudao-module-erp-api/src/main/java/cn/iocoder/yudao/module/erp/enums/DictTypeConstants.java
0 → 100644
yudao-module-erp/yudao-module-erp-api/src/main/java/cn/iocoder/yudao/module/erp/enums/ErrorCodeConstants.java
0 → 100644
yudao-module-erp/yudao-module-erp-api/src/main/java/cn/iocoder/yudao/module/erp/enums/LogRecordConstants.java
0 → 100644
yudao-module-erp/yudao-module-erp-biz/pom.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" | |
| 3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| 4 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| 5 | + <parent> | |
| 6 | + <groupId>cn.iocoder.boot</groupId> | |
| 7 | + <artifactId>yudao-module-erp</artifactId> | |
| 8 | + <version>${revision}</version> | |
| 9 | + </parent> | |
| 10 | + <modelVersion>4.0.0</modelVersion> | |
| 11 | + <artifactId>yudao-module-erp-biz</artifactId> | |
| 12 | + | |
| 13 | + <name>${project.artifactId}</name> | |
| 14 | + <description> | |
| 15 | + erp 包下,企业资源管理(Enterprise Resource Planning)。 | |
| 16 | + 例如说:采购、销售、库存、财务、产品等等 | |
| 17 | + </description> | |
| 18 | + | |
| 19 | + <dependencies> | |
| 20 | + <dependency> | |
| 21 | + <groupId>cn.iocoder.boot</groupId> | |
| 22 | + <artifactId>yudao-module-system-api</artifactId> | |
| 23 | + <version>${revision}</version> | |
| 24 | + </dependency> | |
| 25 | + <dependency> | |
| 26 | + <groupId>cn.iocoder.boot</groupId> | |
| 27 | + <artifactId>yudao-module-erp-api</artifactId> | |
| 28 | + <version>${revision}</version> | |
| 29 | + </dependency> | |
| 30 | + | |
| 31 | + <!-- 业务组件 --> | |
| 32 | + <dependency> | |
| 33 | + <groupId>cn.iocoder.boot</groupId> | |
| 34 | + <artifactId>yudao-spring-boot-starter-biz-operatelog</artifactId> | |
| 35 | + </dependency> | |
| 36 | + | |
| 37 | + <!-- Web 相关 --> | |
| 38 | + <dependency> | |
| 39 | + <groupId>cn.iocoder.boot</groupId> | |
| 40 | + <artifactId>yudao-spring-boot-starter-web</artifactId> | |
| 41 | + </dependency> | |
| 42 | + | |
| 43 | + <dependency> | |
| 44 | + <groupId>cn.iocoder.boot</groupId> | |
| 45 | + <artifactId>yudao-spring-boot-starter-security</artifactId> | |
| 46 | + </dependency> | |
| 47 | + | |
| 48 | + <!-- DB 相关 --> | |
| 49 | + <dependency> | |
| 50 | + <groupId>cn.iocoder.boot</groupId> | |
| 51 | + <artifactId>yudao-spring-boot-starter-mybatis</artifactId> | |
| 52 | + </dependency> | |
| 53 | + | |
| 54 | + <!-- 工具类相关 --> | |
| 55 | + <dependency> | |
| 56 | + <groupId>cn.iocoder.boot</groupId> | |
| 57 | + <artifactId>yudao-spring-boot-starter-excel</artifactId> | |
| 58 | + </dependency> | |
| 59 | + <dependency> | |
| 60 | + <groupId>cn.iocoder.boot</groupId> | |
| 61 | + <artifactId>yudao-spring-boot-starter-biz-dict</artifactId> | |
| 62 | + </dependency> | |
| 63 | + | |
| 64 | + <!-- Test 测试相关 --> | |
| 65 | + <dependency> | |
| 66 | + <groupId>cn.iocoder.boot</groupId> | |
| 67 | + <artifactId>yudao-spring-boot-starter-test</artifactId> | |
| 68 | + </dependency> | |
| 69 | + | |
| 70 | + </dependencies> | |
| 71 | + | |
| 72 | +</project> | |
| 0 | 73 | \ No newline at end of file | ... | ... |
yudao-module-erp/yudao-module-erp-biz/src/main/java/cn/iocoder/yudao/module/erp/controller/admin/sale/ErpSaleOrderController.http
0 → 100644
yudao-module-erp/yudao-module-erp-biz/src/main/java/cn/iocoder/yudao/module/erp/controller/admin/sale/ErpSaleOrderController.java
0 → 100644
| 1 | +package cn.iocoder.yudao.module.erp.controller.admin.sale; | |
| 2 | + | |
| 3 | +import cn.iocoder.yudao.framework.common.pojo.CommonResult; | |
| 4 | +import io.swagger.v3.oas.annotations.tags.Tag; | |
| 5 | +import org.springframework.validation.annotation.Validated; | |
| 6 | +import org.springframework.web.bind.annotation.GetMapping; | |
| 7 | +import org.springframework.web.bind.annotation.RequestMapping; | |
| 8 | +import org.springframework.web.bind.annotation.RestController; | |
| 9 | + | |
| 10 | +import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success; | |
| 11 | + | |
| 12 | +@Tag(name = "管理后台 - ERP 销售订单") | |
| 13 | +@RestController | |
| 14 | +@RequestMapping("/erp/sale-order") | |
| 15 | +@Validated | |
| 16 | +public class ErpSaleOrderController { | |
| 17 | + | |
| 18 | + @GetMapping("/demo") | |
| 19 | + public CommonResult<Boolean> demo() { | |
| 20 | + return success(true); | |
| 21 | + } | |
| 22 | + | |
| 23 | +} | ... | ... |
yudao-module-erp/yudao-module-erp-biz/src/main/java/cn/iocoder/yudao/module/erp/controller/package-info.java
0 → 100644
yudao-module-erp/yudao-module-erp-biz/src/main/java/cn/iocoder/yudao/module/erp/package-info.java
0 → 100644
yudao-server/pom.xml
| ... | ... | @@ -88,11 +88,18 @@ |
| 88 | 88 | <!-- </dependency>--> |
| 89 | 89 | |
| 90 | 90 | <!-- CRM 相关模块。默认注释,保证编译速度 --> |
| 91 | -<!-- <dependency>--> | |
| 92 | -<!-- <groupId>cn.iocoder.boot</groupId>--> | |
| 93 | -<!-- <artifactId>yudao-module-crm-biz</artifactId>--> | |
| 94 | -<!-- <version>${revision}</version>--> | |
| 95 | -<!-- </dependency>--> | |
| 91 | + <dependency> | |
| 92 | + <groupId>cn.iocoder.boot</groupId> | |
| 93 | + <artifactId>yudao-module-crm-biz</artifactId> | |
| 94 | + <version>${revision}</version> | |
| 95 | + </dependency> | |
| 96 | + | |
| 97 | + <!-- ERP 相关模块。默认注释,保证编译速度 --> | |
| 98 | + <dependency> | |
| 99 | + <groupId>cn.iocoder.boot</groupId> | |
| 100 | + <artifactId>yudao-module-erp-biz</artifactId> | |
| 101 | + <version>${revision}</version> | |
| 102 | + </dependency> | |
| 96 | 103 | |
| 97 | 104 | <!-- spring boot 配置所需依赖 --> |
| 98 | 105 | <dependency> | ... | ... |