mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-14 11:05:06 +08:00
crm: 1)调整合同的 CRM 前缀;2)增加基于客户查询合同分页
This commit is contained in:
@ -1,61 +0,0 @@
|
||||
package cn.iocoder.yudao.module.crm.enums;
|
||||
|
||||
import cn.iocoder.yudao.framework.common.core.IntArrayValuable;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
// TODO @liuhongfeng:这个状态,还是搞成专属 CrmReceivableDO 专属的 status;
|
||||
/**
|
||||
* 流程审批状态枚举类
|
||||
* 0 未审核 1 审核通过 2 审核拒绝 3 审核中 4 已撤回 TODO @liuhongfeng:这一行可以删除,因为已经有枚举属性了哈;
|
||||
* @author 赤焰
|
||||
*/
|
||||
// TODO @liuhongfeng:可以使用 @Getter、@AllArgsConstructor 简化 get、构造方法
|
||||
public enum AuditStatusEnum implements IntArrayValuable {
|
||||
|
||||
// TODO @liuhongfeng:草稿 0;10 审核中;20 审核通过;30 审核拒绝;40 已撤回;主要是留好间隙,万一每个地方要做点拓展; 然后,枚举字段的顺序调整下,审批中,一定要放两个审批通过、拒绝前面哈;
|
||||
/**
|
||||
* 未审批
|
||||
*/
|
||||
AUDIT_NEW(0, "未审批"),
|
||||
/**
|
||||
* 审核通过
|
||||
*/
|
||||
AUDIT_FINISH(1, "审核通过"),
|
||||
/**
|
||||
* 审核拒绝
|
||||
*/
|
||||
AUDIT_REJECT(2, "审核拒绝"),
|
||||
/**
|
||||
* 审核中
|
||||
*/
|
||||
AUDIT_DOING(3, "审核中"),
|
||||
/**
|
||||
* 已撤回
|
||||
*/
|
||||
AUDIT_RETURN(4, "已撤回");
|
||||
|
||||
// TODO liuhongfeng:value 改成 status;desc 改成 name;
|
||||
private final Integer value;
|
||||
private final String desc;
|
||||
|
||||
public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(AuditStatusEnum::getValue).toArray();
|
||||
|
||||
AuditStatusEnum(Integer value, String desc) {
|
||||
this.value = value;
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
public Integer getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int[] array() {
|
||||
return ARRAYS;
|
||||
}
|
||||
}
|
@ -11,6 +11,6 @@ public interface DictTypeConstants {
|
||||
String CRM_CUSTOMER_INDUSTRY = "crm_customer_industry"; // CRM 客户所属行业
|
||||
String CRM_CUSTOMER_LEVEL = "crm_customer_level"; // CRM 客户等级
|
||||
String CRM_CUSTOMER_SOURCE = "crm_customer_source"; // CRM 客户来源
|
||||
String CRM_RECEIVABLE_CHECK_STATUS = "crm_receivable_check_status"; // CRM 审批状态
|
||||
String CRM_AUDIT_STATUS = "crm_audit_status"; // CRM 审批状态
|
||||
|
||||
}
|
||||
|
@ -1,8 +0,0 @@
|
||||
package cn.iocoder.yudao.module.crm.enums;
|
||||
|
||||
// TODO @liuhongfeng:这个的作用是?
|
||||
/**
|
||||
* @author 赤焰
|
||||
*/
|
||||
public enum ReturnTypeEnum {
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
package cn.iocoder.yudao.module.crm.enums.common;
|
||||
|
||||
import cn.iocoder.yudao.framework.common.core.IntArrayValuable;
|
||||
import lombok.Getter;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* CRM 的审批状态
|
||||
*
|
||||
* @author 赤焰
|
||||
*/
|
||||
@RequiredArgsConstructor
|
||||
@Getter
|
||||
public enum CrmAuditStatusEnum implements IntArrayValuable {
|
||||
|
||||
DRAFT(0, "未提交"),
|
||||
PROCESS(10, "审批中"),
|
||||
APPROVE(20, "审核通过"),
|
||||
REJECT(30, "审核不通过"),
|
||||
CANCEL(40, "已取消");
|
||||
|
||||
private final Integer status;
|
||||
private final String name;
|
||||
|
||||
public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(CrmAuditStatusEnum::getStatus).toArray();
|
||||
|
||||
@Override
|
||||
public int[] array() {
|
||||
return ARRAYS;
|
||||
}
|
||||
|
||||
}
|
@ -19,7 +19,7 @@ public enum CrmBizTypeEnum implements IntArrayValuable {
|
||||
|
||||
CRM_LEADS(1, "线索"),
|
||||
CRM_CUSTOMER(2, "客户"),
|
||||
CRM_CONTACTS(3, "联系人"),
|
||||
CRM_CONTACT(3, "联系人"),
|
||||
CRM_BUSINESS(4, "商机"),
|
||||
CRM_CONTRACT(5, "合同");
|
||||
|
||||
|
Reference in New Issue
Block a user