|
@@ -53,6 +53,14 @@ public class PlanAccountServiceImpl implements PlanAccountService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public List<PlanAccount> getPlanAccountByPlanId(String planId) {
|
|
|
+ PlanAccountExample example = new PlanAccountExample();
|
|
|
+ example.createCriteria().andPlanIdEqualTo(planId)
|
|
|
+ .andCreateTimeGreaterThan(DateUtil.getThatDayDate());
|
|
|
+ return planAccountMapper.selectByExample(example);
|
|
|
+ }
|
|
|
+
|
|
|
public List<PlanAccount> getMatchPlanAccount() {
|
|
|
PlanAccountExample example = new PlanAccountExample();
|
|
|
example.createCriteria().andCreateTimeGreaterThan(DateUtil.getThatDayDate())
|
|
@@ -97,6 +105,18 @@ public class PlanAccountServiceImpl implements PlanAccountService {
|
|
|
planAccountMapper.updateByExampleSelective(updatePlanAccount, planAccountExample);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public void delAccount(String planId, String accountId) {
|
|
|
+ PlanAccountExample planAccountExample = new PlanAccountExample();
|
|
|
+ planAccountExample.createCriteria()
|
|
|
+ .andAccountIdEqualTo(accountId)
|
|
|
+ .andPlanIdEqualTo(planId).
|
|
|
+ andCreateTimeGreaterThan(DateUtil.getThatDayDate());
|
|
|
+ PlanAccount updatePlanAccount = new PlanAccount();
|
|
|
+ updatePlanAccount.setIsDelete(1);
|
|
|
+ planAccountMapper.updateByExampleSelective(updatePlanAccount, planAccountExample);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
@Override
|
|
|
public void updateMatchStatus(Integer status, Long id) {
|