账套信息,代码优化!

This commit is contained in:
易焱
2019-08-07 00:25:36 +08:00
parent 1ac25ab2bd
commit 38a308bca9
26 changed files with 689 additions and 15 deletions
@@ -4,7 +4,7 @@ package com.cwhelp.common.constant;
* 超级管理员常量
* @author yan.y
*/
public class AdminConst {
public final class AdminConst {
/**
* 超级管理员id
@@ -0,0 +1,30 @@
package com.cwhelp.common.constant;
/**
* @author: yan.y
* @Description:
* @Date: Created in 23:08 2019/8/6
*/
public final class PlatformConst {
/**
* 自营平台
*/
public static final int OWN_TYPE = 1;
/**
* 代理平台
*/
public static final int PROXY_TYPE = 2;
/**
* 个人平台
*/
public static final int PERSONAL_TYPE = 3;
/**
* 公司平台
*/
public static final int COMPANY_TYPE = 4;
}
@@ -5,7 +5,7 @@ package com.cwhelp.common.constant;
* @Description:
* @Date: Created in 1:12 2019/8/5
*/
public class RoleConst {
public final class RoleConst {
/**
* 角色平台类型
@@ -4,7 +4,7 @@ package com.cwhelp.common.constant;
* 数据状态常量
* @author yan.y
*/
public class StatusConst {
public final class StatusConst {
// 正常状态码
public static final byte OK = 1;
@@ -36,6 +36,14 @@ public enum ResultEnum implements ResultInterface {
PLATFORM_EXIST_CONTACT_CARD(1002,"联系人证件号码已存在"),
PLATFORM_EXIST_EMAIL(1003,"邮箱已存在"),
/**
* 账套
*/
ENTERPRISE_NUMBER_EXCESSIVE(2001,"此企业下账套只能保存一个"),
ENTERPRISE_NAME_EXIST(2002,"账套名称已存在"),
ENTERPRISE_CREDITCODE_EXIST(2003,"账套统一社会信用代码已存在"),
/**
* 角色问题
*/