Commit c8761cce3b5f01d021fabb1d337bf5618e19c097
1 parent
a1a81045
机械折旧报错修改
Showing
1 changed file
with
4 additions
and
1 deletions
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/mechanicaldepreciation/MechanicalDepreciationServiceImpl.java
| @@ -211,7 +211,10 @@ public class MechanicalDepreciationServiceImpl implements MechanicalDepreciation | @@ -211,7 +211,10 @@ public class MechanicalDepreciationServiceImpl implements MechanicalDepreciation | ||
| 211 | depreciation.setAccumulatedDepreciation(accumulatedDepreciation); | 211 | depreciation.setAccumulatedDepreciation(accumulatedDepreciation); |
| 212 | depreciation.setRemainingPeriods(totalMonths - (i + 1)); // 剩余期数=总月数-已计提月数 | 212 | depreciation.setRemainingPeriods(totalMonths - (i + 1)); // 剩余期数=总月数-已计提月数 |
| 213 | depreciation.setDepreciationPeriod(depreciationPeriods.get(i)); | 213 | depreciation.setDepreciationPeriod(depreciationPeriods.get(i)); |
| 214 | - | 214 | + depreciation.setCreator("0"); |
| 215 | + depreciation.setUpdater("0"); | ||
| 216 | + depreciation.setCreateTime(LocalDateTime.now()); | ||
| 217 | + depreciation.setUpdateTime(LocalDateTime.now()); | ||
| 215 | toSaveList.add(depreciation); | 218 | toSaveList.add(depreciation); |
| 216 | } | 219 | } |
| 217 | 220 |