Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-api-boot-master
Commits
1a6c98c4
Commit
1a6c98c4
authored
Aug 21, 2024
by
yanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 添加客户新字段
parent
f9d3c0eb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
181 additions
and
0 deletions
+181
-0
CustomerDO.java
...o/module/customer/dal/dataobject/customer/CustomerDO.java
+63
-0
CustomerCreateFromEnum.java
...ocoder/yudao/module/ecw/enums/CustomerCreateFromEnum.java
+40
-0
CustomerGetMethodEnum.java
...iocoder/yudao/module/ecw/enums/CustomerGetMethodEnum.java
+38
-0
CustomerRoleEnum.java
...a/cn/iocoder/yudao/module/ecw/enums/CustomerRoleEnum.java
+40
-0
No files found.
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/dal/dataobject/customer/CustomerDO.java
View file @
1a6c98c4
...
...
@@ -366,6 +366,69 @@ public class CustomerDO extends BaseDO {
@ApiModelProperty
(
"延期申请次数"
)
private
int
delayApprovalNum
;
// ======== 20240821 add start
/**
* 首次成交时间
*/
private
Date
firstDealTime
;
/**
* 获取方式
* <p>
* 枚举 {@link TODO customer_get_method 字典}
*/
private
Integer
getMethod
;
/**
* 创建入口
* <p>
* 枚举 {@link TODO customer_create_from 字典}
*/
private
Integer
createFrom
;
/**
* 归属时间
*/
private
Date
customerServiceConfirmedTime
;
/**
* 客户角色
* <p>
* 枚举 {@link TODO customer_role 字典}
*/
private
Integer
role
;
/**
* 业务国家 逗号分隔
*/
private
String
busiCountryIds
;
/**
* 竞争对手ID
*/
private
Long
competitorId
;
/**
* 年度发货量
*/
private
BigDecimal
weightYearly
;
/**
* 年度发货次数
*/
private
Integer
numYearly
;
/**
* 默认开票,1-是,0-否
*/
private
Boolean
defaultBilling
;
// ======== 20240821 add end
/**
* vip等级-中文
*/
...
...
yudao-module-ecw/yudao-module-ecw-api/src/main/java/cn/iocoder/yudao/module/ecw/enums/CustomerCreateFromEnum.java
0 → 100644
View file @
1a6c98c4
package
cn
.
iocoder
.
yudao
.
module
.
ecw
.
enums
;
import
lombok.AllArgsConstructor
;
import
lombok.Getter
;
import
java.util.Arrays
;
/**
* 客户创建入口类型枚举
*/
@AllArgsConstructor
@Getter
public
enum
CustomerCreateFromEnum
{
//1、导入 2、后台用户创建 3、APP注册 4、发货人创建
IMPORT
(
1
,
"导入"
),
BACKEND
(
2
,
"后台用户创建"
),
APP_REGISTER
(
3
,
"APP注册"
),
APP_CONSIGNOR
(
4
,
"APP发货人创建"
);
;
/**
* 类型
*/
private
final
Integer
value
;
/**
* 类型名
*/
private
final
String
name
;
public
static
String
getNameByValue
(
Integer
value
)
{
return
Arrays
.
stream
(
CustomerCreateFromEnum
.
values
()).
filter
(
t
->
t
.
getValue
().
equals
(
value
)).
map
(
CustomerCreateFromEnum:
:
getName
).
findFirst
().
orElse
(
""
);
}
public
static
CustomerCreateFromEnum
get
(
Integer
value
)
{
return
Arrays
.
stream
(
CustomerCreateFromEnum
.
values
()).
filter
(
t
->
t
.
getValue
().
equals
(
value
)).
findFirst
().
orElse
(
null
);
}
}
yudao-module-ecw/yudao-module-ecw-api/src/main/java/cn/iocoder/yudao/module/ecw/enums/CustomerGetMethodEnum.java
0 → 100644
View file @
1a6c98c4
package
cn
.
iocoder
.
yudao
.
module
.
ecw
.
enums
;
import
lombok.AllArgsConstructor
;
import
lombok.Getter
;
import
java.util.Arrays
;
/**
* 客户获取方式类型枚举
*/
@AllArgsConstructor
@Getter
public
enum
CustomerGetMethodEnum
{
CREATE
(
1
,
"自主创建"
),
ASSIGN
(
2
,
"分配/移交接收"
),
CATCH
(
3
,
"公海捞取"
);
;
/**
* 类型
*/
private
final
Integer
value
;
/**
* 类型名
*/
private
final
String
name
;
public
static
String
getNameByValue
(
Integer
value
)
{
return
Arrays
.
stream
(
CustomerGetMethodEnum
.
values
()).
filter
(
t
->
t
.
getValue
().
equals
(
value
)).
map
(
CustomerGetMethodEnum:
:
getName
).
findFirst
().
orElse
(
""
);
}
public
static
CustomerGetMethodEnum
get
(
Integer
value
)
{
return
Arrays
.
stream
(
CustomerGetMethodEnum
.
values
()).
filter
(
t
->
t
.
getValue
().
equals
(
value
)).
findFirst
().
orElse
(
null
);
}
}
yudao-module-ecw/yudao-module-ecw-api/src/main/java/cn/iocoder/yudao/module/ecw/enums/CustomerRoleEnum.java
0 → 100644
View file @
1a6c98c4
package
cn
.
iocoder
.
yudao
.
module
.
ecw
.
enums
;
import
lombok.AllArgsConstructor
;
import
lombok.Getter
;
import
java.util.Arrays
;
/**
* 客户角色类型枚举
*/
@AllArgsConstructor
@Getter
public
enum
CustomerRoleEnum
{
//0、CO 1、工程商 2、代理 6、集运
C0
(
0
,
"C0"
),
CONTRACTOR
(
1
,
"工程商"
),
PROXY
(
2
,
"代理"
),
CONSOLIDATOR
(
6
,
"集运"
);
;
/**
* 类型
*/
private
final
Integer
value
;
/**
* 类型名
*/
private
final
String
name
;
public
static
String
getNameByValue
(
Integer
value
)
{
return
Arrays
.
stream
(
CustomerRoleEnum
.
values
()).
filter
(
t
->
t
.
getValue
().
equals
(
value
)).
map
(
CustomerRoleEnum:
:
getName
).
findFirst
().
orElse
(
""
);
}
public
static
CustomerRoleEnum
get
(
Integer
value
)
{
return
Arrays
.
stream
(
CustomerRoleEnum
.
values
()).
filter
(
t
->
t
.
getValue
().
equals
(
value
)).
findFirst
().
orElse
(
null
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment