Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-fb
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王衍超
cloud-fb
Commits
70693ca7
Commit
70693ca7
authored
Jun 17, 2021
by
shiwenbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改合同到期预警生成规则
parent
22cbd355
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
5 deletions
+1
-5
ContractExpireWarningCalculator.java
.../dinas/contract/warn/ContractExpireWarningCalculator.java
+1
-5
No files found.
backend/xyst.dinas.contract/src/main/java/com/xyst/dinas/contract/warn/ContractExpireWarningCalculator.java
View file @
70693ca7
...
@@ -44,12 +44,8 @@ public class ContractExpireWarningCalculator implements IWarningCalculator{
...
@@ -44,12 +44,8 @@ public class ContractExpireWarningCalculator implements IWarningCalculator{
diffDays
=
(
int
)
((
endDate
.
getTime
()
-
now
.
getTime
())
/
millisOfDay
);
diffDays
=
(
int
)
((
endDate
.
getTime
()
-
now
.
getTime
())
/
millisOfDay
);
if
(
diffDays
<
Integer
.
valueOf
(
min
))
{
if
(
diffDays
<
Integer
.
valueOf
(
min
))
{
int
value
=
diffDays
-
Integer
.
valueOf
(
min
);
int
value
=
Integer
.
valueOf
(
min
)
-
diffDays
;
if
(
value
>=
0
)
{
warnMessage
=
purchaseSandUnitName
+
"下"
+
projectName
+
"的"
+
contractName
+
"还有"
+
value
+
"天到期。"
;
warnMessage
=
purchaseSandUnitName
+
"下"
+
projectName
+
"的"
+
contractName
+
"还有"
+
value
+
"天到期。"
;
}
else
{
warnMessage
=
purchaseSandUnitName
+
"下"
+
projectName
+
"的"
+
contractName
+
"已经过期"
+
Math
.
abs
(
value
)+
"天。"
;
}
return
true
;
return
true
;
}
}
return
false
;
return
false
;
...
...
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