Authored by mali

算滞纳金逻辑修改

... ... @@ -52,8 +52,12 @@ public class DepositHelpService {
*/
public int getRemainDay(Integer endTime) {
int second = endTime - (int) (System.currentTimeMillis() / 1000);
int day = (int) Math.ceil(second * 1.0 / (24 * 3600));
return day;
if (second < 0) {
return (int) Math.floor(second * 1.0 / (24 * 3600));
} else {
return (int) Math.ceil(second * 1.0 / (24 * 3600));
}
}
public Integer getOverduePeriod(Integer endTime) {
... ...