瀏覽代碼

日期不一样问题

java110 5 年之前
父節點
當前提交
15feab6f0d
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      java110-core/src/main/java/com/java110/core/smo/impl/ComputeFeeSMOImpl.java

+ 4 - 4
java110-core/src/main/java/com/java110/core/smo/impl/ComputeFeeSMOImpl.java

@@ -140,9 +140,9 @@ public class ComputeFeeSMOImpl implements IComputeFeeSMO {
         feeDto.setDeadlineTime(targetEndDate);
 
         //动态费用
-        if ("4004".equals(computingFormula)) {
+        if ("4004".equals(computingFormula) && !FeeDto.STATE_FINISH.equals(feeDto.getState())) {
             feeDto.setAmountOwed(feeDto.getFeePrice() + "");
-            feeDto.setDeadlineTime(DateUtil.getCurrentDate());
+            //feeDto.setDeadlineTime(DateUtil.getCurrentDate()); 欠费日期不对先注释
         }
 
     }
@@ -175,9 +175,9 @@ public class ComputeFeeSMOImpl implements IComputeFeeSMO {
         feeDto.setDeadlineTime(targetEndDate);
 
         //动态费用
-        if ("4004".equals(computingFormula)) {
+        if ("4004".equals(computingFormula) && !FeeDto.STATE_FINISH.equals(feeDto.getState())) {
             feeDto.setAmountOwed(feeDto.getFeePrice() + "");
-            feeDto.setDeadlineTime(DateUtil.getCurrentDate());
+            //feeDto.setDeadlineTime(DateUtil.getCurrentDate()); 欠费日期不对先注释
         }
     }