Commit ae340a76 authored by zhangwanglin's avatar zhangwanglin

费用操作时间

parent bb6fe136
...@@ -574,6 +574,7 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis ...@@ -574,6 +574,7 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
chDisabDetailAccounts.setDeductionAmount(deductionAmount.add(amountOfMoney)); chDisabDetailAccounts.setDeductionAmount(deductionAmount.add(amountOfMoney));
deductionAmountTotal = deductionAmountTotal.add(amountOfMoney); deductionAmountTotal = deductionAmountTotal.add(amountOfMoney);
} }
chDisabDetailAccounts.setLcd(new Date());
int result = chDisabAccountsDetailMapper.updateById(chDisabDetailAccounts); int result = chDisabAccountsDetailMapper.updateById(chDisabDetailAccounts);
chDisabAccounts.setReissueAmountTotal(reissueAmountTotal); chDisabAccounts.setReissueAmountTotal(reissueAmountTotal);
chDisabAccounts.setDeductionAmountTotal(deductionAmountTotal); chDisabAccounts.setDeductionAmountTotal(deductionAmountTotal);
...@@ -741,6 +742,7 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis ...@@ -741,6 +742,7 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
chDisabDetailAccountsDTO.setAccountsAllCost(accountsAllCost.add(limit)); chDisabDetailAccountsDTO.setAccountsAllCost(accountsAllCost.add(limit));
chDisabDetailAccountsDTO.setAccountsOverallCost(accountsOverallCost.add(overallCost)); chDisabDetailAccountsDTO.setAccountsOverallCost(accountsOverallCost.add(overallCost));
chDisabDetailAccountsDTO.setAccountsPersonalCost(accountsPersonalCost.add(personalCost)); chDisabDetailAccountsDTO.setAccountsPersonalCost(accountsPersonalCost.add(personalCost));
chDisabDetailAccountsDTO.setLcd(new Date());
chDisabAccountsDetailMapper.updateById(chDisabDetailAccountsDTO); chDisabAccountsDetailMapper.updateById(chDisabDetailAccountsDTO);
} }
...@@ -800,6 +802,7 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis ...@@ -800,6 +802,7 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
chDisabDetailAccountsDTO.setDeductionAmount(subtract); chDisabDetailAccountsDTO.setDeductionAmount(subtract);
} }
disabAccountsMapper.updateById(chDisabAccountDTO); disabAccountsMapper.updateById(chDisabAccountDTO);
chDisabDetailAccountsDTO.setLcd(new Date());
int result = chDisabAccountsDetailMapper.updateById(chDisabDetailAccountsDTO); int result = chDisabAccountsDetailMapper.updateById(chDisabDetailAccountsDTO);
chDisabFreeRdInfoMapper.deleteById(freeRdId); chDisabFreeRdInfoMapper.deleteById(freeRdId);
return result; return result;
...@@ -834,6 +837,7 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis ...@@ -834,6 +837,7 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
chDisabDetailAccounts.setAccountsDetailId(accountsDetailId); chDisabDetailAccounts.setAccountsDetailId(accountsDetailId);
chDisabDetailAccounts.setStatus(((short)1)); chDisabDetailAccounts.setStatus(((short)1));
chDisabDetailAccounts.setDeclarationTime(new Date()); chDisabDetailAccounts.setDeclarationTime(new Date());
chDisabDetailAccounts.setLcd(new Date());
int result = chDisabAccountsDetailMapper.updateById(chDisabDetailAccounts); int result = chDisabAccountsDetailMapper.updateById(chDisabDetailAccounts);
return result; return result;
} }
...@@ -943,6 +947,7 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis ...@@ -943,6 +947,7 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
chDisabDetailAccounts.setAccountsDetailId(accountsDetailId); chDisabDetailAccounts.setAccountsDetailId(accountsDetailId);
chDisabDetailAccounts.setStatus(status); chDisabDetailAccounts.setStatus(status);
chDisabDetailAccounts.setAccountsId(accountsId); chDisabDetailAccounts.setAccountsId(accountsId);
chDisabDetailAccounts.setLcd(new Date());
int result = chDisabAccountsDetailMapper.updateById(chDisabDetailAccounts); int result = chDisabAccountsDetailMapper.updateById(chDisabDetailAccounts);
return result; return result;
} }
...@@ -1025,6 +1030,7 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis ...@@ -1025,6 +1030,7 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
chDisabDetailAccountsDTO.setAccountsAllCost(accountsAllCost.add(limit)); chDisabDetailAccountsDTO.setAccountsAllCost(accountsAllCost.add(limit));
chDisabDetailAccountsDTO.setAccountsOverallCost(accountsOverallCost.add(limit)); chDisabDetailAccountsDTO.setAccountsOverallCost(accountsOverallCost.add(limit));
chDisabDetailAccountsDTO.setAccountsPersonalCost(zero); chDisabDetailAccountsDTO.setAccountsPersonalCost(zero);
chDisabDetailAccountsDTO.setLcd(new Date());
chDisabAccountsDetailMapper.updateById(chDisabDetailAccountsDTO); chDisabAccountsDetailMapper.updateById(chDisabDetailAccountsDTO);
} }
return Result.success(); return Result.success();
...@@ -1119,6 +1125,7 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis ...@@ -1119,6 +1125,7 @@ public class AccountServiceImpl extends ServiceImpl<ChDisabAccountsMapper, ChDis
chDisabDetailAccounts.setAccountsAllCost(allCostSubtract); chDisabDetailAccounts.setAccountsAllCost(allCostSubtract);
chDisabDetailAccounts.setAccountsOverallCost(overCostSubtract); chDisabDetailAccounts.setAccountsOverallCost(overCostSubtract);
chDisabDetailAccounts.setAccountsPersonalCost(personCostSubtract); chDisabDetailAccounts.setAccountsPersonalCost(personCostSubtract);
chDisabDetailAccounts.setLcd(new Date());
chDisabAccountsDetailMapper.updateById(chDisabDetailAccounts); chDisabAccountsDetailMapper.updateById(chDisabDetailAccounts);
} }
......
...@@ -312,7 +312,8 @@ and organ.SRV_ORGAN_ID = #{req.srvOrganId} order by detail.SRV_DATE desc ...@@ -312,7 +312,8 @@ and organ.SRV_ORGAN_ID = #{req.srvOrganId} order by detail.SRV_DATE desc
<if test="accountsStatus == 0"> <if test="accountsStatus == 0">
d.status = #{accountsStatus}, d.status = #{accountsStatus},
d.REISSUE_AMOUNT = 0, d.REISSUE_AMOUNT = 0,
d.DEDUCTION_AMOUNT = 0 d.DEDUCTION_AMOUNT = 0,
d.lcd = sysdate
</if> </if>
</set> </set>
......
...@@ -88,7 +88,7 @@ WHERE TASK_DETAIL_ID = #{taskDetailId} ...@@ -88,7 +88,7 @@ WHERE TASK_DETAIL_ID = #{taskDetailId}
<update id = "updateChDisabDetailAccounts"> <update id = "updateChDisabDetailAccounts">
UPDATE CH_DISAB_ACCOUNTS_DETAIL d SET d.ACCOUNTS_ALL_COST = #{accountsAllCostsub}, d.ACCOUNTS_OVERALL_COST = #{accountsOverallCostsub}, UPDATE CH_DISAB_ACCOUNTS_DETAIL d SET d.ACCOUNTS_ALL_COST = #{accountsAllCostsub}, d.ACCOUNTS_OVERALL_COST = #{accountsOverallCostsub},
d.ACCOUNTS_PERSONAL_COST = #{accountsPersonalCostsub} d.ACCOUNTS_PERSONAL_COST = #{accountsPersonalCostsub},d.lcd = sysdate
WHERE d.ACCOUNTS_DETAIL_ID = #{accountsDetailId} WHERE d.ACCOUNTS_DETAIL_ID = #{accountsDetailId}
</update> </update>
......
...@@ -117,6 +117,8 @@ public class ChDisabDetailAccounts implements Serializable { ...@@ -117,6 +117,8 @@ public class ChDisabDetailAccounts implements Serializable {
private Date declarationTime; private Date declarationTime;
private Date lcd;
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
} }
\ No newline at end of file
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