|
|
@@ -71,9 +71,10 @@ public class ExpenseAccountPrivateServiceImpl extends BaseMybatisDao<ExpenseAcco
|
|
|
public int updateStatus(ExpenseAccountPrivate in) {
|
|
|
InputExpenseAccountPrivate update=new InputExpenseAccountPrivate();
|
|
|
update.setId(in.getId());
|
|
|
- update.setStatus(in.getStatus());
|
|
|
+ update.setStatus(1);
|
|
|
+ update.setAid(TokenManager.getAdminId());
|
|
|
updateStatus(update);
|
|
|
- return expenseAccountPrivateMapper.updateByPrimaryKey(update);
|
|
|
+ return expenseAccountPrivateMapper.updateByPrimaryKeySelective(update);
|
|
|
}
|
|
|
|
|
|
private Integer checkCount(InputExpenseAccountPrivate in) {
|
|
|
@@ -85,6 +86,7 @@ public class ExpenseAccountPrivateServiceImpl extends BaseMybatisDao<ExpenseAcco
|
|
|
|
|
|
@Override
|
|
|
public int update(InputExpenseAccountPrivate in) {
|
|
|
+ updateStatus(in);
|
|
|
return expenseAccountPrivateMapper.updateByPrimaryKeySelective(in);
|
|
|
}
|
|
|
|