|
|
@@ -341,6 +341,9 @@ public class ExpenseAccountServiceImpl extends BaseMybatisDao<ExpenseAccountMapp
|
|
|
ExpenseAccount expenseAccount = expenseAccountMapper.selectByPrimaryKey(in.getEaid());
|
|
|
if (expenseAccount.getType()==2){
|
|
|
in.setType(expenseAccount.getSecondaryType());
|
|
|
+ if (in.getType()==0){
|
|
|
+ in.setTypeOther(expenseAccount.getSecondaryTypeOther());
|
|
|
+ }
|
|
|
}
|
|
|
in.setRealAmount(in.getAmount());
|
|
|
return expenseAccountDetailsMapper.insertSelective(in);
|