-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
233 changed files
with
19,094 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<parent> | ||
<groupId>cn.iocoder.cloud</groupId> | ||
<artifactId>yudao</artifactId> | ||
<version>${revision}</version> | ||
</parent> | ||
<modules> | ||
<module>yudao-module-erp-api</module> | ||
<module>yudao-module-erp-biz</module> | ||
</modules> | ||
<modelVersion>4.0.0</modelVersion> | ||
<artifactId>yudao-module-erp</artifactId> | ||
<packaging>pom</packaging> | ||
|
||
<name>${project.artifactId}</name> | ||
<description> | ||
erp 包下,企业资源管理(Enterprise Resource Planning)。 | ||
例如说:采购、销售、库存、财务、产品等等 | ||
</description> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<parent> | ||
<groupId>cn.iocoder.cloud</groupId> | ||
<artifactId>yudao-module-erp</artifactId> | ||
<version>${revision}</version> | ||
</parent> | ||
<modelVersion>4.0.0</modelVersion> | ||
<artifactId>yudao-module-erp-api</artifactId> | ||
<packaging>jar</packaging> | ||
|
||
<name>${project.artifactId}</name> | ||
<description> | ||
erp 模块 API,暴露给其它模块调用 | ||
</description> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>cn.iocoder.cloud</groupId> | ||
<artifactId>yudao-common</artifactId> | ||
</dependency> | ||
|
||
<!-- 参数校验 --> | ||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-validation</artifactId> | ||
<optional>true</optional> | ||
</dependency> | ||
</dependencies> | ||
|
||
</project> |
4 changes: 4 additions & 0 deletions
4
...-erp/yudao-module-erp-api/src/main/java/cn/iocoder/yudao/module/erp/api/package-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/** | ||
* erp API 包,定义暴露给其它模块的 API | ||
*/ | ||
package cn.iocoder.yudao.module.erp.api; |
23 changes: 23 additions & 0 deletions
23
...rp/yudao-module-erp-api/src/main/java/cn/iocoder/yudao/module/erp/enums/ApiConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package cn.iocoder.yudao.module.erp.enums; | ||
|
||
import cn.iocoder.yudao.framework.common.enums.RpcConstants; | ||
|
||
/** | ||
* API 相关的枚举 | ||
* | ||
* @author 芋道源码 | ||
*/ | ||
public class ApiConstants { | ||
|
||
/** | ||
* 服务名 | ||
* | ||
* 注意,需要保证和 spring.application.name 保持一致 | ||
*/ | ||
public static final String NAME = "erp-server"; | ||
|
||
public static final String PREFIX = RpcConstants.RPC_API_PREFIX + "/erp"; | ||
|
||
public static final String VERSION = "1.0.0"; | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
...dao-module-erp-api/src/main/java/cn/iocoder/yudao/module/erp/enums/DictTypeConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package cn.iocoder.yudao.module.erp.enums; | ||
|
||
/** | ||
* ERP 字典类型的枚举类 | ||
* | ||
* @author 芋道源码 | ||
*/ | ||
public interface DictTypeConstants { | ||
|
||
String AUDIT_STATUS = "erp_audit_status"; // 审核状态 | ||
String STOCK_RECORD_BIZ_TYPE = "erp_stock_record_biz_type"; // 库存明细的业务类型 | ||
|
||
} |
39 changes: 39 additions & 0 deletions
39
.../yudao-module-erp-api/src/main/java/cn/iocoder/yudao/module/erp/enums/ErpAuditStatus.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package cn.iocoder.yudao.module.erp.enums; | ||
|
||
import cn.iocoder.yudao.framework.common.core.IntArrayValuable; | ||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
import java.util.Arrays; | ||
|
||
/** | ||
* ERP 审核状态枚举 | ||
* | ||
* TODO 芋艿:目前只有待审批、已审批两个状态,未来接入工作流后,会丰富下:待提交(草稿)=》已提交(待审核)=》审核通过、审核不通过;另外,工作流需要支持“反审核”,把工作流退回到原点; | ||
* | ||
* @author 芋道源码 | ||
*/ | ||
@RequiredArgsConstructor | ||
@Getter | ||
public enum ErpAuditStatus implements IntArrayValuable { | ||
|
||
PROCESS(10, "未审核"), // 审核中 | ||
APPROVE(20, "已审核"); // 审核通过 | ||
|
||
public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(ErpAuditStatus::getStatus).toArray(); | ||
|
||
/** | ||
* 状态 | ||
*/ | ||
private final Integer status; | ||
/** | ||
* 状态名 | ||
*/ | ||
private final String name; | ||
|
||
@Override | ||
public int[] array() { | ||
return ARRAYS; | ||
} | ||
|
||
} |
Oops, something went wrong.