Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
db2ff923
Commit
db2ff923
authored
Jun 12, 2020
by
邓实川
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交客户管理接口
parent
faee6c7f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
247 additions
and
14 deletions
+247
-14
src/main/java/cn/timer/api/controller/crm/CrmController.java
+161
-5
src/main/java/cn/timer/api/controller/crm/CrmRuleController.java
+8
-4
src/main/java/cn/timer/api/dto/crm/CrmClientDataImportVo.java
+61
-0
src/main/resources/application-dev.yml
+5
-1
src/main/resources/application-pro.yml
+6
-2
src/main/resources/application-test.yml
+6
-2
No files found.
src/main/java/cn/timer/api/controller/crm/CrmController.java
View file @
db2ff923
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/controller/crm/CrmRuleController.java
View file @
db2ff923
...
@@ -62,21 +62,25 @@ public class CrmRuleController {
...
@@ -62,21 +62,25 @@ public class CrmRuleController {
Integer
status
=
crmClientData
.
getClientStatus
();
Integer
status
=
crmClientData
.
getClientStatus
();
String
belongUserName
=
crmClientData
.
getBelongUserName
();
String
belongUserName
=
crmClientData
.
getBelongUserName
();
String
clientName
=
crmClientData
.
getClientName
();
String
clientName
=
crmClientData
.
getClientName
();
Date
now
=
new
Date
();
// 客户创建时间+ x天 = 过期释放时间
// 客户创建时间+ x天 = 过期释放时间
DateTime
overDate1
=
DateUtil
.
offsetDay
(
createTime
,
one
);
DateTime
overDate1
=
DateUtil
.
offsetDay
(
createTime
,
one
);
DateTime
overDate2
=
DateUtil
.
offsetDay
(
lastFollowTime
,
two
);
Long
compare2
=
null
;
if
(
lastFollowTime
!=
null
)
{
DateTime
overDate2
=
DateUtil
.
offsetDay
(
lastFollowTime
,
two
);
compare2
=
DateUtil
.
between
(
overDate2
,
now
,
DateUnit
.
DAY
,
false
);
}
DateTime
overDate3
=
DateUtil
.
offsetDay
(
createTime
,
three
);
DateTime
overDate3
=
DateUtil
.
offsetDay
(
createTime
,
three
);
// 时间比较
// 时间比较
Date
now
=
new
Date
();
long
compare1
=
DateUtil
.
between
(
overDate1
,
now
,
DateUnit
.
DAY
,
false
);
long
compare1
=
DateUtil
.
between
(
overDate1
,
now
,
DateUnit
.
DAY
,
false
);
long
compare2
=
DateUtil
.
between
(
overDate2
,
now
,
DateUnit
.
DAY
,
false
);
long
compare3
=
DateUtil
.
between
(
overDate3
,
now
,
DateUnit
.
DAY
,
false
);
long
compare3
=
DateUtil
.
between
(
overDate3
,
now
,
DateUnit
.
DAY
,
false
);
// 判断1和2和3
// 判断1和2和3
if
((
lastFollowTime
==
null
&&
compare1
>=
0
)
||
(
lastFollowTime
!=
null
&&
compare2
>=
0
)
if
((
lastFollowTime
==
null
&&
compare1
>=
0
)
||
(
lastFollowTime
!=
null
&&
compare2
>=
0
)
||
(
compare3
>=
0
&&
status
!=
3
&&
status
!=
4
))
||
(
compare3
>=
0
&&
status
!=
3
&&
status
!=
4
))
release
(
crmClientData
);
release
(
crmClientData
);
// 判断4
// 判断4
if
(
compare1
==
-
four
||
compare2
==
-
four
||
compare3
==
-
four
)
if
(
compare1
==
-
four
||
compare2
==
-
four
||
compare3
==
-
four
)
// TODO
remind
(
belongUserName
,
clientName
,
four
);
remind
(
belongUserName
,
clientName
,
four
);
}
}
}
}
...
...
src/main/java/cn/timer/api/dto/crm/CrmClientDataImportVo.java
0 → 100644
View file @
db2ff923
/**
* Title: CrmClientDataImportVo.java
* Description:
* @author dsc
* @date 2020年6月12日
* @version 1.0
*/
package
cn
.
timer
.
api
.
dto
.
crm
;
import
java.io.Serializable
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
* Title: CrmClientDataImportVo.java
*
* @Description:
* @author dsc
* @date 2020年6月12日
* @version 1.0
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public
class
CrmClientDataImportVo
implements
Serializable
{
private
static
final
long
serialVersionUID
=
3241644321635711815L
;
// 客户名
private
String
clientName
;
// 组
private
String
belongGroupName
;
// 行业
private
String
industryName
;
// 客户类型
private
String
clientTypeName
;
// 手机号
private
String
clientCellphone
;
// 客户座机
private
String
clientTelephone
;
// 客户官网
private
String
clientUrl
;
// 邮箱
private
String
clientEmail
;
// 详细地址
private
String
address
;
// 联系人信息
private
String
linkName
;
private
String
cellphone
;
private
String
company
;
private
String
gender
;
private
String
position
;
private
String
telephone
;
private
String
email
;
private
String
linkAddress
;
}
src/main/resources/application-dev.yml
View file @
db2ff923
...
@@ -201,7 +201,10 @@ config-8timer:
...
@@ -201,7 +201,10 @@ config-8timer:
two
:
7
two
:
7
three
:
30
three
:
30
init-password
:
123456
init-password
:
123456
# 客户管理导入服务器保存路径
crm-excel
:
realPath
:
'
D:/excel/'
\ No newline at end of file
src/main/resources/application-pro.yml
View file @
db2ff923
...
@@ -171,4 +171,8 @@ config-8timer:
...
@@ -171,4 +171,8 @@ config-8timer:
one
:
3
one
:
3
two
:
7
two
:
7
three
:
30
three
:
30
init-password
:
123456
init-password
:
123456
\ No newline at end of file
# 客户管理导入服务器保存路径
crm-excel
:
realPath
:
'
crm-excel/'
\ No newline at end of file
src/main/resources/application-test.yml
View file @
db2ff923
...
@@ -170,4 +170,8 @@ config-8timer:
...
@@ -170,4 +170,8 @@ config-8timer:
one
:
3
one
:
3
two
:
7
two
:
7
three
:
30
three
:
30
init-password
:
123456
init-password
:
123456
\ No newline at end of file
# 客户管理导入服务器保存路径
crm-excel
:
realPath
:
'
crm-excel/'
\ No newline at end of file
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