地点档案占提交
This commit is contained in:
@@ -10,11 +10,58 @@ import cn.iocoder.yudao.framework.common.exception.ErrorCode;
|
||||
* @author ZT
|
||||
*/
|
||||
public interface ErrorCodeConstants {
|
||||
|
||||
/**
|
||||
* 业务异常的错误码区间,解决:解决各模块错误码定义,避免重复,在此只声明不做实际使用
|
||||
*
|
||||
* 一共 10 位,分成四段
|
||||
*
|
||||
* 第一段,1 位,类型
|
||||
* 1 - 业务级别异常
|
||||
* x - 预留
|
||||
* 第二段,3 位,系统类型
|
||||
* 001 - 用户系统
|
||||
* 002 - 商品系统
|
||||
* 003 - 订单系统
|
||||
* 004 - 支付系统
|
||||
* 005 - 优惠劵系统
|
||||
* ... - ...
|
||||
* 第三段,3 位,模块
|
||||
* 不限制规则。
|
||||
* 一般建议,每个系统里面,可能有多个模块,可以再去做分段。以用户系统为例子:
|
||||
* 001 - OAuth2 模块
|
||||
* 002 - User 模块
|
||||
* 003 - MobileCode 模块
|
||||
* 第四段,3 位,错误码
|
||||
* 不限制规则。
|
||||
* 一般建议,每个模块自增。
|
||||
*
|
||||
* @author Rayson
|
||||
*/
|
||||
// ========== 示例模块 1-001-000-000 ==========
|
||||
ErrorCode EXAMPLE_NOT_EXISTS = new ErrorCode(1_001_000_001, "示例不存在");
|
||||
ErrorCode CUSTOMER_NOT_EXISTS = new ErrorCode(1_001_000_101, "客商协同账号不存在");
|
||||
|
||||
ErrorCode CARRIER_ACCOUNT_NOT_EXISTS = new ErrorCode(1_001_000_102, "物流服务商协同账号不存在");
|
||||
ErrorCode DRIVING_ACCOUNT_NOT_EXISTS = new ErrorCode(1_001_000_103, "司机协同账号不存在");
|
||||
// 模块 infra 错误码区间 [1-001-000-000 ~ 1-002-000-000)
|
||||
// 模块 system 错误码区间 [1-002-000-000 ~ 1-003-000-000)
|
||||
// 模块 report 错误码区间 [1-003-000-000 ~ 1-004-000-000)
|
||||
// 模块 member 错误码区间 [1-004-000-000 ~ 1-005-000-000)
|
||||
// 模块 mp 错误码区间 [1-006-000-000 ~ 1-007-000-000)
|
||||
// 模块 pay 错误码区间 [1-007-000-000 ~ 1-008-000-000)
|
||||
// 模块 bpm 错误码区间 [1-009-000-000 ~ 1-010-000-000)
|
||||
// 模块 product 错误码区间 [1-008-000-000 ~ 1-009-000-000)
|
||||
// 模块 trade 错误码区间 [1-011-000-000 ~ 1-012-000-000)
|
||||
// 模块 promotion 错误码区间 [1-013-000-000 ~ 1-014-000-000)
|
||||
// 模块 crm 错误码区间 [1-020-000-000 ~ 1-021-000-000)
|
||||
|
||||
// 模块 bseMngt.plceAchi [1_100_001_000 ~ 1_100_001_999]
|
||||
ErrorCode WAREHOUSE_NOT_EXISTS = new ErrorCode(1_100_001_001, "仓库信息不存在");
|
||||
ErrorCode FACTORY_NOT_EXISTS = new ErrorCode(1_100_001_002, "生产厂区信息不存在");
|
||||
ErrorCode RAILWAY_STATION_NOT_EXISTS = new ErrorCode(1_100_001_003, "铁路站点维护不存在");
|
||||
ErrorCode PORT_NOT_EXISTS = new ErrorCode(1_100_001_004, "港口信息不存在");
|
||||
ErrorCode AUNCEL_CONFIG_NOT_EXISTS = new ErrorCode(1_100_001_005, "计量点配置不存在");
|
||||
ErrorCode GATE_CONFIG_NOT_EXISTS = new ErrorCode(1_100_001_006, "门岗信息不存在");
|
||||
ErrorCode CONSIGNEE_ADDRESS_NOT_EXISTS = new ErrorCode(1_100_001_007, "客户收货地址不存在");
|
||||
ErrorCode PLACE_ARCHIVE_MATERIAL_NOT_EXISTS = new ErrorCode(1_100_001_008, "地点档案物料信息不存在");
|
||||
|
||||
ErrorCode CORR_FACT_NOT_EXISTS = new ErrorCode(1_100_001_009, "关联工厂信息不存在");
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
package cn.iocoder.yudao.module.backendlogistics.enums;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
@Schema(description = "是否,数据字典infra_boolean_string")
|
||||
public enum YesOrNoEnum {
|
||||
|
||||
TRUE("true", "是"),
|
||||
FALSE("false", "否");
|
||||
|
||||
private String code;
|
||||
|
||||
private String msg;
|
||||
|
||||
YesOrNoEnum() {
|
||||
|
||||
}
|
||||
|
||||
YesOrNoEnum(String code, String msg) {
|
||||
this.code = code;
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public static String getMsgByCode(String code) {
|
||||
YesOrNoEnum[] values = values();
|
||||
for (YesOrNoEnum dto : values) {
|
||||
if (dto.getCode().equals(code)) {
|
||||
return dto.getMsg();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static String getCodeByMsg(String msg) {
|
||||
YesOrNoEnum[] values = values();
|
||||
for (YesOrNoEnum dto : values) {
|
||||
if (dto.getMsg().equals(msg)) {
|
||||
return dto.getCode();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package cn.iocoder.yudao.module.backendlogistics.enums.bseMngt.plceAchi;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
@Schema(description = "仓库性质,数据字典warehouse_nature")
|
||||
public enum WrhNtrEnum {
|
||||
|
||||
SW("sw", "现货仓"),
|
||||
FW("fw", "期货仓"),
|
||||
TDW("tdw", "报税仓");
|
||||
|
||||
private String code;
|
||||
|
||||
private String msg;
|
||||
|
||||
WrhNtrEnum() {
|
||||
|
||||
}
|
||||
|
||||
WrhNtrEnum(String code, String msg) {
|
||||
this.code = code;
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public static String getMsgByCode(String code) {
|
||||
WrhNtrEnum[] values = values();
|
||||
for (WrhNtrEnum dto : values) {
|
||||
if (dto.getCode().equals(code)) {
|
||||
return dto.getMsg();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static String getCodeByMsg(String msg) {
|
||||
WrhNtrEnum[] values = values();
|
||||
for (WrhNtrEnum dto : values) {
|
||||
if (dto.getMsg().equals(msg)) {
|
||||
return dto.getCode();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package cn.iocoder.yudao.module.backendlogistics.enums.bseMngt.plceAchi;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
@Schema(description = "仓库类型,数据字典warehouse_type")
|
||||
public enum WrhTpEnum {
|
||||
|
||||
FAW("faw", "厂区库"),
|
||||
TPL("tpl", "三方库");
|
||||
|
||||
private String code;
|
||||
|
||||
private String msg;
|
||||
|
||||
WrhTpEnum() {
|
||||
|
||||
}
|
||||
|
||||
WrhTpEnum(String code, String msg) {
|
||||
this.code = code;
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public static String getMsgByCode(String code) {
|
||||
WrhTpEnum[] values = values();
|
||||
for (WrhTpEnum dto : values) {
|
||||
if (dto.getCode().equals(code)) {
|
||||
return dto.getMsg();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static String getCodeByMsg(String msg) {
|
||||
WrhTpEnum[] values = values();
|
||||
for (WrhTpEnum dto : values) {
|
||||
if (dto.getMsg().equals(msg)) {
|
||||
return dto.getCode();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user