Commit 70693ca7 by shiwenbo

修改合同到期预警生成规则

parent 22cbd355
......@@ -44,12 +44,8 @@ public class ContractExpireWarningCalculator implements IWarningCalculator{
diffDays = (int) ((endDate.getTime() -now.getTime()) / millisOfDay);
if (diffDays < Integer.valueOf(min)) {
int value = diffDays - Integer.valueOf(min);
if (value>= 0) {
int value = Integer.valueOf(min) - diffDays;
warnMessage = purchaseSandUnitName + "下"+projectName+"的"+contractName+"还有"+value+"天到期。";
}else {
warnMessage = purchaseSandUnitName + "下"+projectName+"的"+contractName+"已经过期"+Math.abs(value)+"天。";
}
return true;
}
return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment