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
b3242903
Commit
b3242903
authored
Jun 15, 2020
by
dengshichuan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dsc' into 'develop'
扫描判空 See merge request 8timerv2/8timerapiv200!184
parents
5d8e0f09
d4d3f777
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
src/main/java/cn/timer/api/bean/crm/CrmSeaRule.java
+5
-5
src/main/java/cn/timer/api/controller/crm/CrmRuleController.java
+4
-2
No files found.
src/main/java/cn/timer/api/bean/crm/CrmSeaRule.java
View file @
b3242903
...
@@ -53,17 +53,17 @@ public class CrmSeaRule extends Model<CrmSeaRule> {
...
@@ -53,17 +53,17 @@ public class CrmSeaRule extends Model<CrmSeaRule> {
private
Integer
gid
;
private
Integer
gid
;
@ApiModelProperty
(
value
=
"添加客户之后(one)天没有跟进 (以跟进记录为准)"
)
@ApiModelProperty
(
value
=
"添加客户之后(one)天没有跟进 (以跟进记录为准)"
)
private
Integer
one
;
private
int
one
;
@ApiModelProperty
(
value
=
"距上次跟进(two)天没有再次跟进 (以跟进记录为准)"
)
@ApiModelProperty
(
value
=
"距上次跟进(two)天没有再次跟进 (以跟进记录为准)"
)
private
Integer
two
;
private
int
two
;
@ApiModelProperty
(
value
=
"添加客户之后(three)天没有成交 (天数必须大于规则1)"
)
@ApiModelProperty
(
value
=
"添加客户之后(three)天没有成交 (天数必须大于规则1)"
)
private
Integer
three
;
private
int
three
;
@ApiModelProperty
(
value
=
"系统提前(four)天自动提醒业务员客户将被回收"
)
@ApiModelProperty
(
value
=
"系统提前(four)天自动提醒业务员客户将被回收"
)
private
Integer
four
;
private
int
four
;
// @ApiModelProperty(value = "我的客户数量最多(five)人(合作中的不算)")
// @ApiModelProperty(value = "我的客户数量最多(five)人(合作中的不算)")
// private
Integer
five;
// private
int
five;
}
}
src/main/java/cn/timer/api/controller/crm/CrmRuleController.java
View file @
b3242903
...
@@ -65,10 +65,12 @@ public class CrmRuleController {
...
@@ -65,10 +65,12 @@ public class CrmRuleController {
Date
now
=
new
Date
();
Date
now
=
new
Date
();
// 客户创建时间+ x天 = 过期释放时间
// 客户创建时间+ x天 = 过期释放时间
DateTime
overDate1
=
DateUtil
.
offsetDay
(
createTime
,
one
);
DateTime
overDate1
=
DateUtil
.
offsetDay
(
createTime
,
one
);
Long
compare2
=
null
;
long
compare2
=
0
;
if
(
lastFollowTime
!=
null
)
{
if
(
lastFollowTime
!=
null
)
{
DateTime
overDate2
=
DateUtil
.
offsetDay
(
lastFollowTime
,
two
);
DateTime
overDate2
=
DateUtil
.
offsetDay
(
lastFollowTime
,
two
);
compare2
=
DateUtil
.
between
(
overDate2
,
now
,
DateUnit
.
DAY
,
false
);
compare2
=
DateUtil
.
between
(
overDate2
,
now
,
DateUnit
.
DAY
,
false
);
if
(
compare2
==
-
four
)
remind
(
belongUserName
,
clientName
,
four
);
}
}
DateTime
overDate3
=
DateUtil
.
offsetDay
(
createTime
,
three
);
DateTime
overDate3
=
DateUtil
.
offsetDay
(
createTime
,
three
);
// 时间比较
// 时间比较
...
@@ -80,7 +82,7 @@ public class CrmRuleController {
...
@@ -80,7 +82,7 @@ public class CrmRuleController {
||
(
compare3
>=
0
&&
status
!=
3
&&
status
!=
4
))
||
(
compare3
>=
0
&&
status
!=
3
&&
status
!=
4
))
release
(
crmClientData
);
release
(
crmClientData
);
// 判断4
// 判断4
if
(
compare1
==
-
four
||
compare
2
==
-
four
||
compare3
==
-
four
)
// TODO
if
(
compare1
==
-
four
||
compare
3
==
-
four
)
remind
(
belongUserName
,
clientName
,
four
);
remind
(
belongUserName
,
clientName
,
four
);
}
}
}
}
...
...
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